Lines Matching defs:uid
80 * Return the home directory pathname for the user with uid "userid".
93 return alt_spooldir; /* use alt spool for unknown uid */
101 if ((int) userid == 0) /* force all uid 0 to use root's home */
155 dlog("cache spill uid = %ld, pid = %ld, home = %s",
156 (long) lastchild->uid, (long) lastchild->child,
368 return untab[idx].uid;
388 mailbox(int uid, char *username)
392 if (uid < 0)
414 return i->uid - j->uid;
512 /* read uid */
515 plog(XLOG_ERROR, "no uid on line %d of %s", passwd_line, passwdfile);
535 plog(XLOG_USER, "hlfsd_getpwent: name=%s, uid=%ld, dir=%s",
609 pwtab[i].uid = INVALIDID; /* not a valid uid (yet...) */
616 untab[i].uid = INVALIDID; /* invalid uid */
629 * u: uid number
667 if (u == pwtab[i].uid && u != 0 ) {
668 dlog("ignoring duplicate home %s for uid %d (already %s)",
678 pwtab[cur_pwtab_num].uid = u;
685 untab[cur_pwtab_num].uid = u;
713 if (pwtab[mid].uid == u) /* record found! */
715 if (pwtab[mid].uid > u)
721 if (pwtab[max].uid == u)
723 if (pwtab[min].uid == u)
764 (long) pwtab[i].uid,
770 untab[i].username, (long) untab[i].uid, untab[i].home);
790 (long) pwtab[i].child, (long) pwtab[i].uid,
795 untab[i].username, (long) untab[i].uid, untab[i].home);
796 fprintf(dumpfile, "ezk: ent=%d, uid=%lu, home=\"%s\"\n",
798 (long) untab[untab_index("ezk")].uid,
799 pwtab[untab[untab_index("ezk")].uid].home);
800 fprintf(dumpfile, "rezk: ent=%d, uid=%lu, home=\"%s\"\n",
802 (long) untab[untab_index("rezk")].uid,
803 pwtab[untab[untab_index("rezk")].uid].home);