Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Jan 1996 18:03:25 -0800
From:      "Amancio Hasty Jr." <hasty@rah.star-gate.com>
To:        Terry Lambert <terry@lambert.org>
Cc:        gpalmer@cdrom.com, hackers@FreeBSD.ORG, stable@FreeBSD.ORG
Subject:   Re: abuse and the -stable linux emu. 
Message-ID:  <199601140203.SAA00321@rah.star-gate.com>
In-Reply-To: Your message of "Sat, 13 Jan 1996 17:24:31 MST." <199601140024.RAA24488@phaeton.artisoft.com> 

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




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