ack/plat/linux/libsys/ioctl.c
George Koehler f6dc6f6875 Implement isatty() for Linux.
If it understands TIOCGETD, then it is a tty, else it isn't one.  This
seems to help Basic's input statement so I can see the prompt before
I enter my input.
2016-09-20 21:28:37 -04:00

12 lines
325 B
C

#include "libsys.h"
/*
* The usual prototype is ioctl(int, unsigned long, ...). We use a
* different prototype to easily get argp, and we don't include any
* header file that would declare the usual prototype.
*/
int ioctl(int fd, unsigned long request, void *argp)
{
return _syscall(__NR_ioctl, fd, request, argp);
}