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