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