diff options
Diffstat (limited to 'TSRM/tsrm_win32.c')
-rw-r--r-- | TSRM/tsrm_win32.c | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/TSRM/tsrm_win32.c b/TSRM/tsrm_win32.c index a8a8274f45..46365b5fc1 100644 --- a/TSRM/tsrm_win32.c +++ b/TSRM/tsrm_win32.c @@ -4,10 +4,10 @@ +----------------------------------------------------------------------+ | Copyright (c) 1997-2003 The PHP Group | +----------------------------------------------------------------------+ - | This source file is subject to version 3.0 of the PHP license, | + | This source file is subject to version 2.02 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | - | available through the world-wide-web at the following url: | - | http://www.php.net/license/3_0.txt. | + | available at through the world-wide-web at | + | http://www.php.net/license/2_02.txt. | | If you did not receive a copy of the PHP license and are unable to | | obtain it through the world-wide-web, please send a note to | | license@php.net so we can mail you a copy immediately. | @@ -24,8 +24,6 @@ #include <process.h> #include <time.h> -#define TSRM_INCLUDE_FULL_WINDOWS_HEADERS - #include "TSRM.h" #ifdef TSRM_WIN32 @@ -83,19 +81,6 @@ TSRM_API void tsrm_win32_shutdown(void) #endif } -TSRM_API int tsrm_win32_access(const char *pathname, int mode) -{ - SHFILEINFO sfi; - - if (mode == 1 /*X_OK*/) { - return access(pathname, 0) == 0 && - SHGetFileInfo(pathname, 0, &sfi, sizeof(SHFILEINFO), SHGFI_EXETYPE) != 0 ? 0 : -1; - } else { - return access(pathname, mode); - } -} - - static process_pair *process_get(FILE *stream TSRMLS_DC) { process_pair *ptr; @@ -374,4 +359,4 @@ TSRM_API int shmctl(int key, int cmd, struct shmid_ds *buf) { return -1; } } -#endif +#endif
\ No newline at end of file |