Searched defs:user (Results 1 - 8 of 8) sorted by relevance

/system/core/toolbox/
H A Dchown.c22 // Copy argv[1] to 'user' so we can truncate it at the period
24 char user[32]; local
26 strncpy(user, argv[1], sizeof(user));
27 if ((group = strchr(user, ':')) != NULL) {
29 } else if ((group = strchr(user, '.')) != NULL) {
39 pw = getpwnam(user);
44 uid = (int) strtoul(user, &endptr, 0);
45 if (endptr == user) { // no conversion
46 fprintf(stderr, "No such user '
[all...]
H A Dlsof.c49 char user[USER_DISPLAY_MAX]; member in struct:pid_info_t
91 info->cmdline, info->pid, info->user, type,
123 info->cmdline, info->pid, info->user, "mem",
147 info->cmdline, info->pid, info->user, "FDS",
181 strlcpy(info.user, pw->pw_name, sizeof(info.user));
183 snprintf(info.user, USER_DISPLAY_MAX, "%d", (int)pidstat.st_uid);
186 strcpy(info.user, "???");
H A Dls.c171 char user[16]; local
189 sprintf(user, "%ld", s.st_uid);
192 user2str(s.st_uid, user);
206 mode, user, group,
212 mode, user, group, s.st_size, date, name);
231 mode, user, group, date, name, linkto);
236 mode, user, group, date, name);
246 char user[16]; local
273 user2str(s.st_uid, user);
294 mode, user, grou
[all...]
H A Dps.c39 char user[32]; local
142 sprintf(user,"%d",(int)stats.st_uid);
144 strcpy(user,pw->pw_name);
157 printf("%-30s %-9s %-5d %-5d %s\n", macline, user, pid, ppid, cmdline[0] ? cmdline : name);
161 printf("%-9s %-5d %-5d %-6d %-5d", user, pid, ppid, vss / 1024, rss * 4);
H A Dtop.c412 struct passwd *user; local
465 user = getpwuid(proc->uid);
467 if (user && user->pw_name) {
468 user_str = user->pw_name;
/system/core/libcutils/
H A Duevent.c34 uid_t user = -1; local
35 return uevent_kernel_multicast_uid_recv(socket, buffer, length, &user);
44 * returns -1, sets errno to EIO, and sets "user" to the UID associated with the
45 * message. If the peer UID cannot be determined, "user" is set to -1."
48 size_t length, uid_t *user)
63 *user = -1;
76 *user = cred->uid;
78 /* ignoring netlink message from non-root user */
47 uevent_kernel_multicast_uid_recv(int socket, void *buffer, size_t length, uid_t *user) argument
/system/media/camera/src/
H A Dcamera_metadata.c87 void *user; // User set pointer, not copied with buffer member in struct:camera_metadata
162 metadata->user = NULL;
243 metadata->user = NULL;
549 int set_camera_metadata_user_pointer(camera_metadata_t *dst, void* user) { argument
551 dst->user = user;
555 int get_camera_metadata_user_pointer(camera_metadata_t *dst, void** user) { argument
557 *user = dst->user;
/system/security/keystore/
H A Dkeystore.cpp56 * user-defined password. To keep things simple, buffers are always larger than
905 // If this is the Wifi or VPN user, they actually want system
1025 * file using the same password when the user unlock it for the first time. If
1362 static struct user { struct
1376 struct user* user = users; local
1380 while (~user->uid && user->uid != (uid % AID_USER)) {
1381 ++user;
1389 if (!(action->perm & user
[all...]

Completed in 83 milliseconds