#if 0 #include char * getlogin(void) { /* TODO: get actual controlling terminal, then read utmpx */ return getenv("LOGNAME"); } /* POSIX(1) */ #endif