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/libpthread/thread/thr_close.c | |
| parent | a67502218841058625ebd524b04693bee2622955 (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_close.c')
| -rw-r--r-- | lib/libpthread/thread/thr_close.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/thread/thr_close.c b/lib/libpthread/thread/thr_close.c index 5678e2e76533..7e21853223e8 100644 --- a/lib/libpthread/thread/thr_close.c +++ b/lib/libpthread/thread/thr_close.c @@ -47,9 +47,9 @@ close(int fd) struct stat sb; /* Lock the file descriptor while the file is closed: */ - if ((ret = _thread_fd_lock(fd, FD_RDWR, NULL, __FILE__, __LINE__)) == 0) { + if ((ret = _FD_LOCK(fd, FD_RDWR, NULL)) == 0) { /* Get file descriptor status. */ - fstat(fd, &sb); + _thread_sys_fstat(fd, &sb); /* * Check if the file should be left as blocking. |
