Changed to call the isatty() syscall directly, rather than fiddling around with non-portable ioctls.

This commit is contained in:
dtrg
2007-04-21 23:07:05 +00:00
parent 400c475c03
commit f4e37e1319
3 changed files with 17 additions and 22 deletions

View File

@@ -21,6 +21,7 @@ DEFINITION MODULE StripUnix;
(* Sys5 *) PROCEDURE fcntl(fildes, request, arg: INTEGER) : INTEGER;
PROCEDURE getpid() : INTEGER;
PROCEDURE ioctl(fildes, request: INTEGER; arg: ADDRESS) : INTEGER;
PROCEDURE isatty(fildes: INTEGER) : INTEGER;
PROCEDURE lseek(fildes: INTEGER; offset: LONGINT; whence: INTEGER) : LONGINT;
PROCEDURE open(path: ADDRESS; oflag: INTEGER) : INTEGER;
PROCEDURE read(fildes: INTEGER;