summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/path.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2013-04-24 10:16:13 +0000
committerCorinna Vinschen <corinna@vinschen.de>2013-04-24 10:16:13 +0000
commit9ecd475cd871bd06b930849b05f5c773d4a7e5ce (patch)
tree7220dbff1b6129514d80bfa4e262a03f65d5d68a /winsup/cygwin/path.h
parentbd91f4a96a8bc21bd501a92965b350756d9e3b28 (diff)
downloadcygnal-9ecd475cd871bd06b930849b05f5c773d4a7e5ce.tar.gz
cygnal-9ecd475cd871bd06b930849b05f5c773d4a7e5ce.tar.bz2
cygnal-9ecd475cd871bd06b930849b05f5c773d4a7e5ce.zip
* autoload.cc (CreateSymbolicLink): Define.
* environ.cc (set_winsymlinks): Set allow_winsymlinks. (parse_thing): Change "winsymlinks" to set by function. * globals.cc (enum winsym_t): Define. (allow_winsymlinks): Define as winsym_t. (ro_u_afs): New R/O Unicode string. * mount.cc (fs_info::update): Fix comment. Handle AFS. (fs_names): Add "afs". * mount.h (enum fs_info_type): Add afs. (class fs_info): Implement afs. * path.cc (symlink): Drop third parameter in call to symlink_worker. (symlink_nfs): New function. (symlink_native): New function. (symlink_worker): Drop third argument. Handle native symlink type by calling symlink_native. Move code to handle NFS to symlink_nfs. Fix formatting. Slightly restructure code. * path.h (class path_conv): Add fs_is_afs method. (symlink_worker): Declare here. * security.h: Define privilege constants as unsigned int instead of as unsigned long. * syscalls.cc (mknod_worker): Set third parameter in symlink_worker call to WSYM_lnk. * winsup.h (symlink_worker): Drop declaration here.
Diffstat (limited to 'winsup/cygwin/path.h')
-rw-r--r--winsup/cygwin/path.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/winsup/cygwin/path.h b/winsup/cygwin/path.h
index 290ad8332..090754a02 100644
--- a/winsup/cygwin/path.h
+++ b/winsup/cygwin/path.h
@@ -382,6 +382,7 @@ class path_conv
bool fs_is_cifs () const {return fs.is_cifs ();}
bool fs_is_nwfs () const {return fs.is_nwfs ();}
bool fs_is_ncfsd () const {return fs.is_ncfsd ();}
+ bool fs_is_afs () const {return fs.is_afs ();}
fs_info_type fs_type () const {return fs.what_fs ();}
ULONG fs_serial_number () const {return fs.serial_number ();}
inline const char *set_path (const char *p)
@@ -473,3 +474,5 @@ class etc
static bool test_file_change (int);
friend class pwdgrp;
};
+
+int __reg3 symlink_worker (const char *, const char *, bool);