ucred 1453 lib/common/ipc_client.c struct ucred ucred; ucred 1454 lib/common/ipc_client.c socklen_t ucred_len = sizeof(ucred); ucred 1456 lib/common/ipc_client.c if (getsockopt(sock, SOL_SOCKET, SO_PEERCRED, &ucred, &ucred_len) < 0) { ucred 1458 lib/common/ipc_client.c } else if (ucred_len != sizeof(ucred)) { ucred 1461 lib/common/ipc_client.c found_pid = ucred.pid; ucred 1462 lib/common/ipc_client.c found_uid = ucred.uid; ucred 1463 lib/common/ipc_client.c found_gid = ucred.gid; ucred 1499 lib/common/ipc_client.c ucred_t *ucred = NULL; ucred 1501 lib/common/ipc_client.c if (getpeerucred(sock, &ucred) < 0) { ucred 1504 lib/common/ipc_client.c found_pid = ucred_getpid(ucred); ucred 1505 lib/common/ipc_client.c found_uid = ucred_geteuid(ucred); ucred 1506 lib/common/ipc_client.c found_gid = ucred_getegid(ucred); ucred 1507 lib/common/ipc_client.c ucred_free(ucred);