This website requires JavaScript.
Explore
Help
Sign In
libs
/
newlib-cygwin
mirror of
git://sourceware.org/git/newlib-cygwin.git
Watch
4
Star
0
Fork
You've already forked newlib-cygwin
0
Code
Issues
Projects
Releases
Wiki
Activity
90788821b7
newlib-cygwin
/
newlib
/
libc
/
posix
/
isatty.c
11 lines
103 B
C
Raw
Normal View
History
Unescape
Escape
import newlib-2000-02-17 snapshot
2000-02-18 03:39:52 +08:00
/* isatty.c */
2008-01-03 Jeff Johnston <jjohnstn@redhat.com> Make isatty syscall handling consistent with other newlib syscalls. * libc/include/_syslist.h: Add _isatty. * libc/include/reent.h: Add _isatty_r. * libc/include/sys/unistd.h: Add _isatty. * libc/posix/Makefile.am: Add new _isatty.c file. * libc/posix/Makefile.in: Regenerated. * libc/posix/_isatty.c: New file. * libc/posix/isatty.c: Changed to call _isatty(). * libc/reent/Makefile.am: Add new isattyr.c file. * libc/reent/Makefile.in: Regenerated. * libc/reent/isattyr.c: New file. * libc/stdio/freopen.c: Changed to call _isatty_r(). * libc/stdio/makebuf.c: Ditto. * libc/sys/a29khif/_isatty.S: Change isatty to _isatty. * libc/sys/arc/isatty.c: Ditto. * libc/sys/arm/syscalls.c: Ditto. * libc/sys/d10v/syscalls.c: Ditto. * libc/sys/h8300hms/syscalls.c: Ditto. * libc/sys/h8500hms/syscalls.c: Ditto. * libc/sys/linux/Makefile.am: Add new isatty.c file. * libc/sys/linux/Makefile.in: Regenerated. * libc/sys/linux/isatty.c: New file. * libc/syscalls/Makefile.am: Add new sysisatty.c file. * libc/syscalls/Makefile.in: Regenerated. * libc/syscalls/sysisatty.c: New file.
2008-01-04 06:33:37 +08:00
#
include
<unistd.h>
#
include
<reent.h>
import newlib-2000-02-17 snapshot
2000-02-18 03:39:52 +08:00
int
ansification: remove _DEFUN Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2017-12-04 11:43:30 +08:00
isatty
(
int
fd
)
import newlib-2000-02-17 snapshot
2000-02-18 03:39:52 +08:00
{
2008-01-03 Jeff Johnston <jjohnstn@redhat.com> Make isatty syscall handling consistent with other newlib syscalls. * libc/include/_syslist.h: Add _isatty. * libc/include/reent.h: Add _isatty_r. * libc/include/sys/unistd.h: Add _isatty. * libc/posix/Makefile.am: Add new _isatty.c file. * libc/posix/Makefile.in: Regenerated. * libc/posix/_isatty.c: New file. * libc/posix/isatty.c: Changed to call _isatty(). * libc/reent/Makefile.am: Add new isattyr.c file. * libc/reent/Makefile.in: Regenerated. * libc/reent/isattyr.c: New file. * libc/stdio/freopen.c: Changed to call _isatty_r(). * libc/stdio/makebuf.c: Ditto. * libc/sys/a29khif/_isatty.S: Change isatty to _isatty. * libc/sys/arc/isatty.c: Ditto. * libc/sys/arm/syscalls.c: Ditto. * libc/sys/d10v/syscalls.c: Ditto. * libc/sys/h8300hms/syscalls.c: Ditto. * libc/sys/h8500hms/syscalls.c: Ditto. * libc/sys/linux/Makefile.am: Add new isatty.c file. * libc/sys/linux/Makefile.in: Regenerated. * libc/sys/linux/isatty.c: New file. * libc/syscalls/Makefile.am: Add new sysisatty.c file. * libc/syscalls/Makefile.in: Regenerated. * libc/syscalls/sysisatty.c: New file.
2008-01-04 06:33:37 +08:00
return
_isatty
(
fd
)
;
import newlib-2000-02-17 snapshot
2000-02-18 03:39:52 +08:00
}