2 #include <sys/lunaix.h>
6 main(int argc, const char** argv)
10 if ((errno = open("/dev/tty", 0))) {
11 syslog(2, "fail to open tty (%d)\n", errno);
15 if ((errno = dup(errno))) {
16 syslog(2, "fail to setup tty i/o (%d)\n", errno);
20 syslog(0, "user space!\n");