f6dc6f6875
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.
12 lines
325 B
C
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);
|
|
}
|