71 struct passwd pwd, *
result;
75 target->
uid = UINT_MAX;
80 getpwnam_r(str, &pwd, buf,
sizeof(buf), &result);
87 int uid = strtol(str, &endptr, 10);
92 getpwuid_r(uid, &pwd, buf,
sizeof(buf), &result);
98 target->
uid = result->pw_uid;
106 "PID/TID switch overriding CPU",
107 "PID/TID switch overriding UID",
108 "UID switch overriding CPU",
109 "PID/TID switch overriding SYSTEM",
110 "UID switch overriding SYSTEM",
111 "SYSTEM/CPU switch overriding PER-THREAD",
113 "Problems obtaining information for user %s",
117 char *buf,
size_t buflen)
125 str_error_r(errnum, buf, buflen);
138 snprintf(buf, buflen,
"%s", msg);
143 snprintf(buf, buflen, msg, target->
uid_str);
enum target_errno target__parse_uid(struct target *target)
enum target_errno target__validate(struct target *target)
int target__strerror(struct target *target, int errnum, char *buf, size_t buflen)
static int str(yyscan_t scanner, int token)
static struct rb_root result
static const char * target__error_str[]