diff options
author | sos <sos@FreeBSD.org> | 1996-01-14 10:59:58 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 1996-01-14 10:59:58 +0000 |
commit | 158fdfef06d5aeef67ca79424bcba719c4fc9cdc (patch) | |
tree | 541e23eecb070de024640c064206cd31a9955204 /sys/compat/linux/linux_misc.c | |
parent | 4eb0edb707145d8d4772b3b3c9f5caf2892ea0eb (diff) | |
download | FreeBSD-src-158fdfef06d5aeef67ca79424bcba719c4fc9cdc.zip FreeBSD-src-158fdfef06d5aeef67ca79424bcba719c4fc9cdc.tar.gz |
Add linux_mknod so that it will do mkfifo if needed...
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
-rw-r--r-- | sys/compat/linux/linux_misc.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 1714240..4651de0 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/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); +} |