From b15c6f06a188e3568ff25a0c3ab6840bf327a51a Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 14 Nov 2006 09:16:10 +0000 Subject: [PATCH] Added comments --- TSRM/tsrm_virtual_cwd.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/TSRM/tsrm_virtual_cwd.h b/TSRM/tsrm_virtual_cwd.h index a70f5fb948..b503dfd796 100644 --- a/TSRM/tsrm_virtual_cwd.h +++ b/TSRM/tsrm_virtual_cwd.h @@ -203,9 +203,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); -- 2.40.0