fixed more binutils issues (newer gcc/libc)
[zpugcc/jano.git] / toolchain / gcc / newlib / libc / sys / sparc64 / isatty.c
blob3c64647a944456101b3f359b25b12845bc408a4c
1 /* isatty.c */
3 /* Dumb implementation so programs will at least run. */
5 #include <sys/stat.h>
7 int
8 isatty (int fd)
10 struct stat buf;
12 if (fstat (fd, &buf) < 0)
13 return 0;
14 if (S_ISCHR (buf.st_mode))
15 return 1;
16 return 0;