Searched refs:pw (Results 1 - 8 of 8) sorted by relevance

/haiku/src/system/libroot/posix/unistd/
H A Dgetlogin.cpp23 struct passwd *pw; local
24 pw = getpwuid(getuid());
25 if (pw)
26 return pw->pw_name;
35 struct passwd* pw = NULL; local
40 sizeof(passwdStringBuffer), &pw);
44 if (strnlen(pw->pw_name, LOGIN_NAME_MAX) >= nameSize)
48 strlcpy(name, pw->pw_name, LOGIN_NAME_MAX);
/haiku/src/bin/network/ftpd/
H A Dftpd.c121 struct passwd *pw; variable in typeref:struct:passwd
1004 * Sets global passwd pointer pw if named account exists and is acceptable;
1007 * _PATH_FTPUSERS, and ftp account exists, set guest and pw, then just return.
1032 pw = sgetpwnam(thishost->anonuser);
1034 pw = sgetpwnam("ftp");
1043 else if (pw != NULL) {
1060 if ((pw = sgetpwnam(name))) {
1061 if ((shell = pw->pw_shell) == NULL || *shell == 0)
1077 pw = NULL;
1090 pwok = (pw !
[all...]
H A Dextern.h88 extern struct passwd *pw;
H A Dftpcmd.y1271 (pw ? pw -> pw_name : "unknown"), timeout);
1701 user = pw->pw_name;
/haiku/src/libs/libtelnet/
H A Dsra.c447 if (pw = sgetpwnam(name)) {
448 if (pw->pw_shell == NULL) {
449 pw = (struct passwd *) NULL;
453 salt = pw->pw_passwd;
456 if (pw == NULL || *pw->pw_passwd == '\0' ||
457 strcmp(xpasswd, pw->pw_passwd)) {
458 pw = (struct passwd *) NULL;
/haiku/src/system/libroot/os/
H A Dfind_directory.cpp248 struct passwd* pw; local
251 sizeof(pwStringBuffer), &pw) == 0
252 && pw != NULL) {
253 home = pw->pw_dir;
/haiku/src/bin/network/telnet/
H A Dcommands.c2484 struct passwd *pw;
2488 ((pw = getpwnam(user)) && pw->pw_uid != getuid())) {
2489 if ((pw = getpwuid(getuid())))
2490 user = pw->pw_name;
2476 struct passwd *pw; local
/haiku/src/apps/poorman/libhttpd/
H A Dlibhttpd.c1321 struct passwd* pw; local
1335 pw = getpwnam( temp );
1336 if ( pw == (struct passwd*) 0 )
1342 strlen( pw->pw_dir ) + 1 + strlen( postfix ) );
1343 (void) strcpy( hc->altdir, pw->pw_dir );

Completed in 149 milliseconds