From owner-freebsd-stable Sat Jan 13 16:30:03 1996 Return-Path: owner-stable Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id QAA29075 for stable-outgoing; Sat, 13 Jan 1996 16:30:03 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id QAA29044 Sat, 13 Jan 1996 16:29:59 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id RAA24488; Sat, 13 Jan 1996 17:24:31 -0700 From: Terry Lambert Message-Id: <199601140024.RAA24488@phaeton.artisoft.com> Subject: Re: abuse and the -stable linux emu. To: hasty@rah.star-gate.com (Amancio Hasty Jr.) Date: Sat, 13 Jan 1996 17:24:31 -0700 (MST) Cc: gpalmer@cdrom.com, hackers@FreeBSD.ORG, stable@FreeBSD.ORG In-Reply-To: <199601131009.CAA00387@rah.star-gate.com> from "Amancio Hasty Jr." at Jan 13, 96 02:09:39 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-stable@FreeBSD.ORG Precedence: bulk > 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. 8-) 8-) 8-). Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.