diff options
author | 2015-09-12 14:56:50 +0000 | |
---|---|---|
committer | 2015-09-12 14:56:50 +0000 | |
commit | 0e3c6306f9e8c62197134dcb9c6f7fdda47b72b8 (patch) | |
tree | 156ca6d3bca87e18d5b8368eb09c65267e4c649a /lib/libc/gen/isatty.c | |
parent | Wrap <getopt.h> to make the functions weak and make access to the initialized (diff) | |
download | wireguard-openbsd-0e3c6306f9e8c62197134dcb9c6f7fdda47b72b8.tar.xz wireguard-openbsd-0e3c6306f9e8c62197134dcb9c6f7fdda47b72b8.zip |
Wrap <unistd.h> so that internal calls go direct and they're all weak symbols
Delete unused 'fd' argument from internal function oldttyname()
Diffstat (limited to 'lib/libc/gen/isatty.c')
-rw-r--r-- | lib/libc/gen/isatty.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/gen/isatty.c b/lib/libc/gen/isatty.c index c0b543698db..ba45a987738 100644 --- a/lib/libc/gen/isatty.c +++ b/lib/libc/gen/isatty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: isatty.c,v 1.10 2015/05/17 01:56:02 deraadt Exp $ */ +/* $OpenBSD: isatty.c,v 1.11 2015/09/12 14:56:50 guenther Exp $ */ /* * Copyright (c) 1988, 1993 * The Regents of the University of California. All rights reserved. @@ -29,9 +29,11 @@ */ #include <fcntl.h> +#include <unistd.h> int isatty(int fd) { return fcntl(fd, F_ISATTY) != -1; } +DEF_WEAK(isatty); |