Searched refs:userid (Results 1 - 18 of 18) sorted by relevance

/freebsd-11-stable/contrib/top/
H A Dusername.h21 int userid(char *username);
H A Dusername.c90 int userid(username) function
143 * Get a userid->name mapping from the system.
H A Dtop.c210 if ((uid = userid(buf2)) == -1)
405 if ((ps.uid[0] = userid(optarg)) == -1)
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/scripting/
H A Dtst.euid.ksh72 userid=`ps -x -o pid,uid | grep "$$ " | awk '{print $2}' 2>/dev/null`
78 $dfilename $userid >/dev/null 2>&1
H A Dtst.uid.ksh72 userid=`ps -x -o pid,uid | grep "$$ " | awk '{print $2}' 2>/dev/null`
78 $dfilename $userid >/dev/null 2>&1
/freebsd-11-stable/contrib/apr/include/
H A Dapr_user.h60 * Get the userid (and groupid) of the calling process
61 * @param userid Returns the user id
66 APR_DECLARE(apr_status_t) apr_uid_current(apr_uid_t *userid,
71 * Get the user name for a specified userid
73 * @param userid The userid
77 APR_DECLARE(apr_status_t) apr_uid_name_get(char **username, apr_uid_t userid,
81 * Get the userid (and groupid) for the specified username
82 * @param userid Returns the user id
88 APR_DECLARE(apr_status_t) apr_uid_get(apr_uid_t *userid, apr_gid_
[all...]
/freebsd-11-stable/contrib/apr/user/unix/
H A Duserinfo.c120 APR_DECLARE(apr_status_t) apr_uid_name_get(char **username, apr_uid_t userid,
129 rv = getpwuid_r(userid, &pwd, pwbuf, sizeof(pwbuf), &pw);
140 if ((pw = getpwuid(userid)) == NULL) {
/freebsd-11-stable/contrib/amd/hlfsd/
H A Dstubs.c302 uid_t userid = (uid_t) INVALIDID; local
312 if (getcreds(rqstp, &userid, &groupid, nfsxprt) < 0)
320 } else if (!(res.rlr_u.rlr_data_u = path_val = homedir(userid, groupid))) {
331 if (getcreds(rqstp, &userid, &groupid, nfsxprt) < 0) {
336 memcpy(&userid, argp->fh_data, sizeof(userid));
338 if (!(res.rlr_u.rlr_data_u = mailbox(userid, username)))
346 if (userid != last_uid) {
348 (long) userid, (long) groupid, (char *) res.rlr_u.rlr_data_u);
349 last_uid = userid;
[all...]
H A Dhomedir.c76 * Return the home directory pathname for the user with uid "userid".
79 homedir(int userid, int groupid) argument
88 if ((found = plt_search(userid)) == (uid2home_t *) NULL) {
97 if ((int) userid == 0) /* force all uid 0 to use root's home */
177 if ((old_userid = seteuid(userid)) < 0) {
178 plog(XLOG_WARNING, "could not seteuid to %d: %m", userid);
/freebsd-11-stable/bin/rcp/
H A Dutil.c104 susystem(char *s, int userid) argument
116 (void)setuid(userid);
H A Drcp.c81 static uid_t userid; variable
167 if ((pwd = getpwuid(userid = getuid())) == NULL)
168 errx(1, "unknown user %d", (int)userid);
174 (void)setuid(userid);
180 (void)setuid(userid);
260 (void)susystem(bp, userid);
283 (void)setuid(userid);
305 if (susystem(bp, userid))
337 (void)seteuid(userid);
/freebsd-11-stable/usr.sbin/lpr/lpr/
H A Dlpr.c107 static int userid; /* user id */ variable
288 userid = getuid();
290 if (userid != 0 && userid != pp->daemon_user)
295 if (userid != pp->daemon_user || lpr_username == 0) {
296 if ((pw = getpwuid(userid)) == NULL)
305 if (pp->restrict_grp != NULL && userid != pp->daemon_user) {
319 * Check to make sure queuing is enabled if userid is not root.
322 if (userid && stat(buf, &stb) == 0 && (stb.st_mode & LFM_QUEUE_DIS))
648 if (fchown(f, userid,
[all...]
/freebsd-11-stable/usr.sbin/lpr/common_source/
H A Dcommon.c561 const char *userid, const char *otherhost, const char *orighost)
614 * the original-host and userid are found out by reading thru the
617 * orighost & userid are generally not-available for incoming jobs.
625 if (*userid == '\0')
626 userid = NULL;
643 * user=<userid> - user who sent the job (if known)
680 if (userid != NULL) {
681 snprintf(eostat, remspace, " user=%s", userid);
560 trstat_write(struct printer *pp, tr_sendrecv sendrecv, size_t bytecnt, const char *userid, const char *otherhost, const char *orighost) argument
/freebsd-11-stable/crypto/heimdal/appl/rcp/
H A Drcp.c36 uid_t userid; variable
110 if ((pwd = getpwuid(userid = getuid())) == NULL)
111 errx(1, "unknown user %d", (int)userid);
/freebsd-11-stable/usr.sbin/pw/
H A Dpw_user.c638 /* See if the name is valid as a userid or group. */
640 showtype = "userid/group name";
1191 char *gecos, *homedir, *skel, *walk, *userid, *groupid, *grname; local
1204 gecos = homedir = skel = userid = groupid = default_passwd = NULL;
1232 userid = optarg;
1343 if (userid != NULL) {
1344 if ((p = strtok(userid, ", \t")) != NULL)
1368 if (userid)
1369 id = pw_checkid(userid, UID_MAX);
/freebsd-11-stable/crypto/openssh/
H A Dscp.c355 uid_t userid; variable
484 if ((pwd = getpwuid(userid = getuid())) == NULL)
485 fatal("unknown user %u", (u_int) userid);
/freebsd-11-stable/usr.sbin/lpr/lpd/
H A Dprintjob.c1559 sendmail(struct printer *pp, char *userid, int bombed) argument
1580 printf("To: %s@%s\n", userid, origin_host);
1622 syslog(LOG_WARNING, "unable to send mail to %s: %m", userid);
1629 userid, *jobname ? jobname : "<unknown>", pp->printer, cp);
/freebsd-11-stable/crypto/heimdal/lib/hdb/
H A Dhdb-ldap.c835 const char *userid,
883 if (userid && ldap_count_entries(HDB2LDAP(db), *msg) == 0) {
889 ret = escape_value(context, userid, &quote);
832 LDAP__lookup_princ(krb5_context context, HDB *db, const char *princname, const char *userid, LDAPMessage **msg) argument

Completed in 135 milliseconds