ucred 1493 lib/common/ipc_client.c struct ucred ucred; ucred 1494 lib/common/ipc_client.c socklen_t ucred_len = sizeof(ucred); ucred 1496 lib/common/ipc_client.c if (getsockopt(sock, SOL_SOCKET, SO_PEERCRED, &ucred, &ucred_len) < 0) { ucred 1498 lib/common/ipc_client.c } else if (ucred_len != sizeof(ucred)) { ucred 1501 lib/common/ipc_client.c found_pid = ucred.pid; ucred 1502 lib/common/ipc_client.c found_uid = ucred.uid; ucred 1503 lib/common/ipc_client.c found_gid = ucred.gid; ucred 1539 lib/common/ipc_client.c ucred_t *ucred = NULL; ucred 1541 lib/common/ipc_client.c if (getpeerucred(sock, &ucred) < 0) { ucred 1544 lib/common/ipc_client.c found_pid = ucred_getpid(ucred); ucred 1545 lib/common/ipc_client.c found_uid = ucred_geteuid(ucred); ucred 1546 lib/common/ipc_client.c found_gid = ucred_getegid(ucred); ucred 1547 lib/common/ipc_client.c ucred_free(ucred);