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) 2022 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
username_get
int username_get(char *name)
Get the name of the current user.
username_is_super
int username_is_super()
Determine if the current user is the super user.
username_set
int username_set(const char *name)
Switch to the named user.
username_home
int username_home(char *dir)
Get the current user's home directory.
dttools
src
username.h
Generated by
1.8.17