Merge branch 'unixpeername' into 'master'
Fix unixpeername expected stdout See merge request redox-os/relibc!910
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
listen sockname [AF_UNIX]: root/unixpeername.sock
|
||||
client peername [AF_UNIX]: root/unixpeername.sock
|
||||
listen sockname [AF_UNIX]: unixpeername.sock
|
||||
client peername [AF_UNIX]: unixpeername.sock
|
||||
client sockname [AF_UNIX]: (unnamed)
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
listen sockname [AF_UNIX]: root/unixpeername.sock
|
||||
client peername [AF_UNIX]: root/unixpeername.sock
|
||||
listen sockname [AF_UNIX]: unixpeername.sock
|
||||
client peername [AF_UNIX]: unixpeername.sock
|
||||
client sockname [AF_UNIX]: (unnamed)
|
||||
|
||||
@@ -24,6 +24,7 @@ void print_sockaddr(char *ctx, struct sockaddr *addr, socklen_t len) {
|
||||
int main(void)
|
||||
{
|
||||
int status;
|
||||
// TODO: in linux the sockname shown exactly like this string, not the case with redox.
|
||||
const char* socket_path = "unixpeername.sock";
|
||||
unlink(socket_path);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user