]>
git.saurik.com Git - apple/libinfo.git/blob - rpc.subproj/pmap_wakeup.c
1 #include <sys/socket.h>
7 #include "pmap_wakeup.h"
11 struct sockaddr_un sun
;
15 memset(&sun
, 0, sizeof(sun
));
17 sun
.sun_family
= AF_UNIX
;
18 strcpy(sun
.sun_path
, "/var/run/portmap.socket");
20 fd
= socket(AF_UNIX
, SOCK_STREAM
, 0);
24 if (connect(fd
, (struct sockaddr
*)&sun
, sizeof(sun
)) == -1) {
29 read(fd
, &b
, sizeof(b
));