home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Extra Super CD 1998 January
/
PCPLUS131.iso
/
DJGPP
/
V2
/
DJLSR201.ZIP
/
src
/
libc
/
posix
/
unistd
/
isatty.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1995-05-10
|
298 b
|
17 lines
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#include <libc/stubs.h>
#include <unistd.h>
#include <dpmi.h>
int
isatty(int fd)
{
__dpmi_regs r;
r.x.ax = 0x4400;
r.x.bx = fd;
__dpmi_int(0x21, &r);
if ((r.x.ax & 0x83) == 0x83)
return 1;
return 0;
}