summaryrefslogtreecommitdiff
path: root/TSRM
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2006-11-14 09:15:55 +0000
committerDmitry Stogov <dmitry@php.net>2006-11-14 09:15:55 +0000
commitaf74c7c9d2e931c5f52cd974f937e521ac03cec2 (patch)
tree957ca292cd38999b3cb7df08f76b46a1ac5b411f /TSRM
parentb28cbe8b6f46e77a36f9e582495cf8d77b8a9cd7 (diff)
downloadphp-git-af74c7c9d2e931c5f52cd974f937e521ac03cec2.tar.gz
Added comments
Diffstat (limited to 'TSRM')
-rw-r--r--TSRM/tsrm_virtual_cwd.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/TSRM/tsrm_virtual_cwd.h b/TSRM/tsrm_virtual_cwd.h
index fd0c271e3b..e8b13014d9 100644
--- a/TSRM/tsrm_virtual_cwd.h
+++ b/TSRM/tsrm_virtual_cwd.h
@@ -186,9 +186,12 @@ CWD_API int virtual_chmod(const char *filename, mode_t mode TSRMLS_DC);
CWD_API int virtual_chown(const char *filename, uid_t owner, gid_t group, int link TSRMLS_DC);
#endif
-#define CWD_EXPAND 0
-#define CWD_FILEPATH 1
-#define CWD_REALPATH 2
+/* One of the following constants must be used as the last argument
+ in virtual_file_ex() call. */
+
+#define CWD_EXPAND 0 /* expand "." and ".." but dont resolve symlinks */
+#define CWD_FILEPATH 1 /* resolve symlinks if file is exist otherwise expand */
+#define CWD_REALPATH 2 /* call realpath(), resolve symlinks. File must exist */
CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func verify_path, int use_realpath);