Home
last modified time | relevance | path

Searched refs:sockpath (Results 1 – 3 of 3) sorted by relevance

/illumos-gate/usr/src/test/os-tests/tests/sockfs/
H A Dtimeouts.c92 server(const char *sockpath) in server() argument
101 strlcpy(addr.sun_path, sockpath, sizeof (addr.sun_path)); in server()
111 client(const char *sockpath) in client() argument
120 strlcpy(addr.sun_path, sockpath, sizeof (addr.sun_path)); in client()
143 char sockpath[] = "/tmp/to.testsock.XXXXXX"; in main() local
146 if (mktemp(sockpath) == NULL) in main()
149 sfd = server(sockpath); in main()
150 cfd = client(sockpath); in main()
196 unlink(sockpath); in main()
H A Drights.c445 server(const char *sockpath, pid_t pid) in server() argument
459 strlcpy(addr.sun_path, sockpath, sizeof (addr.sun_path)); in server()
633 client(const char *sockpath, pid_t pid) in client() argument
650 strlcpy(addr.sun_path, sockpath, sizeof (addr.sun_path)); in client()
668 char sockpath[] = "/tmp/cmsg.testsock.XXXXXX"; in main() local
690 if (mktemp(sockpath) == NULL) in main()
699 return (server(sockpath, ppid)); in main()
704 ret = client(sockpath, pid); in main()
707 unlink(sockpath); in main()
/illumos-gate/usr/src/cmd/sendmail/libmilter/
H A Dlistener.c118 static char *sockpath = NULL; variable
540 sockpath = (char *) malloc(len);
541 if (sockpath != NULL)
542 (void) sm_strlcpy(sockpath, colon, len);
604 removable = sockpath != NULL && in mi_closener()
619 if (sockpath != NULL) in mi_closener()
622 stat(sockpath, &fileinfo) == 0 && in mi_closener()
635 (void) unlink(sockpath); in mi_closener()
636 free(sockpath); in mi_closener()
637 sockpath = NULL; in mi_closener()