Searched refs:uid (Results 1 - 25 of 549) 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/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/dtrace/test/tst/common/safety/
H A Dtst.uid.d31 * collect uid at every fbt probe and at every firing of a
37 @a[uid] = count();
42 @a[uid] = count();
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/vars/
H A Dtst.uid.d32 /curpsinfo->pr_uid == uid/
39 printf("%d != %d\n", curpsinfo->pr_uid, uid);
/illumos-gate/usr/src/cmd/oamuser/lib/
H A Dvuid.c44 valid_uid( uid, pptr )
45 uid_t uid;
50 if( uid <= 0 ) return( INVALID );
51 if( uid <= DEFRID ) {
52 if( pptr ) *pptr = getpwuid( uid );
57 if( uid > MAXUID ) return( TOOBIG );
59 if( t_pptr = getpwuid( uid ) ) {
H A Dfile.c32 check_perm( statbuf, uid, gid, perm )
34 uid_t uid;
47 if( (statbuf.st_uid == 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/dtrace/test/tst/common/scripting/
H A Dtst.uid.d33 * print uid in a script
41 printf("The uid is %d\n", $uid);
/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/bnu/
H A Dgetpwinfo.c36 * get passwd file info for logname or uid
37 * uid -> uid #
43 * FAIL -> failure (logname and uid not found)
46 guinfo(uid, name)
47 uid_t uid;
56 if (pwd != NULL && pwd->pw_uid == uid)
61 if ((pwd = getpwuid(uid)) == NULL) {
63 /* can not find uid in passwd file */
75 * uid
[all...]
/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/libsmbfs/netsmb/
H A Dsmb_keychain.h50 int smbfs_keychain_add(uid_t uid, const char *domain, const char *user,
54 int smbfs_keychain_addhash(uid_t uid, const char *domain, const char *user,
58 int smbfs_keychain_del(uid_t uid, const char *domain, const char *user);
/illumos-gate/usr/src/lib/libbc/libc/net/
H A Dauthunix.c36 authunix_create(machname, uid, gid, len, aup_gids)
38 uid_t uid;
43 return(authsys_create(machname, uid, gid, len, aup_gids));
/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/lib/libast/common/string/
H A Dfmtuid.c27 * uid number -> name
56 * return uid name given uid number
60 fmtuid(int uid) argument
76 else if (ip = (Id_t*)dtmatch(dict, &uid))
78 if (pw = getpwuid(uid))
86 else if (uid == 0)
90 name = fmtbuf(z = sizeof(uid) * 3 + 1);
91 sfsprintf(name, z, "%I*d", sizeof(uid), uid);
[all...]
/illumos-gate/usr/src/cmd/acct/lib/
H A Duidtonam.c31 * convert uid to login name; interface to getpwuid that keeps up to USIZE1
52 uidtonam(uid)
53 uid_t uid;
60 if (uid == up->uuid)
63 if ((pp = getpwuid(uid)) == NULL)
67 up->uuid = uid;
/illumos-gate/usr/src/uts/common/syscall/
H A Dchown.c58 fchownat(int fd, char *path, uid_t uid, gid_t gid, int flag) argument
64 if (uid != (uid_t)-1 && !VALID_UID(uid, zone) ||
68 vattr.va_uid = uid;
83 chown(char *path, uid_t uid, gid_t gid) argument
85 return (fchownat(AT_FDCWD, path, uid, gid, 0));
89 lchown(char *path, uid_t uid, gid_t gid) argument
91 return (fchownat(AT_FDCWD, path, uid, gid, AT_SYMLINK_NOFOLLOW));
95 fchown(int fd, uid_t uid, uid_t gid) argument
97 return (fchownat(fd, NULL, uid, gi
[all...]
/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)) {
/illumos-gate/usr/src/uts/common/rpc/
H A Drpcsys.h48 uid_t uid; member in struct:krpc_revauth_1
55 uid32_t uid; member in struct:krpc_revauth_132
67 #define uid_1 krpc_revauth_u.r.uid
/illumos-gate/usr/src/cmd/gss/gsscred/
H A Dgsscred.h31 * name and unix uid.
75 int file_addGssCredEntry(const gss_buffer_t hexName, const char *uid,
77 int file_getGssCredEntry(const gss_buffer_t name, const char *uid,
79 int file_deleteGssCredEntry(const gss_buffer_t name, const char *uid,
85 * GSS entry point for retrieving user uid information based on
88 int gss_getGssCredEntry(const gss_buffer_t expName, uid_t *uid);
/illumos-gate/usr/src/cmd/logname/
H A Dlogname.c53 uid_t uid; local
56 uid = getuid();
57 pass = getpwuid(uid);
61 (void) snprintf(uidbuf, sizeof (uidbuf), "%u", uid);
/illumos-gate/usr/src/lib/libidmap/common/
H A Didmap_cache.h52 uid_t *uid);
64 uid_t uid);
71 idmap_cache_lookup_winnamebyuid(char **winname, char **windomain, uid_t uid);
78 uid_t *uid);
85 idmap_cache_add_sid2uid(const char *sid_prefix, idmap_rid_t rid, uid_t uid,
98 uid_t uid, int direction);

Completed in 1184 milliseconds

1234567891011>>