diff options
| author | Søren Schmidt <sos@FreeBSD.org> | 1996-01-14 10:59:58 +0000 |
|---|---|---|
| committer | Søren Schmidt <sos@FreeBSD.org> | 1996-01-14 10:59:58 +0000 |
| commit | 0de2e98fc262ac1fc422768bdff97894383bf9c6 (patch) | |
| tree | 541e23eecb070de024640c064206cd31a9955204 /sys/i386/linux/linux_misc.c | |
| parent | 581bb98709a503211490c02fa51a9c1ef735fee8 (diff) | |
Notes
Diffstat (limited to 'sys/i386/linux/linux_misc.c')
| -rw-r--r-- | sys/i386/linux/linux_misc.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/sys/i386/linux/linux_misc.c b/sys/i386/linux/linux_misc.c index 1714240a4602..4651de0edf80 100644 --- a/sys/i386/linux/linux_misc.c +++ b/sys/i386/linux/linux_misc.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: linux_misc.c,v 1.8 1995/12/15 03:06:54 peter Exp $ + * $Id: linux_misc.c,v 1.9 1995/12/15 03:28:38 peter Exp $ */ #include <sys/param.h> @@ -674,3 +674,18 @@ linux_wait4(struct proc *p, struct linux_wait4_args *args, int *retval) (bsd_to_linux_signal[WSTOPSIG(tmpstat)]<<8); return copyout(&tmpstat, args->status, sizeof(int)); } + +struct linux_mknod_args { + char *path; + int mode; + int dev; +}; + +int +linux_mknod(struct proc *p, struct linux_mknod_args *args, int *retval) +{ + if (args->mode & S_IFIFO) + return mkfifo(p, (struct mkfifo_args *)args, retval); + else + return mknod(p, (struct mknod_args *)args, retval); +} |
