Lines Matching +full:un +full:-
1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
32 #include "lp.cdefs.h" /* A cross-platform version of <sys/cdefs.h> */
36 #include <sys/un.h>
53 struct sockaddr_un un; in startdaemon() local
63 memset(&un, 0, sizeof(un)); in startdaemon()
64 un.sun_family = AF_LOCAL; in startdaemon()
65 strcpy(un.sun_path, _PATH_SOCKETNAME); in startdaemon()
67 #define SUN_LEN(unp) (strlen((unp)->sun_path) + 2) in startdaemon()
70 connectres = connect(s, (struct sockaddr *)&un, SUN_LEN(&un)); in startdaemon()
83 if (writel(s, "\1", pp->printer, "\n", (char *)0) <= 0) { in startdaemon()