Searched refs:uid (Results 1 - 25 of 461) sorted by relevance

1234567891011>>

/openbsd-current/regress/sys/kern/setuid/
H A Dsetresuid.c26 uid_t uid; local
31 uid = getuid();
35 checkuids(pw->pw_uid, uid, uid, "0");
50 if (setresuid(uid, -1, -1) == -1)
52 checkuids(uid, uid, uid, "1");
56 checkuids(uid, pw->pw_uid, uid, "
[all...]
H A Dsetuid_none.c25 uid_t uid; local
27 uid = getuid();
29 checkuids(uid, uid, uid, "getuid");
H A Dseteuid.c26 uid_t uid; local
28 uid = getuid();
39 checkuids(uid, pw->pw_uid, uid, "seteuid");
53 /* at this point, we should be able to reset our uid */
54 if (seteuid(uid) == -1)
H A Dsetuid_real_exec.c28 uid_t uid; local
39 uid = getuid();
43 checkuids(pw->pw_uid, uid, uid, "setuid");
/openbsd-current/usr.bin/tmux/
H A Dserver-acl.c33 uid_t uid; member in struct:server_acl_user
44 if (user1->uid < user2->uid)
46 return (user1->uid > user2->uid);
65 server_acl_user_find(uid_t uid) argument
67 struct server_acl_user find = { .uid = uid };
81 if (loop->uid == 0)
83 if ((pw = getpwuid(loop->uid)) !
96 server_acl_user_allow(uid_t uid) argument
110 server_acl_user_deny(uid_t uid) argument
123 server_acl_user_allow_write(uid_t uid) argument
142 server_acl_user_deny_write(uid_t uid) argument
167 uid_t uid; local
[all...]
/openbsd-current/gnu/llvm/lldb/source/Utility/
H A DUserID.cpp17 Stream &lldb_private::operator<<(Stream &strm, const UserID &uid) { argument
18 strm.Printf("{0x%8.8" PRIx64 "}", uid.GetID());
/openbsd-current/gnu/usr.bin/perl/lib/User/
H A Dpwent.t20 our $uid = 0;
22 # It is better to use the $< uid for testing on VMS instead.
23 if ( $^O eq 'VMS' ) { $uid = $< ; }
24 if ( $^O eq 'cygwin' ) { $uid = 500 ; }
25 our @pwent = getpwuid $uid; # This is the function getpwuid.
26 unless (@pwent) { print "1..0 # Skip: no uid $uid\n"; exit 0 }
35 my $pwent = getpwuid $uid; # This is the OO getpwuid.
37 my $uid_expect = $uid;
39 print "not " unless ( $pwent->uid
[all...]
/openbsd-current/gnu/llvm/lldb/include/lldb/Utility/
H A DUserID.h33 UserID(lldb::user_id_t uid = LLDB_INVALID_UID) : m_uid(uid) {}
51 /// \param[in] uid
53 void SetID(lldb::user_id_t uid) { m_uid = uid; } argument
65 IDMatches(lldb::user_id_t uid) : m_uid(uid) {} argument
89 Stream &operator<<(Stream &strm, const UserID &uid);
/openbsd-current/gnu/llvm/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangASTMetadata.cpp15 lldb::user_id_t uid = GetUserID(); local
17 if (uid != LLDB_INVALID_UID) {
18 s->Printf("uid=0x%" PRIx64, uid);
/openbsd-current/usr.bin/ssh/
H A Dsftp-usergroup.h24 const char *ruser_name(uid_t uid);
/openbsd-current/distrib/special/doas/
H A Ddoas.c40 parseuid(const char *s, uid_t *uid) argument
46 *uid = pw->pw_uid;
47 if (*uid == UID_MAX)
51 *uid = strtonum(s, 0, UID_MAX - 1, &errstr);
62 uid_t uid; local
71 uid = getuid();
72 if (uid != 0)
/openbsd-current/regress/lib/libc/sys/
H A Dt_setuid.c66 uid_t uid = getuid(); local
68 ATF_REQUIRE(setuid(uid) == 0);
70 ATF_REQUIRE(getuid() == uid);
71 ATF_REQUIRE(geteuid() == uid);
86 uid_t uid; local
100 uid = getuid();
102 if (uid != pw->pw_uid)
/openbsd-current/lib/libcrypto/sm2/
H A Dsm2_local.h26 const uint8_t *uid, size_t uid_len, const EC_KEY *key);
33 const uint8_t *uid, size_t uid_len, const uint8_t *msg, size_t msg_len);
36 const ECDSA_SIG *signature, const uint8_t *uid, size_t uid_len,
/openbsd-current/games/hunt/hunt/
H A Dconnect.c43 u_int32_t uid; local
61 uid = htonl(getuid());
65 (void) write(Socket, &uid, sizeof uid);
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/unsorted/
H A DBUG13.c3 int uid; member in struct:tree_common
/openbsd-current/usr.bin/at/
H A Dat.h33 uid_t uid; member in struct:atjob
/openbsd-current/regress/sys/ffs/tests/chown/
H A D02.t7 expect 65534,65534 stat ${name255} uid,gid
/openbsd-current/gnu/llvm/llvm/utils/TableGen/
H A DX86DisassemblerTables.h223 /// @param uid - The unique ID to set matching entries to.
227 InstrUID uid,
242 /// decode tables to point to a specific uid.
250 /// @param uid - The unique ID of the instruction.
260 InstrUID uid,
270 /// @param uid - The unique ID of the instruction.
272 InstructionSpecifier& specForUID(InstrUID uid) { argument
273 if (uid >= InstructionSpecifiers.size())
274 InstructionSpecifiers.resize(uid + 1);
276 return InstructionSpecifiers[uid];
[all...]
/openbsd-current/regress/sys/ffs/tests/link/
H A D00.t30 expect regular,0201,3,65534,65533 lstat ${n0} type,mode,nlink,uid,gid
31 expect regular,0201,3,65534,65533 lstat ${n1} type,mode,nlink,uid,gid
32 expect regular,0201,3,65534,65533 lstat ${n2} type,mode,nlink,uid,gid
35 expect ENOENT lstat ${n0} type,mode,nlink,uid,gid
36 expect regular,0201,2,65534,65533 lstat ${n1} type,mode,nlink,uid,gid
37 expect regular,0201,2,65534,65533 lstat ${n2} type,mode,nlink,uid,gid
40 expect ENOENT lstat ${n0} type,mode,nlink,uid,gid
41 expect regular,0201,1,65534,65533 lstat ${n1} type,mode,nlink,uid,gid
42 expect ENOENT lstat ${n2} type,mode,nlink,uid,gid
45 expect ENOENT lstat ${n0} type,mode,nlink,uid,gi
[all...]
/openbsd-current/usr.bin/mail/
H A Dv7.local.c90 uid_t uid; local
96 if ((np = user_from_uid(uid = getuid(), 1)) != NULL)
100 printf("Cannot associate a name with uid %u\n", uid);
H A Dtemp.c66 uid_t uid; local
68 if (uid_from_user(myname, &uid) == -1)
/openbsd-current/sys/kern/
H A Dsysv_ipc.c49 cred->cr_uid == perm->uid ||
55 if (vaccess(VNON, perm->mode, perm->uid, perm->gid, mode, cred) == 0 ||
/openbsd-current/gnu/llvm/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFTypeUnit.h28 DWARFTypeUnit(SymbolFileDWARF &dwarf, lldb::user_id_t uid, argument
32 : DWARFUnit(dwarf, uid, header, abbrevs, section, is_dwo) {}
/openbsd-current/lib/libc/gen/
H A Dpwcache.c54 #define UID_SZ 317 /* size of uid to user_name cache */
55 #define UNM_SZ 317 /* size of user_name to uid cache */
62 * Node structures used in the user, group, uid, and gid caches.
67 char name[UNMLEN]; /* uid name */
68 uid_t uid; /* cached uid */ member in struct:uidc
78 * Routines that control user, group, uid and gid caches.
86 static UIDC **uidtb; /* uid to name cache */
88 static UIDC **usrtb; /* user name to uid cache */
196 * caches the name (if any) for the uid
203 user_from_uid(uid_t uid, int noname) argument
323 uid_from_user(const char *name, uid_t *uid) argument
[all...]
/openbsd-current/gnu/usr.bin/cvs/vms/
H A Dpwd.c20 struct passwd *getpwuid(unsigned int uid) argument

Completed in 323 milliseconds

1234567891011>>