1 /* 2 * David Leonard <d@openbsd.org>, 1999. Public Domain. 3 * 4 * $OpenBSD: uthread_fpathconf.c,v 1.2 2002/01/02 16:19:35 fgsch Exp $ 5 */ 6 7 #include <unistd.h> 8 #ifdef _THREAD_SAFE 9 #include <pthread.h> 10 #include "pthread_private.h" 11 12 long fpathconf(int fd,int name)13fpathconf(int fd, int name) 14 { 15 long ret; 16 17 if ((ret = _FD_LOCK(fd, FD_READ, NULL)) == 0) { 18 ret = _thread_sys_fpathconf(fd, name); 19 _FD_UNLOCK(fd, FD_READ); 20 } 21 return (ret); 22 } 23 #endif 24