Skip to content

Commit 83527d1

Browse files
committed
- drop tsrmls_fetch in tsrm_win32_access
1 parent 79ee513 commit 83527d1

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

TSRM/tsrm_virtual_cwd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1433,7 +1433,7 @@ CWD_API int virtual_access(const char *pathname, int mode TSRMLS_DC) /* {{{ */
14331433
}
14341434

14351435
#if defined(TSRM_WIN32)
1436-
ret = tsrm_win32_access(new_state.cwd, mode);
1436+
ret = tsrm_win32_access(new_state.cwd, mode TSRMLS_CC);
14371437
#else
14381438
ret = access(new_state.cwd, mode);
14391439
#endif

TSRM/tsrm_virtual_cwd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ CWD_API realpath_cache_bucket** realpath_cache_get_buckets(TSRMLS_D);
310310
#define VCWD_OPENDIR(pathname) opendir(pathname)
311311
#define VCWD_POPEN(command, type) popen(command, type)
312312
#if defined(TSRM_WIN32)
313-
#define VCWD_ACCESS(pathname, mode) tsrm_win32_access(pathname, mode)
313+
#define VCWD_ACCESS(pathname, mode) tsrm_win32_access(pathname, mode TSRMLS_CC)
314314
#else
315315
#define VCWD_ACCESS(pathname, mode) access(pathname, mode)
316316
#endif

TSRM/tsrm_win32.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ PSID tsrm_win32_get_token_sid(HANDLE hToken)
190190
return NULL;
191191
}
192192

193-
TSRM_API int tsrm_win32_access(const char *pathname, int mode)
193+
TSRM_API int tsrm_win32_access(const char *pathname, int mode TSRMLS_DC)
194194
{
195195
time_t t;
196196
HANDLE thread_token;
@@ -208,8 +208,6 @@ TSRM_API int tsrm_win32_access(const char *pathname, int mode)
208208
realpath_cache_bucket * bucket = NULL;
209209
char * real_path = NULL;
210210

211-
TSRMLS_FETCH();
212-
213211
if (mode == 1 /*X_OK*/) {
214212
DWORD type;
215213
return GetBinaryType(pathname, &type) ? 0 : -1;

TSRM/tsrm_win32.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ TSRM_API void tsrm_win32_shutdown(void);
9898
TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd, char *env);
9999
TSRM_API FILE *popen(const char *command, const char *type);
100100
TSRM_API int pclose(FILE *stream);
101-
TSRM_API int tsrm_win32_access(const char *pathname, int mode);
101+
TSRM_API int tsrm_win32_access(const char *pathname, int mode TSRMLS_DC);
102102
TSRM_API int win32_utime(const char *filename, struct utimbuf *buf);
103103

104104
TSRM_API int shmget(int key, int size, int flags);

UPGRADING.INTERNALS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,5 @@ Use emalloc, emalloc_rel, efree or efree_rel instead.
9191
. sapi_register_input_filter
9292
SAPI_API int sapi_register_input_filter(unsigned int (*input_filter)(int arg, char *var, char **val, unsigned int val_len, unsigned int *new_val_len TSRMLS_DC), unsigned int (*input_filter_init)(TSRMLS_D) TSRMLS_DC);
9393

94+
. tsrm_win32_access
95+
TSRM_API int tsrm_win32_access(const char *pathname, int mode TSRMLS_DC);

0 commit comments

Comments
 (0)