mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-28 12:05:47 +08:00
* libc/sys/mmixware/isatty.c (_isatty): Renamed from isatty.
Make ISO C.
This commit is contained in:
parent
ca74821574
commit
77ec26b04a
@ -1,3 +1,8 @@
|
|||||||
|
2008-01-25 Hans-Peter Nilsson <hp@bitrange.com>
|
||||||
|
|
||||||
|
* libc/sys/mmixware/isatty.c (_isatty): Renamed from isatty.
|
||||||
|
Make ISO C.
|
||||||
|
|
||||||
2008-01-21 DJ Delorie <dj@redhat.com>
|
2008-01-21 DJ Delorie <dj@redhat.com>
|
||||||
|
|
||||||
* libc/sys/sh/syscalls.c (_isatty): New.
|
* libc/sys/sh/syscalls.c (_isatty): New.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* isatty for MMIXware.
|
/* 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
|
Permission to use, copy, modify, and distribute this software is
|
||||||
freely granted, provided that the above copyright notice, this notice
|
freely granted, provided that the above copyright notice, this notice
|
||||||
@ -16,8 +16,8 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include "sys/syscall.h"
|
#include "sys/syscall.h"
|
||||||
|
|
||||||
isatty (fd)
|
int
|
||||||
int fd;
|
_isatty (int fd)
|
||||||
{
|
{
|
||||||
return fd == 0 || fd == 1 || fd == 2;
|
return fd == 0 || fd == 1 || fd == 2;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user