newlib/winsup/cygwin/include/sys
Johannes Schindelin fb71716d2c Introduce the 'usertemp' filesystem type
* mount.cc (mount_info::from_fstab_line): Support mounting the current
	user's temp folder as /tmp/.  This is particularly useful a feature
	when Cygwin's own files are write-protected.

	* pathnames.xml: document the new usertemp file system type

Detailed explanation:

In the context of Windows, there is a per-user directory for temporary
files, by default specified via the environment variable %TEMP%. Let's
allow to use that directory for our /tmp/ directory.

With this patch, we introduce the special filesystem type "usertemp":
By specifying

	none /tmp usertemp binary,posix=0 0 0

in /etc/fstab, the /tmp/ directory gets auto-mounted to the directory
specified by the %TEMP% variable.

This feature comes handy in particularly in scenarios where the
administrator might want to write-protect the entire Cygwin directory
yet still needs to allow users to write into the /tmp/ directory.
This is the case in the context of Git for Windows, where the
Cygwin (MSys2) root directory lives inside C:\Program Files and hence
/tmp/ would not be writable otherwise.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2015-12-07 17:37:44 +01:00
..
acl.h
copying.dj
cygwin.h Allow cygwin_conv_path(3) and cygpath(1) to emit /proc/cygdrive prefixed path 2015-12-06 17:25:48 +01:00
dirent.h
elf.h
elf32.h
elf64.h
elf_common.h
elf_generic.h
file.h * include/sys/file.h: Add extern "C". 2014-08-06 08:46:12 +00:00
ioctl.h
ipc.h
kd.h
lock.h
mman.h
mount.h Introduce the 'usertemp' filesystem type 2015-12-07 17:37:44 +01:00
msg.h
mtio.h
param.h
poll.h
procfs.h
quota.h * Makefile.in (DLL_OFILES): Add quotactl.o. 2014-10-17 08:19:27 +00:00
resource.h
sem.h
shm.h
smallprint.h
socket.h * include/sys/socket.h (sockatmark): Add prototype. 2015-02-24 09:00:37 +00:00
soundcard.h
statfs.h
statvfs.h
stdio.h
strace.h
sysinfo.h
syslimits.h
syslog.h
sysmacros.h
sysproto.h
termio.h
termios.h Add CMIN and CTIME definitions 2015-04-23 21:57:07 +02:00
ttychars.h
ucontext.h Try to make sure struct _mcontext is 16-byte aligned 2015-04-23 21:57:11 +02:00
uio.h
un.h
utime.h
utmp.h
utsname.h
vfs.h
wait.h
xattr.h