diff options
author | jb <jb@FreeBSD.org> | 1998-06-09 08:32:23 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1998-06-09 08:32:23 +0000 |
commit | 05385aab221ae2f336cb1a11fca17e94d1f03a79 (patch) | |
tree | effb2fe7cfad27dfaf5fbf4d0cc83601a245a4c7 /lib/libc/gen/isatty.c | |
parent | 439aa43648c4d70ee5a7a2ad98e9dfa7ec875ead (diff) | |
download | FreeBSD-src-05385aab221ae2f336cb1a11fca17e94d1f03a79.zip FreeBSD-src-05385aab221ae2f336cb1a11fca17e94d1f03a79.tar.gz |
Implement compile time debug mode for thread locks.
Diffstat (limited to 'lib/libc/gen/isatty.c')
-rw-r--r-- | lib/libc/gen/isatty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/isatty.c b/lib/libc/gen/isatty.c index c8356c7..f14f470 100644 --- a/lib/libc/gen/isatty.c +++ b/lib/libc/gen/isatty.c @@ -50,11 +50,11 @@ isatty(fd) struct termios t; #ifdef _THREAD_SAFE - if (_thread_fd_lock(fd, FD_READ, NULL,__FILE__,__LINE__) == 0) { + if (_FD_LOCK(fd, FD_READ, NULL) == 0) { #endif retval = (tcgetattr(fd, &t) != -1); #ifdef _THREAD_SAFE - _thread_fd_unlock(fd, FD_READ); + _FD_UNLOCK(fd, FD_READ); } else { retval = 0; } |