summaryrefslogtreecommitdiff
path: root/main/php_open_temporary_file.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-09-11 19:11:03 +0000
committerAndi Gutmans <andi@php.net>2000-09-11 19:11:03 +0000
commitb510fcf96e9b1d4af967dc1c020375a127f76741 (patch)
tree84dfd54eb709b9f97a178ac93bfb26520e4f821c /main/php_open_temporary_file.c
parent4b243ebeeb707f13cd1cf4e113f4c51cfa5e2eb5 (diff)
downloadphp-git-b510fcf96e9b1d4af967dc1c020375a127f76741.tar.gz
- 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.
Diffstat (limited to 'main/php_open_temporary_file.c')
-rw-r--r--main/php_open_temporary_file.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/main/php_open_temporary_file.c b/main/php_open_temporary_file.c
index 6eee405aa4..50a0879c1a 100644
--- a/main/php_open_temporary_file.c
+++ b/main/php_open_temporary_file.c
@@ -18,7 +18,6 @@
#include "php.h"
-#include <stdlib.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -36,12 +35,6 @@
#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>
@@ -88,18 +81,6 @@
* 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)
{
char *trailing_slash;