diff options
| author | Archie Cobbs <archie@FreeBSD.org> | 2002-09-01 01:40:37 +0000 |
|---|---|---|
| committer | Archie Cobbs <archie@FreeBSD.org> | 2002-09-01 01:40:37 +0000 |
| commit | 159298ed57106d3922b1313c5cca1775e08da636 (patch) | |
| tree | fc2f76585a0310e736c67a5c7365edcd05bc3d63 /lib | |
| parent | d9faeb23db262884318b9521e2640f26594a1f6f (diff) | |
Fix screwup in previous MFC that broke the build.
Pointy hat to: me
Notes
svn path=/stable/4/; revision=102749
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libc_r/uthread/uthread_fd.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/lib/libc_r/uthread/uthread_fd.c b/lib/libc_r/uthread/uthread_fd.c index 24a8dcd92de2..4da9f4167871 100644 --- a/lib/libc_r/uthread/uthread_fd.c +++ b/lib/libc_r/uthread/uthread_fd.c @@ -180,6 +180,22 @@ _thread_fd_table_init(int fd) return (ret); } +int +_thread_fd_getflags(int fd) +{ + if (_thread_fd_table[fd] != NULL) + return (_thread_fd_table[fd]->flags); + else + return (0); +} + +void +_thread_fd_setflags(int fd, int flags) +{ + if (_thread_fd_table[fd] != NULL) + _thread_fd_table[fd]->flags = flags; +} + #ifdef _FDLOCKS_ENABLED void _thread_fd_unlock(int fd, int lock_type) @@ -493,22 +509,6 @@ _thread_fd_lock(int fd, int lock_type, struct timespec * timeout) return (ret); } -int -_thread_fd_getflags(int fd) -{ - if (_thread_fd_table[fd] != NULL) - return (_thread_fd_table[fd]->flags); - else - return (0); -} - -void -_thread_fd_setflags(int fd, int flags) -{ - if (_thread_fd_table[fd] != NULL) - _thread_fd_table[fd]->flags = flags; -} - void _thread_fd_unlock_debug(int fd, int lock_type, char *fname, int lineno) { |
