err = -errno; 
int mconsole_notify(char *sock_name, int type, const void *data, int len){	struct sockaddr_un target;	struct mconsole_notify packet;	int n, err = 0;	lock_notify();	if(notify_sock < 0){		notify_sock = socket(PF_UNIX, SOCK_DGRAM, 0);		if(notify_sock < 0){			printk("mconsole_notify - socket failed, errno = %d\n",			       errno);			err = -errno;		}	}	unlock_notify();		if(err)		return(err);	target.sun_family = AF_UNIX;	strcpy(target.sun_path, sock_name);	packet.magic = MCONSOLE_MAGIC;	packet.version = MCONSOLE_VERSION;	packet.type = type;	len = (len > sizeof(packet.data)) ? sizeof(packet.data) : len;	packet.len = len;	memcpy(packet.data, data, len);	err = 0;	len = sizeof(packet) + packet.len - sizeof(packet.data);	n = sendto(notify_sock, &packet, len, 0, (struct sockaddr *) &target, 		   sizeof(target));	if(n < 0){		printk("mconsole_notify - sendto failed, errno = %d\n", errno);		err = -errno;	}	return(err);}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/b4fd310e163477236a241580b3b8c29aee65f4cc/mconsole_user.c/clean/arch/um/drivers/mconsole_user.c