OSDN Git Service

* pathnames.sgml: Move description for (cyg,not)exec mount options
authorcorinna <corinna>
Wed, 13 Aug 2008 16:34:49 +0000 (16:34 +0000)
committercorinna <corinna>
Wed, 13 Aug 2008 16:34:49 +0000 (16:34 +0000)
from utils.sgml here.  Clarify nouser mount points.

winsup/doc/ChangeLog
winsup/doc/pathnames.sgml

index 5aa0d2f..76aeb84 100644 (file)
@@ -1,3 +1,8 @@
+2008-08-13  Corinna Vinschen  <corinna@vinschen.de>
+
+       * pathnames.sgml: Move description for (cyg,not)exec mount options
+       from utils.sgml here.  Clarify nouser mount points.
+
 2008-07-18  Corinna Vinschen  <corinna@vinschen.de>
 
        * cygwinenv.sgml: Move binmode option to list of removed options.
index 4035052..2daad6d 100644 (file)
@@ -88,11 +88,26 @@ posix=[0|1].  The meaning of the options is as follows.</para>
             (default).
 </screen>
 
+<para>Normally, files ending in certain extensions (.exe, .com, .bat, .btm,
+.cmd) are assumed to be executable.  Files whose first two characters begin
+with '#!' are also considered to be executable.
+The <literal>exec</literal> option is used to instruct Cygwin that the
+mounted file is "executable".  If the <literal>exec</literal> option is used
+with a directory then all files in the directory are executable.
+This option allows other files to be marked as executable and avoids the
+overhead of opening each file to check for a '#!'.  The
+<literal>cygexec</literal> option is very similar to <literal>exec</literal>,
+but also prevents Cygwin from setting up commands and environment variables
+for a normal Windows program, adding another small performance gain.  The
+opposite of these options is the <literal>notexec</literal> option, which
+means that no files should be marked as executable under that mount point.
+</para>
+
 <para>Note that nouser mount points are not overridable by a later call
-to mount(2).  This is only possible for user mount points.  Mount points
-are by default nouser mount points, unless you specify the option user. 
-In contrast, all mount points in the user specific fstab file are user
-mount points.</para>
+to <command>mount</command>.  This is only possible for user mount points. 
+Mount points given in <filename>/etc/fstab</filename> are by default nouser
+mount points, unless you specify the option user.  In contrast, all mount
+points in the user specific fstab file are user mount points.</para>
 
 <para>The fifth and sixth field are ignored.  They are
 so far only specified to keep a Linux-like fstab file layout.</para>