Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Jan 1996 17:24:31 -0700 (MST)
From:      Terry Lambert <terry@lambert.org>
To:        hasty@rah.star-gate.com (Amancio Hasty Jr.)
Cc:        gpalmer@cdrom.com, hackers@FreeBSD.ORG, stable@FreeBSD.ORG
Subject:   Re: abuse and the -stable linux emu.
Message-ID:  <199601140024.RAA24488@phaeton.artisoft.com>
In-Reply-To: <199601131009.CAA00387@rah.star-gate.com> from "Amancio Hasty Jr." at Jan 13, 96 02:09:39 am

next in thread | previous in thread | raw e-mail | index | archive | help
> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601140024.RAA24488>