/haiku-fatelf/src/system/libroot/posix/unistd/ |
H A D | getlogin.c | 20 struct passwd *pw; local 21 pw = getpwuid(getuid()); 22 if (pw) 23 return pw->pw_name; 31 struct passwd *pw; local 32 pw = getpwuid(getuid()); 33 if (pw && (nameSize > 32/*PW_MAX_NAME*/)) { 35 strlcpy(name, pw->pw_name, 32/*PW_MAX_NAME*/);
|
/haiku-fatelf/src/libs/crypt/ |
H A D | crypt.h | 38 char *crypt_des(const char *pw, const char *salt); 39 char *crypt_md5(const char *pw, const char *salt); 40 char *crypt_nthash(const char *pw, const char *salt); 41 char *crypt_blowfish(const char *pw, const char *salt);
|
H A D | crypt-md5.c | 45 crypt_md5(const char *pw, const char *salt) argument 73 MD5Update(&ctx, (const u_char *)pw, strlen(pw)); 81 /* Then just as many characters of the MD5(pw,salt,pw) */ 83 MD5Update(&ctx1, (const u_char *)pw, strlen(pw)); 85 MD5Update(&ctx1, (const u_char *)pw, strlen(pw)); 87 for(pl = (int)strlen(pw); p [all...] |
/haiku-fatelf/src/kits/network/libbind/irs/ |
H A D | irp_pw.c | 72 static void free_passwd(struct passwd *pw); 77 struct irs_pw *pw; local 80 if (!(pw = memget(sizeof *pw))) { 84 memset(pw, 0, sizeof *pw); 87 memput(pw, sizeof *pw); 94 pw->private = pvt; 95 pw 132 struct passwd *pw = &pvt->passwd; local 176 struct passwd *pw = &pvt->passwd; local 228 struct passwd *pw = &pvt->passwd; local 314 free_passwd(struct passwd *pw) argument [all...] |
H A D | gen_pw.c | 75 struct irs_pw *pw; local 78 if (!(pw = memget(sizeof *pw))) { 82 memset(pw, 0x5e, sizeof *pw); 84 memput(pw, sizeof *pvt); 91 pw->private = pvt; 92 pw->close = pw_close; 93 pw->next = pw_next; 94 pw 117 struct irs_pw *pw; local 138 struct irs_pw *pw; local 152 struct irs_pw *pw; local 169 struct irs_pw *pw; local 187 struct irs_pw *pw = rule->inst->pw; local 226 struct irs_pw *pw = rule->inst->pw; local [all...] |
H A D | getpwent.c | 108 struct irs_pw *pw; local 110 if (!net_data || !(pw = net_data->pw)) 112 net_data->pw_last = (*pw->next)(pw); 118 struct irs_pw *pw; local 120 if (!net_data || !(pw = net_data->pw)) 125 net_data->pw_last = (*pw->byname)(pw, nam 133 struct irs_pw *pw; local 148 struct irs_pw *pw; local 173 struct irs_pw *pw; local [all...] |
H A D | getpwent_r.c | 60 struct passwd *pw = getpwnam(login); local 63 if (pw == NULL) { 68 res = copy_passwd(pw, pwptr, buf, buflen); 76 struct passwd *pw = getpwnam(login); local 79 if (pw == NULL) 82 res = copy_passwd(pw, pwptr, buf, buflen); 97 struct passwd *pw = getpwuid(uid); local 100 if (pw == NULL) { 105 res = copy_passwd(pw, pwptr, buf, buflen); 113 struct passwd *pw local 132 struct passwd *pw = getpwent(); local 186 struct passwd *pw = fgetpwent(f); local 200 copy_passwd(struct passwd *pw, struct passwd *pwptr, char *buf, int buflen) argument [all...] |
/haiku-fatelf/src/bin/coreutils/src/ |
H A D | su.c | 160 log_su (struct passwd const *pw, bool successful) argument 165 if (pw->pw_uid) 168 new_user = pw->pw_name; 209 correct_password (const struct passwd *pw) argument 214 struct spwd *sp = getspnam (pw->pw_name); 221 correct = pw->pw_passwd; 241 modify_environment (const struct passwd *pw, const char *shell) argument 254 xsetenv ("HOME", pw->pw_dir); 256 xsetenv ("USER", pw->pw_name); 257 xsetenv ("LOGNAME", pw 282 change_identity(const struct passwd *pw) argument 398 struct passwd *pw; local [all...] |
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/mlock/speculative/ |
H A D | 12-1.c | 31 struct passwd *pw; local 34 while((pw = getpwent()) != NULL) 35 if(strcmp(pw->pw_name, "root")) 38 if(pw == NULL) { 43 if(seteuid(pw->pw_uid) != 0) { 53 pw->pw_name, (int)geteuid());
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/mlockall/speculative/ |
H A D | 15-1.c | 30 struct passwd *pw; local 33 while((pw = getpwent()) != NULL) 34 if(strcmp(pw->pw_name, "root")) 37 if(pw == NULL) { 42 if(seteuid(pw->pw_uid) != 0) { 52 pw->pw_name, (int)geteuid());
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/sched_getparam/ |
H A D | 6-1.c | 36 struct passwd *pw; local 39 while((pw = getpwent()) != NULL) 40 if(strcmp(pw->pw_name, "root")) 43 if(pw == NULL) { 48 if(setuid(pw->pw_uid) != 0) { 58 pw->pw_name, (int)geteuid(), (int)getuid());
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/sched_getscheduler/ |
H A D | 7-1.c | 27 struct passwd *pw; local 30 while((pw = getpwent()) != NULL) 31 if(strcmp(pw->pw_name, "root")) 34 if(pw == NULL) { 39 if(seteuid(pw->pw_uid) != 0) { 49 pw->pw_name, (int)geteuid());
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/sched_setscheduler/ |
H A D | 20-1.c | 34 struct passwd *pw; local 37 while((pw = getpwent()) != NULL) 38 if(strcmp(pw->pw_name, "root")) 41 if(pw == NULL) { 46 if(setuid(pw->pw_uid) != 0) { 56 pw->pw_name, (int)geteuid(), (int)getuid());
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/shm_open/ |
H A D | 32-1.c | 34 struct passwd *pw; local 37 while((pw = getpwent()) != NULL) 38 if(strcmp(pw->pw_name, "root")) 41 if(pw == NULL) { 46 if(seteuid(pw->pw_uid) != 0) { 56 pw->pw_name, (int)geteuid());
|
H A D | 26-2.c | 42 struct passwd *pw; local 71 while((pw = getpwent()) != NULL) 72 if(strcmp(pw->pw_name, "root") && pw->pw_uid != getuid()) 75 if(pw == NULL) { 81 if(seteuid(pw->pw_uid) != 0) { 92 pw->pw_name, pw->pw_uid);
|
H A D | 34-1.c | 34 struct passwd *pw; local 37 while((pw = getpwent()) != NULL) 38 if(strcmp(pw->pw_name, "root")) 41 if(pw == NULL) { 46 if(seteuid(pw->pw_uid) != 0) { 56 pw->pw_name, (int)geteuid());
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/sigqueue/ |
H A D | 12-1.c | 31 struct passwd *pw; local 34 while((pw = getpwent()) != NULL) 35 if(pw->pw_uid != 0) 38 if(pw == NULL) { 43 if(setuid(pw->pw_uid) != 0) { 54 pw->pw_name, (int)geteuid(), (int)getuid());
|
H A D | 3-1.c | 34 struct passwd *pw; local 37 while((pw = getpwent()) != NULL) 38 if(pw->pw_uid != 0) 41 if(pw == NULL) { 46 if(setuid(pw->pw_uid) != 0) { 56 pw->pw_name, (int)getuid(), (int)geteuid());
|
/haiku-fatelf/src/tests/system/libroot/posix/bonnie++-1.03d/ |
H A D | bon_suid.cpp | 14 struct passwd *pw; local 21 pw = getpwuid(userId); 22 if(pw) 24 groupId = pw->pw_gid; 37 pw = getpwnam(userName); 38 if(!pw) 43 userId = pw->pw_uid; 44 groupId = pw->pw_gid;
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/shm_unlink/ |
H A D | 8-1.c | 40 struct passwd *pw; local 63 while((pw = getpwent()) != NULL) 64 if(strcmp(pw->pw_name, "root") && pw->pw_uid != getuid()) 67 if(pw == NULL) { 72 if(seteuid(pw->pw_uid) != 0) { 82 pw->pw_name, pw->pw_uid);
|
H A D | 9-1.c | 39 struct passwd *pw; local 49 while((pw = getpwent()) != NULL) 50 if(strcmp(pw->pw_name, "root") && pw->pw_uid != getuid()) 53 if(pw == NULL) { 58 if(seteuid(pw->pw_uid) != 0) { 68 pw->pw_name, pw->pw_uid);
|
/haiku-fatelf/src/libs/util/ |
H A D | pw_util.c | 405 pw_make(const struct passwd *pw) argument 409 asprintf(&line, "%s:%s:%ju:%ju:%s:%ju:%ju:%s:%s:%s", pw->pw_name, 410 pw->pw_passwd, (uintmax_t)pw->pw_uid, (uintmax_t)pw->pw_gid, 411 pw->pw_class, (uintmax_t)pw->pw_change, (uintmax_t)pw->pw_expire, 412 pw->pw_gecos, pw 421 pw_copy(int ffd, int tfd, const struct passwd *pw, struct passwd *old_pw) argument 553 pw_dup(const struct passwd *pw) argument 604 struct passwd pw, *ret; local [all...] |
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/sched_setparam/ |
H A D | 23-6.c | 28 struct passwd *pw; local 31 while((pw = getpwent()) != NULL) 32 if(strcmp(pw->pw_name, "root")) 35 if(pw == NULL) { 40 if(setuid(pw->pw_uid) != 0) { 50 pw->pw_name, (int)geteuid(), (int)getuid());
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/sem_open/ |
H A D | 3-1.c | 36 struct passwd *pw; local 39 while((pw = getpwent()) != NULL) 40 if(strcmp(pw->pw_name, "root")) 43 if(pw == NULL) { 48 if(seteuid(pw->pw_uid) != 0) { 58 pw->pw_name, (int)geteuid());
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/sem_unlink/ |
H A D | 3-1.c | 99 struct passwd * pw; local 103 while ( ( pw = getpwent() ) != NULL ) 104 if ( strcmp( pw->pw_name, "root" ) ) 109 if ( pw == NULL ) 115 if ( seteuid( pw->pw_uid ) != 0 ) 128 pw->pw_name, ( int ) geteuid() );
|