Lines Matching refs:peercred
76 TAIL_ALLOC_OBJECT_CONST_PTR(struct ucred, peercred); in main()
79 const unsigned int sizeof_pid = sizeof(peercred->pid); in main()
103 *len = sizeof(*peercred); in main()
104 get_peercred(sv[0], peercred, len); in main()
106 PRINT_FIELD_D(", {", *peercred, pid); in main()
107 PRINT_FIELD_UID(", ", *peercred, uid); in main()
108 PRINT_FIELD_UID(", ", *peercred, gid); in main()
113 get_peercred(sv[0], peercred, len); in main()
115 sv[0], so_str(), peercred, errstr); in main()
118 *len = sizeof(*peercred) + 1; in main()
119 get_peercred(sv[0], peercred, len); in main()
121 PRINT_FIELD_D(", {", *peercred, pid); in main()
122 PRINT_FIELD_UID(", ", *peercred, uid); in main()
123 PRINT_FIELD_UID(", ", *peercred, gid); in main()
125 (unsigned int) sizeof(*peercred) + 1, *len, errstr); in main()
188 memcpy(peercred, gid_truncated, sizeof_gid_truncated); in main()
190 PRINT_FIELD_D(", {", *peercred, pid); in main()
191 PRINT_FIELD_UID(", ", *peercred, uid); in main()
193 print_quoted_hex(&peercred->gid, sizeof_gid_truncated - in main()
198 *len = sizeof(*peercred); in main()
199 get_peercred(sv[0], &peercred->uid, len); in main()
201 sv[0], so_str(), &peercred->uid, *len, errstr); in main()
204 get_peercred(sv[0], peercred, len + 1); in main()
206 sv[0], so_str(), peercred, len + 1, errstr); in main()