summaryrefslogtreecommitdiff
path: root/main/SAPI.h
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-02-10 18:19:04 +0000
committerZeev Suraski <zeev@php.net>2000-02-10 18:19:04 +0000
commit41f6bca92fc480df09ba0cc748342a03cbf539b3 (patch)
tree967e075451e94acbc73ad154a052ae410370b832 /main/SAPI.h
parentaa50e6368a2d8f86b01e1eb930d4f7b39648358b (diff)
downloadphp-git-41f6bca92fc480df09ba0cc748342a03cbf539b3.tar.gz
More cleanup!
Diffstat (limited to 'main/SAPI.h')
-rw-r--r--main/SAPI.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/main/SAPI.h b/main/SAPI.h
index 88554cf18a..48f001200c 100644
--- a/main/SAPI.h
+++ b/main/SAPI.h
@@ -23,6 +23,7 @@
#include "zend.h"
#include "zend_llist.h"
#include "zend_operators.h"
+#include <sys/stat.h>
#define SAPI_POST_BLOCK_SIZE 4000
@@ -84,6 +85,7 @@ typedef struct {
sapi_headers_struct sapi_headers;
uint read_post_bytes;
unsigned char headers_sent;
+ struct stat global_stat;
} sapi_globals_struct;
@@ -127,7 +129,7 @@ SAPI_API void sapi_unregister_post_reader(sapi_post_content_type_reader *post_co
SAPI_API int sapi_register_default_post_reader(void (*default_post_reader)(char *content_type_dup SLS_DC));
SAPI_API int sapi_flush();
-SAPI_API int sapi_get_uid();
+SAPI_API struct stat *sapi_get_stat();
SAPI_API char *sapi_getenv(char *name, int name_len);
struct _sapi_module_struct {
@@ -141,7 +143,7 @@ struct _sapi_module_struct {
int (*ub_write)(const char *str, unsigned int str_length);
void (*flush)(void *server_context);
- int (*get_uid)(SLS_D);
+ struct stat *(*get_stat)(SLS_D);
char *(*getenv)(char *name, int name_len SLS_DC);
void (*sapi_error)(int type, const char *error_msg, ...);