diff --git a/winsup/doc/ChangeLog b/winsup/doc/ChangeLog index 5aa0d2f2b..76aeb84b4 100644 --- a/winsup/doc/ChangeLog +++ b/winsup/doc/ChangeLog @@ -1,3 +1,8 @@ +2008-08-13 Corinna Vinschen + + * pathnames.sgml: Move description for (cyg,not)exec mount options + from utils.sgml here. Clarify nouser mount points. + 2008-07-18 Corinna Vinschen * cygwinenv.sgml: Move binmode option to list of removed options. diff --git a/winsup/doc/pathnames.sgml b/winsup/doc/pathnames.sgml index 403505295..2daad6d2c 100644 --- a/winsup/doc/pathnames.sgml +++ b/winsup/doc/pathnames.sgml @@ -88,11 +88,26 @@ posix=[0|1]. The meaning of the options is as follows. (default). +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 exec option is used to instruct Cygwin that the +mounted file is "executable". If the exec 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 +cygexec option is very similar to exec, +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 notexec option, which +means that no files should be marked as executable under that mount point. + + 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. +to mount. This is only possible for user mount points. +Mount points given in /etc/fstab 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. The fifth and sixth field are ignored. They are so far only specified to keep a Linux-like fstab file layout.