/* * David Leonard , 1999. Public Domain. * * $OpenBSD: uthread_fchflags.c,v 1.1 1999/01/08 05:42:18 d Exp $ * $FreeBSD: src/lib/libc_r/uthread/uthread_fchflags.c,v 1.4.2.2 2002/10/22 14:44:03 fjoe Exp $ * $DragonFly: src/lib/libc_r/uthread/uthread_fchflags.c,v 1.2 2003/06/17 04:26:48 dillon Exp $ */ #include #include #include #include "pthread_private.h" int _fchflags(int fd, u_long flags) { int ret; if ((ret = _FD_LOCK(fd, FD_WRITE, NULL)) == 0) { ret = __sys_fchflags(fd, flags); _FD_UNLOCK(fd, FD_WRITE); } return (ret); } __strong_reference(_fchflags, fchflags);