mirror of
https://repo.or.cz/socat.git
synced 2025-07-30 06:02:56 +00:00
ported generic socket to *BSD; minor improvements
This commit is contained in:
parent
8947cc92dc
commit
13b73776e7
37 changed files with 1441 additions and 258 deletions
|
@ -66,12 +66,12 @@ int xioclose1(struct single *pipe) {
|
|||
case END_CLOSE: case END_CLOSE_KILL:
|
||||
if (Close(pipe->fd) < 0) {
|
||||
Info2("close(%d): %s", pipe->fd, strerror(errno)); } break;
|
||||
#if WITH_SOCKET
|
||||
#if _WITH_SOCKET
|
||||
case END_SHUTDOWN: case END_SHUTDOWN_KILL:
|
||||
if (Shutdown(pipe->fd, 2) < 0) {
|
||||
Info3("shutdown(%d, %d): %s", pipe->fd, 2, strerror(errno)); }
|
||||
break;
|
||||
#endif /* WITH_SOCKET */
|
||||
#endif /* _WITH_SOCKET */
|
||||
case END_UNLINK: if (Unlink((const char *)pipe->name) < 0) {
|
||||
Warn2("unlink(\"%s\"): %s", pipe->name, strerror(errno)); }
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue