From 77ec26b04a070662449e1be88e749ae387297a14 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Fri, 25 Jan 2008 04:31:11 +0000 Subject: [PATCH] * libc/sys/mmixware/isatty.c (_isatty): Renamed from isatty. Make ISO C. --- newlib/ChangeLog | 5 +++++ newlib/libc/sys/mmixware/isatty.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index b54d67e84..551d7a530 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2008-01-25 Hans-Peter Nilsson + + * libc/sys/mmixware/isatty.c (_isatty): Renamed from isatty. + Make ISO C. + 2008-01-21 DJ Delorie * libc/sys/sh/syscalls.c (_isatty): New. 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 #include "sys/syscall.h" -isatty (fd) - int fd; +int +_isatty (int fd) { return fd == 0 || fd == 1 || fd == 2; }