this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

get{peer,sock}name: Strictly set return value

This fixes issues with some programs (like LLDB) that check for 0 explicitly. To be fair, the man page *does* specifically state that they return 0 on success.

+4
+2
src/kernel/emulation/linux/network/getpeername.c
··· 29 29 { 30 30 fixed = (struct sockaddr_fixup*) asa; 31 31 ret = *socklen = sockaddr_fixup_from_linux(fixed, asa, *socklen); 32 + if (ret > 0) 33 + ret = 0; 32 34 } 33 35 34 36 return ret;
+2
src/kernel/emulation/linux/network/getsockname.c
··· 29 29 { 30 30 fixed = (struct sockaddr_fixup*) asa; 31 31 ret = *socklen = sockaddr_fixup_from_linux(fixed, asa, *socklen); 32 + if (ret > 0) 33 + ret = 0; 32 34 } 33 35 34 36 return ret;