Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
545 B

  1. /* See LICENSE file for copyright and license details. */
  2. #ifndef SOCK_H
  3. #define SOCK_H
  4. #include <stddef.h>
  5. #include <sys/socket.h>
  6. #include <sys/types.h>
  7. int sock_get_ips(const char *, const char *);
  8. int sock_get_uds(const char *, uid_t, gid_t);
  9. void sock_rem_uds(const char *);
  10. int sock_set_timeout(int, int);
  11. int sock_set_nonblocking(int);
  12. int sock_get_inaddr_str(const struct sockaddr_storage *, char *, size_t);
  13. int sock_same_addr(const struct sockaddr_storage *,
  14. const struct sockaddr_storage *);
  15. #endif /* SOCK_H */