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

123

/haiku-fatelf/src/system/libroot/posix/unistd/
H A Dgetlogin.c20 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 Dcrypt.h38 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 Dcrypt-md5.c45 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 Dirp_pw.c72 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 Dgen_pw.c75 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 Dgetpwent.c108 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 Dgetpwent_r.c60 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 Dsu.c160 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 D12-1.c31 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 D15-1.c30 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 D6-1.c36 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 D7-1.c27 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 D20-1.c34 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 D32-1.c34 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 D26-2.c42 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 D34-1.c34 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 D12-1.c31 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 D3-1.c34 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 Dbon_suid.cpp14 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 D8-1.c40 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 D9-1.c39 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 Dpw_util.c405 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 D23-6.c28 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 D3-1.c36 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 D3-1.c99 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() );

Completed in 290 milliseconds

123