2 * David Leonard <d@openbsd.org>, 1999. Public Domain.
4 * $OpenBSD: uthread_fchflags.c,v 1.1 1999/01/08 05:42:18 d Exp $
11 #include "pthread_private.h"
13 __weak_reference(_fchflags, fchflags);
15 _fchflags(int fd, u_long flags)
19 if ((ret = _FD_LOCK(fd, FD_WRITE, NULL)) == 0) {
20 ret = __sys_fchflags(fd, flags);
21 _FD_UNLOCK(fd, FD_WRITE);