mirror of
https://repo.or.cz/socat.git
synced 2025-07-27 21:15:37 +00:00
Procan: print umask, CC, and couple more new infos
This commit is contained in:
parent
2cfc39e9e5
commit
cd5673dbd0
7 changed files with 264 additions and 24 deletions
4
fdname.c
4
fdname.c
|
@ -310,7 +310,7 @@ int sockname(int fd, FILE *outfile, char style) {
|
|||
default: sprintf(protoname, "proto%d", proto); break;
|
||||
}
|
||||
#endif
|
||||
#else
|
||||
#else /* ! (defined(SO_PROTOCOL) || defined(SO_PROTOTYPE)) */
|
||||
if (opttype == SOCK_STREAM) {
|
||||
strcpy(protoname, "(stream)");
|
||||
} else if (opttype == SOCK_DGRAM) {
|
||||
|
@ -338,7 +338,7 @@ int sockname(int fd, FILE *outfile, char style) {
|
|||
} else {
|
||||
strcpy(protoname, "socket");
|
||||
}
|
||||
#endif /* defined(SO_PROTOCOL) || defined(SO_PROTOTYPE) */
|
||||
#endif /* ! (defined(SO_PROTOCOL) || defined(SO_PROTOTYPE)) */
|
||||
socknamelen = sizeof(sockname);
|
||||
result = Getsockname(fd, &sockname.soa, &socknamelen);
|
||||
if (result < 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue