]> git.ipfire.org Git - thirdparty/util-linux.git/blob - login-utils/setpwnam.h
scriptreplay: cleanup usage()
[thirdparty/util-linux.git] / login-utils / setpwnam.h
1 /*
2 * setpwnam.h --
3 * define several paths
4 *
5 * (c) 1994 Martin Schulze <joey@infodrom.north.de>
6 * This file is based on setpwnam.c which is
7 * (c) 1994 Salvatore Valente <svalente@mit.edu>
8 *
9 * This file is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
13 */
14 #ifndef UTIL_LINUX_SETPWNAM_H
15 #define UTIL_LINUX_SETPWNAM_H
16
17 #include "pathnames.h"
18
19 #ifndef DEBUG
20 # define PASSWD_FILE _PATH_PASSWD
21 # define GROUP_FILE _PATH_GROUP
22 # define SHADOW_FILE _PATH_SHADOW_PASSWD
23 # define SGROUP_FILE _PATH_GSHADOW
24 #else
25 # define PASSWD_FILE "/tmp/passwd"
26 # define GROUP_FILE "/tmp/group"
27 # define SHADOW_FILE "/tmp/shadow"
28 # define SGROUP_FILE "/tmp/gshadow"
29 #endif
30
31 extern int setpwnam (struct passwd *pwd, const char *prefix);
32
33 #endif /* UTIL_LINUX_SETPWNAM_H */