Add LINUX_TMPFS_SUPER_MAGIC, and map it to our tmpfs.
This makes sem_open/sem_unlink (POSIX named semaphores) work under NPTL emulation.
This commit is contained in:
parent
0c8e56007e
commit
7cdbbcf80d
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: linux_misc.c,v 1.198 2008/04/28 20:23:43 martin Exp $ */
|
||||
/* $NetBSD: linux_misc.c,v 1.199 2008/05/28 12:01:10 njoly Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995, 1998, 1999, 2008 The NetBSD Foundation, Inc.
|
||||
|
@ -57,7 +57,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.198 2008/04/28 20:23:43 martin Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.199 2008/05/28 12:01:10 njoly Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_ptrace.h"
|
||||
|
@ -166,7 +166,7 @@ const struct linux_mnttypes linux_fstypes[] = {
|
|||
{ MOUNT_NTFS, LINUX_DEFAULT_SUPER_MAGIC },
|
||||
{ MOUNT_SMBFS, LINUX_SMB_SUPER_MAGIC },
|
||||
{ MOUNT_PTYFS, LINUX_DEVPTS_SUPER_MAGIC },
|
||||
{ MOUNT_TMPFS, LINUX_DEFAULT_SUPER_MAGIC }
|
||||
{ MOUNT_TMPFS, LINUX_TMPFS_SUPER_MAGIC }
|
||||
};
|
||||
const int linux_fstypes_cnt = sizeof(linux_fstypes) / sizeof(linux_fstypes[0]);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: linux_misc.h,v 1.16 2008/04/28 20:23:43 martin Exp $ */
|
||||
/* $NetBSD: linux_misc.h,v 1.17 2008/05/28 12:01:10 njoly Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -110,6 +110,7 @@ struct linux_sysinfo {
|
|||
#define LINUX_SYSV2_SUPER_MAGIC (LINUX_SYSV_MAGIC_BASE + 3)
|
||||
#define LINUX_SYSV4_SUPER_MAGIC (LINUX_SYSV_MAGIC_BASE + 2)
|
||||
#define LINUX_SYSV_MAGIC_BASE 0x012FF7B3
|
||||
#define LINUX_TMPFS_SUPER_MAGIC 0x01021994
|
||||
#define LINUX_USBDEVICE_SUPER_MAGIC 0x00009fa2
|
||||
#define LINUX_DEVPTS_SUPER_MAGIC 0x00001cd1
|
||||
#define LINUX_XENIX_SUPER_MAGIC (LINUX_SYSV_MAGIC_BASE + 1)
|
||||
|
|
Loading…
Reference in New Issue