diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2008-01-25 04:31:11 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2008-01-25 04:31:11 +0000 |
commit | 77ec26b04a070662449e1be88e749ae387297a14 (patch) | |
tree | 1bb15d7a92aecf1bf35dc7a0c0d8274eddf36293 /newlib/libc/sys | |
parent | ca74821574780c7b526aa827a1617988bb1171cf (diff) | |
download | cygnal-77ec26b04a070662449e1be88e749ae387297a14.tar.gz cygnal-77ec26b04a070662449e1be88e749ae387297a14.tar.bz2 cygnal-77ec26b04a070662449e1be88e749ae387297a14.zip |
* libc/sys/mmixware/isatty.c (_isatty): Renamed from isatty.
Make ISO C.
Diffstat (limited to 'newlib/libc/sys')
-rw-r--r-- | newlib/libc/sys/mmixware/isatty.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libc/sys/mmixware/isatty.c b/newlib/libc/sys/mmixware/isatty.c index 86729aa56..1e1db6491 100644 --- a/newlib/libc/sys/mmixware/isatty.c +++ b/newlib/libc/sys/mmixware/isatty.c @@ -1,6 +1,6 @@ /* isatty for MMIXware. - Copyright (C) 2001 Hans-Peter Nilsson + Copyright (C) 2001, 2008 Hans-Peter Nilsson Permission to use, copy, modify, and distribute this software is freely granted, provided that the above copyright notice, this notice @@ -16,8 +16,8 @@ #include <sys/stat.h> #include "sys/syscall.h" -isatty (fd) - int fd; +int +_isatty (int fd) { return fd == 0 || fd == 1 || fd == 2; } |