This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Linux pre6-3 contains a fix for statfs on shmfs so that we can use it now. I propose the appended patch. I don't know if links work with that filesystem and therefore didn't add anything to pathconf and fpathconf. Andreas 2000-04-14 Andreas Jaeger <aj@suse.de> * sysdeps/unix/sysv/linux/shm_open.c: Include linux_fsinfo for SHMFS_SUPER_MAGIC. Remove definition of SHMFS_SUPER_MAGIC. * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC): Added. ============================================================ Index: sysdeps/unix/sysv/linux/shm_open.c --- sysdeps/unix/sysv/linux/shm_open.c 2000/04/12 06:08:07 1.2 +++ sysdeps/unix/sysv/linux/shm_open.c 2000/04/14 18:29:33 @@ -27,13 +27,8 @@ #include <sys/mman.h> #include <sys/statfs.h> #include <bits/libc-lock.h> +#include "linux_fsinfo.h" - -/* XXX Currently the Linux kernel sources do not define a super magic number - for the shmfs and the kernel assigns the value 0 to f_type. */ -#ifndef SHMFS_SUPER_MAGIC -# define SHMFS_SUPER_MAGIC 0 -#endif /* Mount point of the shared memory filesystem. */ static struct ============================================================ Index: sysdeps/unix/sysv/linux/linux_fsinfo.h --- sysdeps/unix/sysv/linux/linux_fsinfo.h 1999/11/18 16:41:21 1.5 +++ sysdeps/unix/sysv/linux/linux_fsinfo.h 2000/04/14 18:29:33 @@ -1,5 +1,5 @@ /* Constants from kernel header for various FSes. - Copyright (C) 1998, 1999 Free Software Foundation, Inc. + Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -97,6 +97,9 @@ /* Constants that identify the `xenix' filesystem. */ #define XENIX_SUPER_MAGIC 0x012ff7b4 + +/* Constant that identifies the `shm' filesystem. */ +#define SHMFS_SUPER_MAGIC 0x02011994 /* Maximum link counts. */ #define COH_LINK_MAX 10000 -- Andreas Jaeger SuSE Labs aj@suse.de private aj@arthur.rhein-neckar.de currently: aj@oss.sgi.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |