diff options
Diffstat (limited to 'lib/libc_r')
-rw-r--r-- | lib/libc_r/uthread/uthread_fd.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/libc_r/uthread/uthread_fd.c b/lib/libc_r/uthread/uthread_fd.c index 98a70e0..060515a 100644 --- a/lib/libc_r/uthread/uthread_fd.c +++ b/lib/libc_r/uthread/uthread_fd.c @@ -1005,7 +1005,11 @@ _thread_fd_unlock(int fd, int lock_type) int _thread_fd_lock(int fd, int lock_type, struct timespec * timeout) { - return (0); + /* + * Insure that the file descriptor table is initialized for this + * entry: + */ + return (_thread_fd_table_init(fd)); } void @@ -1017,7 +1021,11 @@ int _thread_fd_lock_debug(int fd, int lock_type, struct timespec * timeout, char *fname, int lineno) { - return (0); + /* + * Insure that the file descriptor table is initialized for this + * entry: + */ + return (_thread_fd_table_init(fd)); } void |