Searched refs:pwd (Results 1 - 25 of 112) sorted by relevance

12345

/haiku-fatelf/src/bin/coreutils/man/
H A Dpwd.x2 pwd \- print name of current/working directory
/haiku-fatelf/src/libs/util/
H A Dlogin_class.c38 #include <pwd.h>
132 substvar(const char * var, const struct passwd * pwd, int hlen, int pch, int nlen) argument
141 if (pwd != NULL) {
157 if (pwd != NULL) {
170 memmove(p, pwd->pw_dir, hlen);
177 memmove(p, pwd->pw_name, nlen);
190 setclassenvironment(login_cap_t *lc, const struct passwd * pwd, int paths) argument
193 int hlen = pwd ? strlen(pwd->pw_dir) : 0;
194 int nlen = pwd
276 setlogincontext(login_cap_t *lc, const struct passwd *pwd, mode_t mymask, unsigned long flags) argument
313 setusercontext(login_cap_t *lc, const struct passwd *pwd, uid_t uid, unsigned int flags) argument
[all...]
H A Dlogin_cap.c40 #include <pwd.h>
175 * 'pwd' argument is non-NULL and contains an non-NULL
184 login_getclassbyname(char const *name, const struct passwd *pwd) argument
199 dir = (!me || pwd == NULL) ? NULL : pwd->pw_dir;
209 (void)setegid(pwd->pw_gid);
210 (void)seteuid(pwd->pw_uid);
216 if (_secure_path(userpath, pwd->pw_uid, pwd->pw_gid) != -1)
314 login_getpwclass(const struct passwd *pwd) argument
334 login_getuserclass(const struct passwd *pwd) argument
[all...]
/haiku-fatelf/src/bin/gdb/libiberty/
H A Dgetpwd.c72 static char *pwd; local
75 char *p = pwd;
105 pwd = p;
119 static char *pwd = 0; local
121 if (!pwd)
122 pwd = getcwd (xmalloc (MAXPATHLEN + 1), MAXPATHLEN + 1
127 return pwd;
/haiku-fatelf/src/bin/coreutils/src/
H A Dgroup-list.c24 #include <pwd.h>
41 struct passwd *pwd; local
43 pwd = getpwuid (ruid);
44 if (pwd == NULL)
61 int n_groups = xgetgroups (username, (pwd ? pwd->pw_gid : (gid_t) -1),
H A Did.c23 #include <pwd.h>
196 struct passwd *pwd = getpwnam (argv[optind]); local
197 if (pwd == NULL)
199 ruid = euid = pwd->pw_uid;
200 rgid = egid = pwd->pw_gid;
242 struct passwd *pwd = NULL; local
246 pwd = getpwuid (uid);
247 if (pwd == NULL)
255 if (pwd == NULL)
258 printf ("%s", pwd
266 struct passwd *pwd; local
[all...]
H A Dsetuidgid.c23 #include <pwd.h>
144 const struct passwd *pwd; local
159 pwd = getpwnam (user);
160 if (pwd == NULL)
166 uid = pwd->pw_uid;
170 pwd = getpwuid (uid);
171 if (pwd == NULL)
182 int n = xgetgroups (pwd->pw_name, pwd->pw_gid, &gids);
185 quote (pwd
[all...]
H A Dgroups.c23 #include <pwd.h>
112 struct passwd *pwd = getpwnam (argv[optind]); local
113 if (pwd == NULL)
115 ruid = pwd->pw_uid;
116 rgid = egid = pwd->pw_gid;
/haiku-fatelf/src/apps/login/
H A DLoginView.cpp13 #include <pwd.h>
28 PwdItem(struct passwd *pwd, uint32 level = 0, argument
32 if (pwd) {
33 BString name(pwd->pw_gecos);
35 fLogin = pwd->pw_name;
225 struct passwd *pwd; local
229 pwd = getpwent();
231 if (pwd && pwd->pw_shell &&
232 strcmp(pwd
[all...]
H A DLoginApp.cpp17 #include <pwd.h>
186 struct passwd *pwd; local
188 pwd = getpwnam(login);
189 if (!pwd)
191 if (strcmp(pwd->pw_name, login))
200 if (verify_password(pwd, getspnam(login), password))
204 if (strcmp(crypt(password, pwd->pw_passwd), pwd->pw_passwd) == 0)
/haiku-fatelf/src/bin/bash/
H A Deval.c193 char *pwd; local
195 pwd = get_string_value ("PWD");
196 if (pwd == 0)
197 pwd = get_working_directory ("eterm");
198 fprintf (stderr, "\032/%s\n", pwd);
/haiku-fatelf/src/add-ons/print/transports/ipp/
H A DIppTransport.cpp9 #include <pwd.h>
61 struct passwd *pwd = getpwuid(geteuid()); local
62 if (pwd != NULL && pwd->pw_name != NULL && pwd->pw_name[0])
63 strcpy(__user, pwd->pw_name);
/haiku-fatelf/src/add-ons/print/transports/lpr/
H A DLprTransport.cpp10 #include <pwd.h>
38 struct passwd *pwd = getpwuid(geteuid()); local
39 if (pwd != NULL && pwd->pw_name != NULL && pwd->pw_name[0])
40 strcpy(fUser, pwd->pw_name);
/haiku-fatelf/src/bin/coreutils/lib/
H A Duserspec.c28 #include <pwd.h>
111 struct passwd *pwd; local
148 pwd and grp functions ``know'' about the UID and GID of these. */
158 pwd = (*u == '+' ? NULL : getpwnam (u));
159 if (pwd == NULL)
180 unum = pwd->pw_uid;
186 gnum = pwd->pw_gid;
/haiku-fatelf/src/bin/bash/lib/tilde/
H A Dshell.c45 #include <pwd.h>
/haiku-fatelf/src/bin/multiuser/
H A Dmultiuser_utils.h8 #include <pwd.h>
/haiku-fatelf/src/system/libroot/posix/unistd/
H A Dgetlogin.c13 #include <pwd.h>
/haiku-fatelf/src/bin/bash/lib/readline/
H A Dshell.c55 #include <pwd.h>
/haiku-fatelf/src/bin/gdb/readline/
H A Dshell.c53 #include <pwd.h>
/haiku-fatelf/src/bin/network/ftpd/
H A Dextern.h57 void pwd(void);
/haiku-fatelf/src/bin/sharutils/lib/
H A Dwhoami.c24 #include <pwd.h>
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/mlock/speculative/
H A D12-1.c22 #include <pwd.h>
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/mlockall/speculative/
H A D15-1.c22 #include <pwd.h>
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/sched_getparam/
H A D6-1.c28 #include <pwd.h>
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/sched_getscheduler/
H A D7-1.c20 #include <pwd.h>

Completed in 216 milliseconds

12345