summaryrefslogtreecommitdiff
path: root/main/php.h
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-04-29 19:01:58 +0000
committerAndi Gutmans <andi@php.net>2000-04-29 19:01:58 +0000
commitf1d5167ae35f8d55dbdee8e255f2025d4fcfadfa (patch)
treef5050677262ecb4d1302642946a45de42a8dc095 /main/php.h
parent9e9ba7d974333171ecaa57e2c92b0e0ee0dc0b2a (diff)
downloadphp-git-f1d5167ae35f8d55dbdee8e255f2025d4fcfadfa.tar.gz
- Implement V_OPEN() V_OPEN_CREAT() and V_CREAT().
Next step is to substitute all open()'s and creat()'s in the PHP tree
Diffstat (limited to 'main/php.h')
-rw-r--r--main/php.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/main/php.h b/main/php.h
index 326bbfc7e8..75facd3895 100644
--- a/main/php.h
+++ b/main/php.h
@@ -298,6 +298,9 @@ PHPAPI int cfg_get_string(char *varname, char **result);
#ifdef VIRTUAL_DIR
#define V_GETCWD(buff, size) virtual_getcwd(buff,size)
#define V_FOPEN(path, mode) virtual_fopen(path, mode)
+#define V_OPEN(path, flags) virtual_open(path, flags)
+#define V_OPEN_CREAT(path, flags, mode) virtual_open(path, flags, mode)
+#define V_CREAT(path, mode) virtual_creat(path, mode)
#define V_CHDIR(path) virtual_chdir(path)
#define V_CHDIR_FILE(path) virtual_chdir_file(path)
#define V_GETWD(buf)
@@ -310,6 +313,9 @@ PHPAPI int cfg_get_string(char *varname, char **result);
#else
#define V_GETCWD(buff, size) getcwd(buff,size)
#define V_FOPEN(path, mode) fopen(path, mode)
+#define V_OPEN(path, flags) open(path, flags)
+#define V_OPEN_CREAT(path, flags, mode) open(path, flags, mode)
+#define V_CREAT(path, mode) creat(path, mode)
#define V_CHDIR(path) chdir(path)
#define V_CHDIR_FILE(path) chdir_file(path)
#define V_GETWD(buf) getwd(buf)