newlib/winsup/utils
Corinna Vinschen c1023ee353 Cygwin: path_conv: decouple path_types from mount types
- Remove another unfortunate amalgamation: Mount flags (MOUNT_xxx)
  are converted to path_types (PATH_xxx) and mixed with non-mount
  path_types flags in the same storage, leading to a tangled,
  pell-mell usage of mount flags and path flags in path_conv and
  symlink_info.

- There's also the case of PC_NONULLEMPTY.  It's used in exactly
  one place with a path_conv constructor only used in this single
  place, just to override the automatic PC_NULLEMPTY addition
  when calling the other path_conv constructors.  Crazily,
  PC_NONULLEMPTY is a define, no path_types flag, despite its
  name.

- It doesn't help that the binary flag exists as mount and path
  flag, while the text flag only exists as path flag.  This leads
  to mount code using path flags to set text/binary.  Very confusing
  is the fact that a text mount/path flag is not actually required;
  the mount code sets the text flag on non binary mounts anyway, so
  there are only two states.  However, to puzzle people a bit more,
  path_conv::binary wrongly implies there's a third, non-binary/non-text
  state.

Clean up this mess:

- Store path flags separately from mount flags in path_conv and
  symlink_info classes and change all checks and testing inline
  methods accordingly.

- Make PC_NONULLEMPTY a simple path_types flag and drop the
  redundant path_check constructor.

- Clean up the definition of pathconv_arg, path_types, and mount flags.
  Use _BIT expression, newly define in cygwin/bits.h.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2019-01-06 20:30:14 +01:00
..
COPYING.dumper
Makefile.in
aclocal.m4
autogen.sh
bloda.cc
chattr.c
configure
configure.ac
cygcheck.cc
cygpath.cc
cygwin-console-helper.cc
dump_setup.cc
dumper.cc
dumper.h
gencat.c
getconf.c
getfacl.c
kill.cc
ldd.cc
ldh.cc
loadlib.h
locale.cc
lsattr.c
minidumper.cc
mkgroup.c
mkpasswd.c
module_info.cc
mount.cc
parse_pe.cc
passwd.c
path.cc
path.h
pldd.c
ps.cc
regtool.cc
setfacl.c
setmetamode.c
ssp.c
ssp.txt
strace.cc
testsuite.cc
testsuite.h
tzmap-from-unicode.org
tzmap.h
tzset.c
umount.cc
wide_path.h