89 |
/* fill socket address structure w/our address */ |
/* fill socket address structure w/our address */ |
90 |
memset(&unix_addr, 0, sizeof(unix_addr)); |
memset(&unix_addr, 0, sizeof(unix_addr)); |
91 |
unix_addr.sun_family = AF_UNIX; |
unix_addr.sun_family = AF_UNIX; |
92 |
sprintf(unix_addr.sun_path, "%s%05d", "/var/tmp/", getpid()); |
snprintf(unix_addr.sun_path, sizeof(unix_addr.sun_path), "%s%05d", "/var/tmp/", getpid()); |
93 |
#if !defined(linux) && !defined(cygwin) |
#if !defined(linux) && !defined(cygwin) |
94 |
len = sizeof(unix_addr.sun_len) + sizeof(unix_addr.sun_family) + |
len = sizeof(unix_addr.sun_len) + sizeof(unix_addr.sun_family) + |
95 |
strlen(unix_addr.sun_path) + 1; |
strlen(unix_addr.sun_path) + 1; |