/* * David Leonard , 1999. Public Domain. * * $OpenBSD: uthread_fpathconf.c,v 1.1 1999/01/08 05:42:18 d Exp $ */ #include #ifdef _THREAD_SAFE #include #include "pthread_private.h" long fpathconf(int fd, int name) { int ret; if ((ret = _FD_LOCK(fd, FD_READ, NULL)) == 0) { ret = _thread_sys_fpathconf(fd, name); _FD_UNLOCK(fd, FD_READ); } return (ret); } #endif