socket-util: add trivial socket_get_cookie() helper

This commit is contained in:
Lennart Poettering
2025-05-15 09:45:19 +02:00
parent 3bdcd994cd
commit 272017d32a
4 changed files with 22 additions and 9 deletions
+2
View File
@@ -354,3 +354,5 @@ int socket_address_equal_unix(const char *a, const char *b);
int vsock_get_local_cid(unsigned *ret);
int netlink_socket_get_multicast_groups(int fd, size_t *ret_len, uint32_t **ret_groups);
int socket_get_cookie(int fd, uint64_t *ret);