cvs: TSRM / tsrm_virtual_cwd.h
| From: | Dmitry Stogov | Date: | Tue, 14 Nov 2006 09:16:10 +0000 |
| Subject: | cvs: TSRM / tsrm_virtual_cwd.h | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-5407@lists.php.net to get a copy of this message | ||
dmitry Tue Nov 14 09:16:10 2006 UTC
Modified files:
/TSRM tsrm_virtual_cwd.h
Log:
Added comments
http://cvs.php.net/viewvc.cgi/TSRM/tsrm_virtual_cwd.h?r1=1.60&r2=1.61&diff_format=u
Index: TSRM/tsrm_virtual_cwd.h
diff -u TSRM/tsrm_virtual_cwd.h:1.60 TSRM/tsrm_virtual_cwd.h:1.61
--- TSRM/tsrm_virtual_cwd.h:1.60 Mon Nov 13 15:13:36 2006
+++ TSRM/tsrm_virtual_cwd.h Tue Nov 14 09:16:10 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: tsrm_virtual_cwd.h,v 1.60 2006/11/13 15:13:36 dmitry Exp $ */
+/* $Id: tsrm_virtual_cwd.h,v 1.61 2006/11/14 09:16:10 dmitry Exp $ */
#ifndef VIRTUAL_CWD_H
#define VIRTUAL_CWD_H
@@ -203,9 +203,12 @@
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);