@@ -146,6 +146,11 @@ CWD_API int virtual_mkdir(const char *pathname, mode_t mode TSRMLS_DC);
146
146
CWD_API int virtual_rmdir (const char * pathname TSRMLS_DC );
147
147
CWD_API DIR * virtual_opendir (const char * pathname TSRMLS_DC );
148
148
CWD_API FILE * virtual_popen (const char * command , const char * type TSRMLS_DC );
149
+
150
+ #if !defined(TSRM_WIN32 )
151
+ CWD_API int virtual_access (const char * pathname , int mode TSRMLS_DC );
152
+ #endif
153
+
149
154
#if HAVE_UTIME
150
155
CWD_API int virtual_utime (const char * filename , struct utimbuf * buf TSRMLS_DC );
151
156
#endif
@@ -195,6 +200,7 @@ typedef struct _virtual_cwd_globals {
195
200
#define VCWD_RMDIR (pathname ) virtual_rmdir(pathname TSRMLS_CC)
196
201
#define VCWD_OPENDIR (pathname ) virtual_opendir(pathname TSRMLS_CC)
197
202
#define VCWD_POPEN (command , type ) virtual_popen(command, type TSRMLS_CC)
203
+ #define VCWD_ACCESS (pathname , mode ) virtual_access(pathname, mode TSRMLS_CC)
198
204
#if HAVE_UTIME
199
205
#define VCWD_UTIME (path , time ) virtual_utime(path, time TSRMLS_CC)
200
206
#endif
@@ -221,6 +227,7 @@ typedef struct _virtual_cwd_globals {
221
227
#define VCWD_RMDIR (pathname ) rmdir(pathname)
222
228
#define VCWD_OPENDIR (pathname ) opendir(pathname)
223
229
#define VCWD_POPEN (command , type ) popen(command, type)
230
+ #define VCWD_ACCESS (pathname , mode ) access(pathname, mode)
224
231
225
232
#if !defined(TSRM_WIN32 ) && !defined(NETWARE )
226
233
#define VCWD_REALPATH (path , real_path ) realpath(path, real_path)
0 commit comments