From 44264ea2a6c982d4c477205fceba0d5fcffe9edb Mon Sep 17 00:00:00 2001 From: christos Date: Sat, 13 Nov 2004 07:19:27 +0000 Subject: [PATCH] Add ptyfs magic number and entry. --- sys/compat/linux/common/linux_misc.c | 7 ++++--- sys/compat/linux/common/linux_misc.h | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/sys/compat/linux/common/linux_misc.c b/sys/compat/linux/common/linux_misc.c index 792a07e459e6..0c617766b8f5 100644 --- a/sys/compat/linux/common/linux_misc.c +++ b/sys/compat/linux/common/linux_misc.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_misc.c,v 1.133 2004/10/07 19:30:28 erh Exp $ */ +/* $NetBSD: linux_misc.c,v 1.134 2004/11/13 07:19:27 christos Exp $ */ /*- * Copyright (c) 1995, 1998, 1999 The NetBSD Foundation, Inc. @@ -64,7 +64,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.133 2004/10/07 19:30:28 erh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.134 2004/11/13 07:19:27 christos Exp $"); #include #include @@ -154,7 +154,8 @@ const struct linux_mnttypes linux_fstypes[] = { { MOUNT_CODA, LINUX_CODA_SUPER_MAGIC }, { MOUNT_FILECORE, LINUX_DEFAULT_SUPER_MAGIC }, { MOUNT_NTFS, LINUX_DEFAULT_SUPER_MAGIC }, - { MOUNT_SMBFS, LINUX_SMB_SUPER_MAGIC } + { MOUNT_SMBFS, LINUX_SMB_SUPER_MAGIC }, + { MOUNT_PTYFS, LINUX_DEVPTS_SUPER_MAGIC } }; const int linux_fstypes_cnt = sizeof(linux_fstypes) / sizeof(linux_fstypes[0]); diff --git a/sys/compat/linux/common/linux_misc.h b/sys/compat/linux/common/linux_misc.h index 108838b70361..63147c27a8ce 100644 --- a/sys/compat/linux/common/linux_misc.h +++ b/sys/compat/linux/common/linux_misc.h @@ -1,4 +1,4 @@ -/* $NetBSD: linux_misc.h,v 1.10 2004/10/07 19:30:28 erh Exp $ */ +/* $NetBSD: linux_misc.h,v 1.11 2004/11/13 07:19:27 christos Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -114,6 +114,7 @@ struct linux_sysinfo { #define LINUX_SYSV4_SUPER_MAGIC (LINUX_SYSV_MAGIC_BASE + 2) #define LINUX_SYSV_MAGIC_BASE 0x012FF7B3 #define LINUX_USBDEVICE_SUPER_MAGIC 0x00009fa2 +#define LINUX_DEVPTS_SUPER_MAGIC 0x00001cd1 #define LINUX_XENIX_SUPER_MAGIC (LINUX_SYSV_MAGIC_BASE + 1) struct linux_mnttypes {