mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
- Implement V_OPEN() V_OPEN_CREAT() and V_CREAT().
Next step is to substitute all open()'s and creat()'s in the PHP tree
This commit is contained in:
parent
9e9ba7d974
commit
f1d5167ae3
3 changed files with 56 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue