diff options
| author | Daniel Eischen <deischen@FreeBSD.org> | 2001-02-11 22:06:43 +0000 |
|---|---|---|
| committer | Daniel Eischen <deischen@FreeBSD.org> | 2001-02-11 22:06:43 +0000 |
| commit | 29ac6bd228d1c75dc4c19105fa149861bff04720 (patch) | |
| tree | 91800b480f9efe4c0d90fe0b653e4bb1125f24f7 /lib/libc/stdio/fileno.c | |
| parent | 5b62961a494b0271f6029f0c8f1e8c92a2267fe7 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdio/fileno.c')
| -rw-r--r-- | lib/libc/stdio/fileno.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/libc/stdio/fileno.c b/lib/libc/stdio/fileno.c index 0c3a8dc0c612..b8f500e05ab8 100644 --- a/lib/libc/stdio/fileno.c +++ b/lib/libc/stdio/fileno.c @@ -45,13 +45,14 @@ static const char rcsid[] = #include <stdio.h> /* - * A subroutine version of the macro fileno. + * fileno has traditionally been a macro in <stdio.h>. That is + * no longer true because it needs to be thread-safe. + * + * #undef fileno */ -#undef fileno - int -fileno(fp) - FILE *fp; +fileno(FILE *fp) { + /* ??? - Should probably use atomic_read. */ return (__sfileno(fp)); } |
