37 static int initialized;
38 static const char *
name;
44 name = getenv(
"USERNAME");
47 name = getenv(
"LOGNAME");
50 name = getenv(
"USER");
54 struct passwd *p = getpwuid(getuid());
56 if (p && p->pw_name && *p->pw_name)
int G_is_initialized(int *)
void G_initialize_done(int *)
char * G_store(const char *)
Copy string to allocated memory.
const char * G_whoami(void)
Gets user's name.