mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: ebiederm@xmission.com (Eric W. Biederman)
To: Andries.Brouwer@cwi.nl
Cc: torvalds@osdl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] linuxabi
Date: 02 Oct 2003 08:39:50 -0600	[thread overview]
Message-ID: <m17k3nhfex.fsf@ebiederm.dsl.xmission.com> (raw)
In-Reply-To: <UTC200310010001.h9101NU17078.aeb@smtp.cwi.nl>

Andries.Brouwer@cwi.nl writes:

> Hi Linus,
> 
> Something we have talked about for a long time is
> separating out from the kernel headers the parts
> fit for inclusion in user space.
> 
> This is a very large project, and it will take a long
> time, especially if we want the user space headers to
> be a pleasure to look at, instead of just a cut-n-paste
> copy of whatever we find in the current headers.
> 
> Some start is required, and the very first step is
> making sure that you agree with the project.
> Immediately following is the choice of directory names.

This is a 2.7 project.  Doing this right requires a lot more
than what you are doing here.

One example is that we need to be very careful with is that the
glibc abi is not the same as the linux kernel abi.  Even though most
of the functions are pass through some are not.  And which are which
is a fairly arbitrary decision.  So all of the definitions exported
through linuxabi need to be in a linux centric namespace.  This is
especially true because otherwise I could not include
linuxabi/mountflags.h and sys/mount.h and not get compilation 
conflicts.

I believe linuxabi/mountflags.h should look more like:
--- a/include/linuxabi/mountflags.h	Thu Jan  1 01:00:00 1970
+++ b/include/linuxabi/mountflags.h	Wed Oct  1 00:40:50 2003
@@ -0,0 +1,32 @@
+#ifndef _LINUXABI_MOUNTFLAGS_H
+#define _LINUXABI_MOUNTFLAGS_H
+
+/*
+ * These are the fs-independent mount-flags: up to 32 flags are supported
+ */
+#define LINUX_MS_RDONLY	 1	/* Mount read-only */
+#define LINUX_MS_NOSUID	 2	/* Ignore suid and sgid bits */
+#define LINUX_MS_NODEV	 4	/* Disallow access to device special files */
+#define LINUX_MS_NOEXEC	 8	/* Disallow program execution */
+#define LINUX_MS_SYNCHRONOUS	16	/* Writes are synced at once */
+#define LINUX_MS_REMOUNT	32	/* Alter flags of a mounted FS */
+#define LINUX_MS_MANDLOCK	64	/* Allow mandatory locks on an FS */
+#define LINUX_MS_DIRSYNC	128	/* Directory modifications are synchronous */
+#define LINUX_MS_NOATIME	1024	/* Do not update access times. */
+#define LINUX_MS_NODIRATIME	2048	/* Do not update directory access times */
+#define LINUX_MS_BIND		4096
+#define LINUX_MS_MOVE		8192
+#define LINUX_MS_REC		16384
+#define LINUX_MS_VERBOSE	32768
+#define LINUX_MS_POSIXACL	(1<<16)	/* VFS does not apply the umask */
+#define LINUX_MS_ONE_SECOND	(1<<17)	/* fs has 1 sec a/m/ctime resolution */
+#define LINUX_MS_ACTIVE	(1<<30)
+#define LINUX_MS_NOUSER	(1<<31)
+
+/*
+ * Old magic mount flag and mask
+ */
+#define LINUX_MS_MGC_VAL 0xC0ED0000
+#define LINUX_MS_MGC_MSK 0xffff0000
+
+#endif /* _LINUXABI_MOUNTFLAGS_H */


Eric

  parent reply	other threads:[~2003-10-02 14:40 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-01  0:01 Andries.Brouwer
2003-10-01  2:05 ` Bernd Eckenfels
2003-10-01  3:34   ` viro
2003-10-01  4:52     ` H. Peter Anvin
2003-10-01  5:22       ` Philippe Troin
2003-10-01  5:50         ` Miles Bader
2003-10-01 14:33     ` Daniel Jacobowitz
2003-10-01 10:20 ` J.A. Magallon
2003-10-02 14:39 ` Eric W. Biederman [this message]
2003-10-02 15:33   ` Andries Brouwer
2003-10-03  7:36     ` Eric W. Biederman
2003-10-04  3:37       ` Rob Landley
2003-10-04  6:31         ` Erik Andersen
     [not found]   ` <fa.e2g5r6g.u3igb4@ifi.uio.no>
2003-10-03 16:49     ` Kai Henningsen
2003-10-03 17:32   ` Sam Ravnborg
     [not found] <BCSP.62t.7@gated-at.bofh.it>
     [not found] ` <CcWl.7kh.9@gated-at.bofh.it>
     [not found]   ` <CdIL.8ts.13@gated-at.bofh.it>
2003-10-03 14:02     ` Ihar 'Philips' Filipau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m17k3nhfex.fsf@ebiederm.dsl.xmission.com \
    --to=ebiederm@xmission.com \
    --cc=Andries.Brouwer@cwi.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome