err(1, "cannot set socket mode/owner/group to 660/0/0");
error("cannot set socket mode/owner/group to 660/0/0", NULL);
bind_socket(const char *sockname){	struct sockaddr_un s_un;	int sock;	sock = socket(AF_UNIX, SOCK_STREAM, 0);	if (sock == -1)		err(1, "cannot create local socket");	s_un.sun_family = AF_UNIX;	strncpy(s_un.sun_path, sockname, sizeof(s_un.sun_path));	s_un.sun_len = SUN_LEN(&s_un);	/* remove it if present, we're moving in */	(void) remove(sockname);	umask (077);	if (bind(sock, (struct sockaddr *)&s_un, s_un.sun_len) == -1)		err(1, "cannot connect to APM socket");	if (chmod(sockname, 0660) == -1 || chown(sockname, 0, 0) == -1)		err(1, "cannot set socket mode/owner/group to 660/0/0");	listen(sock, 1);	socketname = strdup(sockname);	atexit(sockunlink);	return sock;}