Lines Matching full:uid
86 const unsigned int sizeof_uid = offsetofend(struct ucred, uid); in main()
87 struct ucred *const uid = tail_alloc(sizeof_uid); in main() local
107 PRINT_FIELD_UID(", ", *peercred, uid); in main()
122 PRINT_FIELD_UID(", ", *peercred, uid); in main()
139 * struct ucred.uid and struct ucred.gid are not printed. in main()
149 * but smaller than offsetofend(struct ucred, uid): in main()
150 * the part of struct ucred.uid is printed in hex. in main()
158 memcpy(uid, uid_truncated, sizeof_uid_truncated); in main()
160 PRINT_FIELD_D(", {", *uid, pid); in main()
161 printf(", uid="); in main()
162 print_quoted_hex(&uid->uid, sizeof_uid_truncated - in main()
163 offsetof(struct ucred, uid)); in main()
167 * getsockopt with optlen equals to offsetofend(struct ucred, uid): in main()
171 get_peercred(sv[0], uid, len); in main()
173 PRINT_FIELD_D(", {", *uid, pid); in main()
174 PRINT_FIELD_UID(", ", *uid, uid); in main()
178 * getsockopt with optlen greater than sizeof(struct ucred.uid) in main()
186 * to struct ucred.pid and struct ucred.uid fields. in main()
191 PRINT_FIELD_UID(", ", *peercred, uid); in main()
199 get_peercred(sv[0], &peercred->uid, len); in main()
201 sv[0], so_str(), &peercred->uid, *len, errstr); in main()