Searched defs:uid (Results 1 - 25 of 388) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/libbc/libc/sys/4.2/
H A Dsetuid.c30 setuid(int uid) argument
32 return (setreuid(uid, uid));
/illumos-gate/usr/src/lib/libbc/libc/sys/common/
H A Dgetuid.c32 int uid; local
34 if ((uid = _getuid()) > 0xffff)
35 uid = 60001; /* nobody */
36 return (uid);
H A Dsetreuid.c32 setreuid(int uid, int euid) argument
34 if (uid > 0xffff || euid > 0xffff) {
38 return (_setreuid(uid, euid));
/illumos-gate/usr/src/lib/libbc/libc/sys/sys5/
H A Dsetuid.c30 setuid(int uid) argument
33 return (setreuid(uid, uid));
35 return (setreuid(-1, uid));
/illumos-gate/usr/src/lib/libbc/libc/compat/4.1/
H A Dgetpw.c32 getpw(int uid, char buf[]) argument
37 pw = getpwuid(uid);
/illumos-gate/usr/src/lib/libbc/libc/compat/sys5/
H A Dgetpw.c32 getpw(int uid, char buf[]) argument
37 pw = getpwuid(uid);
/illumos-gate/usr/src/cmd/lp/lib/lp/
H A Dgetname.c64 uid_t uid; local
72 uid = getuid();
78 || p->pw_uid != uid
80 if ((p = getpwuid(uid)))
89 if (uid > 0) {
92 sprintf (logname, "%d", uid);
/illumos-gate/usr/src/cmd/mailx/
H A Dgetname.c51 * Search the passwd file for a uid. Return name through ref parameter
57 getname(uid_t uid, char namebuf[]) argument
61 if (uid == (uid_t)-1) {
66 pw = getpwuid(uid);
/illumos-gate/usr/src/cmd/getent/
H A Ddogetpw.c42 uid_t uid; local
54 * a uid, if it can be completely transformed
55 * to a long integer. So we check for uid in
61 uid = strtoul(*list, &ptr, 10);
63 ((pwp = getpwuid(uid)) == NULL)) {
H A Ddogetsp.c44 uid_t uid; local
/illumos-gate/usr/src/cmd/gss/gssd/
H A Dgssd_getuid.c27 * Routines to set gssd value of uid and replace getuid libsys call.
53 set_gssd_uid(uid_t uid) argument
79 printf(gettext("set_gssd_uid called with uid = %d\n"), uid);
82 * nfsd runs as UID 1, so upcalls triggered by nfsd will cause uid to
85 if (uid == 1)
86 uid = 0;
93 krb5_cc_uid = uid;
99 * Switch uid and set the saved set-uid t
[all...]
/illumos-gate/usr/src/lib/libcmdutils/common/
H A Duid.c42 static boolean_t isreserveduid(uid_t uid);
45 * Find the highest unused uid. If the highest unused uid is "stop",
51 uid_t uid = start; local
59 if (pwd->pw_uid >= uid) {
64 uid = pwd->pw_uid + 1;
74 while (isreserveduid(uid) && uid < stop) /* Skip reserved IDs */
75 uid++;
76 *ret = uid;
85 isreserveduid(uid_t uid) argument
97 uid_t uid; local
[all...]
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_selfcred.h51 uid_t uid; member in struct:nscd_fork
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_rquota.c72 int uid; local
86 uid = getxdr_long();
90 uid, buff);
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/
H A Dsmb_pass.h43 uid_t uid; /* User id */ member in struct:smb_passid
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dsafechown.c17 * safechown changes the owner ship of src to uid. If the mode parameter
24 safechown(const char *src, uid_t uid, gid_t gid, int mode) argument
57 /* we should probably get the primary group id for uid here */
58 if (fchown(fd, uid, gid)) {
79 fprintf(stderr, "Usage %s [-u uid] [-m mode] source\n", prg);
87 uid_t uid = 0; local
95 uid = atoi(optarg);
105 if (safechown(argv[optind], uid, getgid(), mode)) {
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Dimport_name.c131 uid_t uid; local
155 uid = *(uid_t *) input_name_buffer->value;
157 if (k5_getpwuid_r(uid, &pwx, pwbuf, sizeof(pwbuf), &pw) == 0)
162 uid = atoi(tmp);
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetpw.c48 getpw(uid_t uid, char buf[]) argument
96 if (n == uid) {
H A Dgetpwnam.c70 getpwuid(uid_t uid) argument
75 getpwuid_r(uid, b->result, b->buffer, b->buflen));
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dchown.c36 fchownat(int fd, const char *name, uid_t uid, gid_t gid, int flags) argument
38 return (syscall(SYS_fchownat, fd, name, uid, gid, flags));
43 chown(const char *name, uid_t uid, gid_t gid) argument
46 return (syscall(SYS_chown, name, uid, gid));
48 return (fchownat(AT_FDCWD, name, uid, gid, 0));
54 lchown(const char *name, uid_t uid, gid_t gid) argument
57 return (syscall(SYS_lchown, name, uid, gid));
59 return (fchownat(AT_FDCWD, name, uid, gid, AT_SYMLINK_NOFOLLOW));
65 fchown(int filedes, uid_t uid, gid_t gid) argument
68 return (syscall(SYS_fchown, filedes, uid, gi
[all...]
/illumos-gate/usr/src/cmd/sendmail/db/include/
H A Dlog_auto.h21 DBT uid; member in struct:_log_register_args
/illumos-gate/usr/src/cmd/acct/
H A Daccton.c53 uid_t uid; local
55 uid = getuid();
57 perror("cannot determine adm's uid"), exit(1);
60 if (uid == ROOT || uid == admuid) {
/illumos-gate/usr/src/cmd/bnu/
H A Dexpfile.c51 uid_t uid; local
64 if ((user[0]=='\0') || (gninfo(user, &uid, file) != 0)){
/illumos-gate/usr/src/cmd/cmd-inet/common/
H A Dstore_forw_creds.c53 uid_t uid; local
60 uid = getuid();
103 (void) seteuid(uid);
/illumos-gate/usr/src/cmd/fs.d/smbclnt/lsacl/
H A Dlsacl.c100 uid_t uid; local
136 error = smbfs_acl_sd2zfs(sd, acl, &uid, &gid);
148 if (uid == (uid_t)-1)
151 printf("owner: %u\n", uid);

Completed in 93 milliseconds

1234567891011>>