| /src/usr.bin/mail/ |
| getname.c | 52 struct passwd *pw; local 54 if ((pw = getpwuid(uid)) == NULL) 56 return pw->pw_name; 66 struct passwd *pw; local 68 if ((pw = getpwnam(name)) == NULL) 70 return pw->pw_uid;
|
| /src/external/gpl2/gettext/dist/gettext-tools/misc/ |
| cvsuser.c | 28 static struct passwd pw; local 31 pw.pw_name = strcpy (namebuf, name); 32 pw.pw_passwd = "*"; 33 pw.pw_uid = 100; 34 pw.pw_gid = 100; 35 pw.pw_gecos = ""; 36 pw.pw_dir = "/"; 37 pw.pw_shell = "/bin/sh"; 39 return &pw;
|
| /src/crypto/external/bsd/heimdal/dist/lib/roken/ |
| verify.c | 50 struct passwd *pw; local 52 pw = k_getpwnam(user); 53 if(pw == NULL) 55 if(strlen(pw->pw_passwd) == 0 && strlen(password) == 0) 57 if(strcmp(crypt(password, pw->pw_passwd), pw->pw_passwd) == 0)
|
| /src/lib/libc/gen/ |
| pw_private.h | 10 int __pw_scan(char *bp, struct passwd *pw, int *flags);
|
| /src/crypto/external/bsd/openssh/dist/ |
| uidswap.c | 55 temporarily_use_uid(struct passwd *pw) 61 (u_int)pw->pw_uid, (u_int)pw->pw_gid, 74 if (user_groupslen == -1 || user_groups_uid != pw->pw_uid) { 75 if (initgroups(pw->pw_name, pw->pw_gid) == -1) 76 fatal("initgroups: %s: %.100s", pw->pw_name, 81 user_groups_uid = pw->pw_uid; 86 if (setegid(pw->pw_gid) == -1) 87 fatal("setegid %u: %.100s", (u_int)pw->pw_gid [all...] |
| /src/external/mit/isl/dist/ |
| isl_pw_fix_templ.c | 3 /* Fix the value of the given parameter or domain dimension of "pw" 6 __isl_give PW *FN(PW,fix_si)(__isl_take PW *pw, enum isl_dim_type type, 12 n = FN(PW,n_piece)(pw); 14 return FN(PW,free)(pw); 17 isl_die(FN(PW,get_ctx)(pw), isl_error_invalid [all...] |
| isl_pw_un_op_templ.c | 24 S(PW,un_op_control) { 30 /* Modify "pw" based on "control". 35 static __isl_give PW *FN(PW,un_op)(__isl_take PW *pw, 36 S(PW,un_op_control) *control) 42 n = FN(PW,n_piece)(pw); 44 return FN(PW,free)(pw) [all...] |
| isl_pw_morph_templ.c | 11 __isl_give PW *FN(PW,morph_domain)(__isl_take PW *pw, 19 n = FN(PW,n_piece)(pw); 23 ctx = isl_space_get_ctx(pw->dim); 24 isl_assert(ctx, isl_space_is_domain_internal(morph->dom->dim, pw->dim), 27 space = FN(PW,take_space)(pw); [all...] |
| isl_pw_opt_templ.c | 16 __isl_give isl_val *FN(PW,opt)(__isl_take PW *pw, int max) 21 if (!pw) 24 if (pw->n == 0) { 25 opt = isl_val_zero(FN(PW,get_ctx)(pw)); 26 FN(PW,free)(pw); 30 opt = FN(EL,opt_on_domain)(FN(EL,copy)(pw->p[0].FIELD) [all...] |
| isl_pw_insert_dims_templ.c | 11 __isl_give PW *FN(PW,insert_dims)(__isl_take PW *pw, enum isl_dim_type type, 19 n_piece = FN(PW,n_piece)(pw); 21 return FN(PW,free)(pw); 22 if (n == 0 && !isl_space_is_named_or_nested(pw->dim, type)) 23 return pw; [all...] |
| isl_pw_scale_templ.c | 13 __isl_give PW *FN(PW,scale)(__isl_take PW *pw, isl_int v) 19 return pw; 20 if (pw && DEFAULT_IS_ZERO && isl_int_is_zero(v)) { 21 PW *zero; 22 isl_space *space = FN(PW,get_space)(pw); 23 zero = FN(PW,ZERO)(space OPT_TYPE_ARG(pw->)) [all...] |
| isl_pw_range_tuple_id_templ.c | 11 /* Does the (range) tuple of "pw" have an identifier? 13 * Technically, the implementation should use isl_dim_set if "pw" 18 isl_bool FN(PW,has_range_tuple_id)(__isl_keep PW *pw) 20 return FN(PW,has_tuple_id)(pw, isl_dim_out); 23 /* Return the identifier of the (range) tuple of "pw", assuming it has one. 25 * Technically, the implementation should use isl_dim_set if "pw" 30 __isl_give isl_id *FN(PW,get_range_tuple_id)(__isl_keep PW *pw [all...] |
| isl_pw_move_dims_templ.c | 11 __isl_give PW *FN(PW,move_dims)(__isl_take PW *pw, 19 space = FN(PW,take_space)(pw); 22 pw = FN(PW,restore_space)(pw, space); 24 n_piece = FN(PW,n_piece)(pw) [all...] |
| isl_pw_split_dims_templ.c | 13 __isl_give PW *FN(PW,split_dims)(__isl_take PW *pw, 19 n_piece = FN(PW,n_piece)(pw); 21 return FN(PW,free)(pw); 23 return pw; 31 domain = FN(PW,take_domain_at)(pw, i) [all...] |
| isl_pw_templ.c | 23 __isl_give PW *FN(PW,alloc_size)(__isl_take isl_space *space 27 struct PW *pw; local 33 pw = isl_alloc(ctx, struct PW, 34 sizeof(struct PW) + (n - 1) * sizeof(S(PW,piece))); 35 if (!pw) 38 pw->ref = 1 152 PW *pw; local [all...] |
| isl_pw_hash.c | 12 /* Return a hash value that digests "pw". 14 uint32_t FN(PW,get_hash)(__isl_keep PW *pw) 19 if (!pw) 23 for (i = 0; i < pw->n; ++i) { 26 set_hash = isl_set_get_hash(pw->p[i].set); 28 el_hash = FN(EL,get_hash)(pw->p[i].FIELD);
|
| /src/external/bsd/cron/dist/ |
| pw_dup.c | 57 pw_dup(const struct passwd *pw) { 67 if (pw->pw_name) { 68 nsize = strlen(pw->pw_name) + 1; 72 if (pw->pw_passwd) { 73 psize = strlen(pw->pw_passwd) + 1; 78 if (pw->pw_class) { 79 csize = strlen(pw->pw_class) + 1; 84 if (pw->pw_gecos) { 85 gsize = strlen(pw->pw_gecos) + 1; 89 if (pw->pw_dir) [all...] |
| /src/lib/libutil/compat/ |
| compat_login_cap.c | 57 struct passwd pw; local 59 passwd50_to_passwd(pw50, &pw); 60 return __login_getpwclass50(&pw); 66 struct passwd pw; local 68 passwd50_to_passwd(pw50, &pw); 69 return __setusercontext50(lc, &pw, uid, flags);
|
| /src/usr.bin/chpass/ |
| field.c | 58 p_login(const char *p, struct passwd *pw, ENTRY *ep) 69 if (!(pw->pw_name = strdup(p))) { 85 p_passwd(const char *p, struct passwd *pw, ENTRY *ep) 88 if (!(pw->pw_passwd = strdup(p))) { 98 p_uid(const char *p, struct passwd *pw, ENTRY *ep) 121 pw->pw_uid = (uid_t)id; 127 p_gid(const char *p, struct passwd *pw, ENTRY *ep) 142 pw->pw_gid = gr->gr_gid; 155 pw->pw_gid = (gid_t)id; 161 p_class(const char *p, struct passwd *pw, ENTRY *ep [all...] |
| /src/external/bsd/libbind/dist/irs/ |
| irp_pw.c | 74 static void free_passwd(struct passwd *pw); 79 struct irs_pw *pw; local 82 if (!(pw = memget(sizeof *pw))) { 86 memset(pw, 0, sizeof *pw); 89 memput(pw, sizeof *pw); 96 pw->private = pvt; 97 pw->close = pw_close 134 struct passwd *pw = &pvt->passwd; local 178 struct passwd *pw = &pvt->passwd; local 230 struct passwd *pw = &pvt->passwd; local [all...] |
| gen_pw.c | 77 struct irs_pw *pw; local 80 if (!(pw = memget(sizeof *pw))) { 84 memset(pw, 0x5e, sizeof *pw); 86 memput(pw, sizeof *pvt); 93 pw->private = pvt; 94 pw->close = pw_close; 95 pw->next = pw_next; 96 pw->byname = pw_byname 119 struct irs_pw *pw; local 140 struct irs_pw *pw; local 154 struct irs_pw *pw; local 171 struct irs_pw *pw; local 189 struct irs_pw *pw = rule->inst->pw; local 228 struct irs_pw *pw = rule->inst->pw; local [all...] |
| getpwent.c | 110 struct irs_pw *pw; local 112 if (!net_data || !(pw = net_data->pw)) 114 net_data->pw_last = (*pw->next)(pw); 120 struct irs_pw *pw; local 122 if (!net_data || !(pw = net_data->pw)) 127 net_data->pw_last = (*pw->byname)(pw, name) 135 struct irs_pw *pw; local 150 struct irs_pw *pw; local 175 struct irs_pw *pw; local [all...] |
| /src/external/bsd/tmux/dist/ |
| cmd-server-access.c | 48 cmd_server_access_deny(struct cmdq_item *item, struct passwd *pw) 54 if ((user = server_acl_user_find(pw->pw_uid)) == NULL) { 55 cmdq_error(item, "user %s not found", pw->pw_name); 65 server_acl_user_deny(pw->pw_uid); 77 struct passwd *pw = NULL; local 90 pw = getpwnam(name); 91 if (pw == NULL) { 97 if (pw->pw_uid == 0 || pw->pw_uid == getuid()) { 99 pw->pw_name) [all...] |
| /src/external/mpl/bind/dist/bin/confgen/ |
| os.c | 30 struct passwd *pw; local 32 pw = getpwnam(user); 33 if (pw == NULL) { 37 return fchown(fileno(fd), pw->pw_uid, -1);
|
| /src/games/canfield/cfscores/ |
| cfscores.c | 64 struct passwd *pw; local 81 pw = getpwuid(uid); 82 if (pw == NULL) { 85 printuser(pw, 1); 89 while ((pw = getpwent()) != NULL) 90 printuser(pw, 0); 93 pw = getpwnam(argv[1]); 94 if (pw == NULL) { 97 printuser(pw, 1); 105 printuser(const struct passwd *pw, int printfail [all...] |