If you need more detail, just tell me what you want me to examine.
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
int fd;
struct sockaddr a;
#define d a.sa_data
main(){
fd=socket(AF_UNIX, SOCK_STREAM, 0);
if (-1==fd) exit(1);
a.sa_family= AF_UNIX;
strcpy(d, "/dev/log");
connect(fd, &a, sizeof a - sizeof d + strlen(d));
}
FYI, here's /proc/net/unix:
Num RefCount Protocol Flags Type St Path
00cda808: 00000001 00000000 00000000 0001 01
00cda214: 00000001 00000000 00010000 0001 01 /dev/log
00a7f808: 00000002 00000000 00000000 0001 01 /dev/log
007ce808: 00000001 00000000 00000000 0001 02
007ce60c: 00000001 00000000 00000000 0001 02
007ce410: 00000001 00000000 00000000 0001 02
007ce018: 00000001 00000000 00000000 0001 02
004f1dfc: 00000001 00000000 00000000 0001 02
004f1a04: 00000001 00000000 00010000 0001 01 /dev/printer
004f1410: 00000002 00000000 00000000 0001 03
004fd808: 00000002 00000000 00000000 0001 01 /dev/log
004fd60c: 00000002 00000000 00000000 0001 03
004fd018: 00000002 00000000 00000000 0001 01 /dev/log
00097dfc: 00000002 00000000 00000000 0001 03
00097a04: 00000006 00000000 00010000 0001 01 /dev/log
-- Raul