MCPcopy Create free account
hub / github.com/OpenPrinting/cups / httpAddrClose

Function httpAddrClose

cups/http-addr.c:66–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64 */
65
66int /* O - 0 on success, -1 on failure */
67httpAddrClose(http_addr_t *addr, /* I - Listen address or @code NULL@ */
68 int fd) /* I - Socket file descriptor */
69{
70#ifdef _WIN32
71 if (closesocket(fd))
72#else
73 if (close(fd))
74#endif /* _WIN32 */
75 return (-1);
76
77#ifdef AF_LOCAL
78 if (addr && addr->addr.sa_family == AF_LOCAL)
79 return (unlink(addr->un.sun_path));
80#endif /* AF_LOCAL */
81
82 return (0);
83}
84
85
86/*

Callers 13

list_serviceFunction · 0.85
cupsdStopListeningFunction · 0.85
cups_rresvportFunction · 0.85
http-addrlist.cFile · 0.85
ifFunction · 0.85
_cupsSNMPCloseFunction · 0.85
_httpDisconnectFunction · 0.85
httpFlushFunction · 0.85
httpReconnect2Function · 0.85
_httpUpdateFunction · 0.85
http_tls_upgradeFunction · 0.85
cupsFileCloseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected