cvs: php4 /main php_open_temporary_file.c
| From: | Andi Gutmans | Date: | Mon, 11 Sep 2000 19:11:03 +0000 |
| Subject: | cvs: php4 /main php_open_temporary_file.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-1714@lists.php.net to get a copy of this message | ||
andi Mon Sep 11 12:11:03 2000 EDT
Modified files:
/php4/main php_open_temporary_file.c
Log:
- Get rid of stuff which is already done in php.h
- More can probably be removed as the code doesn't use lots of sys calls.
Index: php4/main/php_open_temporary_file.c
diff -u php4/main/php_open_temporary_file.c:1.1 php4/main/php_open_temporary_file.c:1.2
--- php4/main/php_open_temporary_file.c:1.1 Mon Sep 11 11:56:47 2000
+++ php4/main/php_open_temporary_file.c Mon Sep 11 12:11:03 2000
@@ -18,7 +18,6 @@
#include "php.h"
-#include <stdlib.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -36,13 +35,7 @@
#include <netdb.h>
#include <arpa/inet.h>
#endif
-#if HAVE_PWD_H
-#ifdef PHP_WIN32
-#include "win32/pwd.h"
-#else
-#include <pwd.h>
#endif
-#endif
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
@@ -87,18 +80,6 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
-
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
-
-#ifndef MAXPATHLEN
-# ifdef PATH_MAX
-# define MAXPATHLEN PATH_MAX
-# else
-# define MAXPATHLEN 255
-# endif
-#endif
static FILE *php_do_open_temporary_file(char *path, const char *pfx, char **opened_path_p)
{