From owner-freebsd-stable Sat Jan 13 18:04:27 1996 Return-Path: owner-stable Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id SAA04259 for stable-outgoing; Sat, 13 Jan 1996 18:04:27 -0800 (PST) Received: from rah.star-gate.com (rah.star-gate.com [204.188.121.18]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id SAA04248 Sat, 13 Jan 1996 18:04:16 -0800 (PST) Received: from rah.star-gate.com (localhost.v-site.net [127.0.0.1]) by rah.star-gate.com (8.6.12/8.6.12) with ESMTP id SAA00321; Sat, 13 Jan 1996 18:03:26 -0800 Message-Id: <199601140203.SAA00321@rah.star-gate.com> X-Mailer: exmh version 1.6.5 12/11/95 To: Terry Lambert cc: gpalmer@cdrom.com, hackers@FreeBSD.ORG, stable@FreeBSD.ORG Subject: Re: abuse and the -stable linux emu. In-reply-to: Your message of "Sat, 13 Jan 1996 17:24:31 MST." <199601140024.RAA24488@phaeton.artisoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 13 Jan 1996 18:03:25 -0800 From: "Amancio Hasty Jr." Sender: owner-stable@FreeBSD.ORG Precedence: bulk >>> Terry Lambert said: > > This is a quick and dirty trick for linux mknod problem in freebsd. > > How quick? I just literally slap this on the code... > > > > I stuck this on linux_files.c > > > > int > > linux_mknod(struct proc *p, struct linux_creat_args *args, int *retval) > > { > > struct { > > char *path; > > int flags; > > int mode; > > } bsd_open_args; > > > > > > bsd_open_args.path = args->path; > > bsd_open_args.mode = args->mode; > > > > return mkfifo(p, &bsd_open_args, retval); > > } > > ---- > > and in linux_sysent.c > > > > extern int linux_mknod(); > > > > and change the mknod call to linux_mknod : > > linux_sysent.c: 3, mknod, /* 14 */ > > to > > linux_sysent.c: 3, linux_mknod, /* 14 */ > > Probably work if all you ever make are FIFO's. > Tnks I will fix it. Amancio