cvs: TSRM / tsrm_win32.c

From: Date: Tue, 30 Sep 2003 09:48:13 +0000
Subject: cvs: TSRM / tsrm_win32.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-1868@lists.php.net to get a copy of this message
stas Tue Sep 30 05:48:13 2003 EDT Modified files: /TSRM tsrm_win32.c Log: MF4: add realpath function for win32 Index: TSRM/tsrm_win32.c diff -u TSRM/tsrm_win32.c:1.21 TSRM/tsrm_win32.c:1.22 --- TSRM/tsrm_win32.c:1.21 Wed Jun 25 01:05:06 2003 +++ TSRM/tsrm_win32.c Tue Sep 30 05:48:13 2003 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: tsrm_win32.c,v 1.21 2003/06/25 05:05:06 sebastian Exp $ */ +/* $Id: tsrm_win32.c,v 1.22 2003/09/30 09:48:13 stas Exp $ */ #include <stdio.h> #include <fcntl.h> @@ -373,5 +373,14 @@ default: return -1; } +} + +TSRM_API char *realpath(char *orig_path, char *buffer) +{ + int ret = GetFullPathName(orig_path, _MAX_PATH, buffer, NULL); + if(!ret || ret > _MAX_PATH) { + return NULL; + } + return buffer; } #endif

« previous php.zend-engine.cvs (#1868) next »