summaryrefslogtreecommitdiff
path: root/lib/libc/gen/isatty.c
diff options
context:
space:
mode:
authorJohn Birrell <jb@FreeBSD.org>1998-06-09 08:32:23 +0000
committerJohn Birrell <jb@FreeBSD.org>1998-06-09 08:32:23 +0000
commit86af3ff9b02305be8809a6d60daf988b5eebe5ca (patch)
tree8e7500ffc2fe4763a2cb442197c7578af57c61c3 /lib/libc/gen/isatty.c
parent3d853e107ed067aeb59f767757ef1a0c8819881f (diff)
Notes
Diffstat (limited to 'lib/libc/gen/isatty.c')
-rw-r--r--lib/libc/gen/isatty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/isatty.c b/lib/libc/gen/isatty.c
index c8356c710342..f14f4704d9a3 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;
}