GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
|
GIS Library - Login name functions. More...
Go to the source code of this file.
Functions | |
const char * | G_whoami (void) |
Gets user's name. More... | |
GIS Library - Login name functions.
(C) 2001-2009 by the GRASS Development Team
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file gis/whoami.c.
const char* G_whoami | ( | void | ) |
Gets user's name.
Returns a pointer to a string containing the user's login name.
Tries getlogin() first, then goes to the password file. However, some masscomp getlogin() fails in ucb universe because the ttyname(0) rotuine fails in ucb universe. So we check for this, too.
Definition at line 35 of file gis/whoami.c.
Referenced by G_init_all(), G_open_mail(), Vect__init_head(), and Vect_hist_command().