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

123

/bionic/libc/bionic/
H A Dchown.cpp34 int chown(const char* path, uid_t uid, gid_t gid) { argument
35 return fchownat(AT_FDCWD, path, uid, gid, 0);
H A Dlchown.cpp34 int lchown(const char* path, uid_t uid, gid_t gid) { argument
35 return fchownat(AT_FDCWD, path, uid, gid, AT_SYMLINK_NOFOLLOW);
H A Dgrp_pwd_file.cpp57 bool FieldToUid(const char* field, uid_t* uid) { argument
68 *uid = result;
100 const char* uid() const { function in struct:__anon22::PasswdLine
119 uid_t uid; local
120 if (!FieldToUid(this->uid(), &uid)) {
129 passwd_state->passwd_.pw_uid = uid;
292 bool MmapFile::FindById(uid_t uid, Line* line) { argument
293 return Find(line, [uid](const auto& line) {
299 return line_id == uid;
[all...]
H A Dgrp_pwd.cpp80 static int do_getpw_r(int by_name, const char* name, uid_t uid, argument
91 const passwd* src = by_name ? getpwnam(name) : getpwuid(uid); // NOLINT: see above.
135 int getpwuid_r(uid_t uid, passwd* pwd, argument
137 return do_getpw_r(0, NULL, uid, pwd, buf, byte_count, result);
203 // AID_APP_START. They exist per user, so a given uid/gid modulo AID_USER_OFFSET will map
367 static void print_app_name_from_uid(const uid_t uid, char* buffer, const int bufferlen) { argument
368 const uid_t appid = uid % AID_USER_OFFSET;
369 const uid_t userid = uid / AID_USER_OFFSET;
405 // oem_XXXX -> uid
427 static passwd* oem_id_to_passwd(uid_t uid, passwd_state_ argument
474 app_id_to_passwd(uid_t uid, passwd_state_t* state) argument
517 getpwuid(uid_t uid) argument
[all...]
/bionic/libc/dns/include/
H A Dresolv_netid.h62 * circumstances, notably when a VPN applies to the given uid's traffic but the
65 * The introduction of per-UID routing means the uid is also an essential part
74 uid_t uid; member in struct:android_net_context
/bionic/libc/kernel/uapi/asm-generic/
H A Dipcbuf.h23 __kernel_uid32_t uid; member in struct:ipc64_perm
/bionic/libc/versioner-dependencies/common/kernel_uapi/asm-generic/
H A Dipcbuf.h23 __kernel_uid32_t uid; member in struct:ipc64_perm
/bionic/tools/versioner/dependencies/common/kernel_uapi/asm-generic/
H A Dipcbuf.h23 __kernel_uid32_t uid; member in struct:ipc64_perm
/bionic/libc/kernel/uapi/linux/
H A Dncp_mount.h41 __kernel_uid_t uid; member in struct:ncp_mount_data
55 unsigned long uid; member in struct:ncp_mount_data_v4
H A Dcramfs_fs.h32 __u32 mode : CRAMFS_MODE_WIDTH, uid : CRAMFS_UID_WIDTH; member in struct:cramfs_inode
H A Dipc.h25 __kernel_uid_t uid; member in struct:__kernel_legacy_ipc_perm
H A Dauto_fs4.h63 __u32 uid; member in struct:autofs_v5_packet
H A Dauto_dev-ioctl.h50 __u32 uid; member in struct:args_requester
/bionic/libc/versioner-dependencies/common/kernel_uapi/linux/
H A Dncp_mount.h41 __kernel_uid_t uid; member in struct:ncp_mount_data
55 unsigned long uid; member in struct:ncp_mount_data_v4
H A Dcramfs_fs.h32 __u32 mode : CRAMFS_MODE_WIDTH, uid : CRAMFS_UID_WIDTH; member in struct:cramfs_inode
H A Dipc.h25 __kernel_uid_t uid; member in struct:__kernel_legacy_ipc_perm
H A Dauto_fs4.h63 __u32 uid; member in struct:autofs_v5_packet
H A Dauto_dev-ioctl.h50 __u32 uid; member in struct:args_requester
/bionic/tests/
H A Dgrp_pwd_file_test.cpp39 void FindAndCheckPasswdEntry(PasswdFile* file, const char* name, uid_t uid, gid_t gid, argument
47 EXPECT_EQ(uid, name_passwd.pw_uid);
54 ASSERT_TRUE(file->FindById(uid, &id_passwd_state)) << uid;
59 EXPECT_EQ(uid, id_passwd.pw_uid);
H A Dgrp_pwd_test.cpp47 static void check_passwd(const passwd* pwd, const char* username, uid_t uid, uid_type_t uid_type, argument
53 EXPECT_EQ(uid, pwd->pw_uid);
54 EXPECT_EQ(uid, pwd->pw_gid);
68 static void check_getpwuid(const char* username, uid_t uid, uid_type_t uid_type, argument
71 passwd* pwd = getpwuid(uid);
74 check_passwd(pwd, username, uid, uid_type, check_username);
77 static void check_getpwnam(const char* username, uid_t uid, uid_type_t uid_type, argument
83 check_passwd(pwd, username, uid, uid_type, check_username);
86 static void check_getpwuid_r(const char* username, uid_t uid, uid_type_t uid_type, argument
94 result = getpwuid_r(uid,
101 check_getpwnam_r(const char* username, uid_t uid, uid_type_t uid_type, bool check_username) argument
116 check_get_passwd(const char* username, uid_t uid, uid_type_t uid_type, bool check_username = true) argument
[all...]
/bionic/tools/versioner/dependencies/common/kernel_uapi/linux/
H A Dncp_mount.h41 __kernel_uid_t uid; member in struct:ncp_mount_data
55 unsigned long uid; member in struct:ncp_mount_data_v4
H A Dcramfs_fs.h32 __u32 mode : CRAMFS_MODE_WIDTH, uid : CRAMFS_UID_WIDTH; member in struct:cramfs_inode
H A Dipc.h25 __kernel_uid_t uid; member in struct:__kernel_legacy_ipc_perm
H A Dauto_fs4.h63 __u32 uid; member in struct:autofs_v5_packet
H A Dauto_dev-ioctl.h50 __u32 uid; member in struct:args_requester

Completed in 2194 milliseconds

123