Home
last modified time | relevance | path

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

/illumos-gate/usr/src/test/os-tests/tests/sockfs/
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()