aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys/ftruncate.c
diff options
context:
space:
mode:
authorJohn Birrell <jb@FreeBSD.org>1998-06-09 08:37:35 +0000
committerJohn Birrell <jb@FreeBSD.org>1998-06-09 08:37:35 +0000
commit6fe173c87b901b71d279206d311a14eefa247d0f (patch)
tree7ab9e711cdcaa1a642274c0ab9111e058f40c12d /lib/libc/sys/ftruncate.c
parentbc99dd746b9410e0a833eeef0948ed46f9ad2f4c (diff)
Implement compile time thread lock debug.
Notes
Notes: svn path=/head/; revision=36808
Diffstat (limited to 'lib/libc/sys/ftruncate.c')
-rw-r--r--lib/libc/sys/ftruncate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/sys/ftruncate.c b/lib/libc/sys/ftruncate.c
index 72a6a9158153..9d7d5fb77f93 100644
--- a/lib/libc/sys/ftruncate.c
+++ b/lib/libc/sys/ftruncate.c
@@ -55,11 +55,11 @@ ftruncate(fd, length)
#ifdef _THREAD_SAFE
int retval;
- if (_thread_fd_lock(fd, FD_RDWR, NULL,__FILE__,__LINE__) != 0) {
+ if (_FD_LOCK(fd, FD_RDWR, NULL) != 0) {
retval = -1;
} else {
retval = __syscall((quad_t)SYS_ftruncate, fd, 0, length);
- _thread_fd_unlock(fd, FD_RDWR);
+ _FD_UNLOCK(fd, FD_RDWR);
}
return(retval);
#else