diff options
author | John Birrell <jb@FreeBSD.org> | 1998-06-09 23:21:05 +0000 |
---|---|---|
committer | John Birrell <jb@FreeBSD.org> | 1998-06-09 23:21:05 +0000 |
commit | ddc8afd422568750de7698d8a92b79b27599dd2f (patch) | |
tree | 7b6d63e77297f7bad0d21a6bb68fa893b9a54574 /lib/libc_r/uthread/uthread_getdirentries.c | |
parent | a67502218841058625ebd524b04693bee2622955 (diff) | |
download | src-ddc8afd422568750de7698d8a92b79b27599dd2f.tar.gz src-ddc8afd422568750de7698d8a92b79b27599dd2f.zip |
Implement compile time debug support instead of tracking file name and
line number every time a file descriptor is locked.
This looks like a big change but it isn't. It should reduce the size
of libc_r and make it run slightly faster.
Notes
Notes:
svn path=/head/; revision=36830
Diffstat (limited to 'lib/libc_r/uthread/uthread_getdirentries.c')
-rw-r--r-- | lib/libc_r/uthread/uthread_getdirentries.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc_r/uthread/uthread_getdirentries.c b/lib/libc_r/uthread/uthread_getdirentries.c index a1fd5b4768c6..44e7520dce28 100644 --- a/lib/libc_r/uthread/uthread_getdirentries.c +++ b/lib/libc_r/uthread/uthread_getdirentries.c @@ -41,9 +41,9 @@ getdirentries(int fd, char *buf, int nbytes, long *basep) { int ret; - if ((ret = _thread_fd_lock(fd, FD_RDWR, NULL, __FILE__, __LINE__)) == 0) { + if ((ret = _FD_LOCK(fd, FD_RDWR, NULL)) == 0) { ret = _thread_sys_getdirentries(fd, buf, nbytes, basep); - _thread_fd_unlock(fd, FD_RDWR); + _FD_UNLOCK(fd, FD_RDWR); } return (ret); } |