cctools
username.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
3 Copyright (C) 2005- The University of Notre Dame
4 This software is distributed under the GNU General Public License.
5 See the file COPYING for details.
6 */
7 
8 #ifndef USERNAME_H
9 #define USERNAME_H
10 
16 #define USERNAME_MAX 256
17 
22 int username_is_super();
23 
28 int username_get(char *name);
29 
34 int username_set(const char *name);
35 
40 int username_home(char *dir);
41 
42 #endif
int username_is_super()
Determine if the current user is the super user.
int username_get(char *name)
Get the name of the current user.
int username_set(const char *name)
Switch to the named user.
int username_home(char *dir)
Get the current user's home directory.