summaryrefslogtreecommitdiff
path: root/main/SAPI.h
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2003-01-21 11:03:58 +0000
committerSascha Schumann <sas@php.net>2003-01-21 11:03:58 +0000
commit294e776d950f7393faad5a96988c5122edf23e66 (patch)
tree491aeb9c2026d989229e120736dd499a74ff04aa /main/SAPI.h
parent961c9856ef2871325d5eb06760acb454e1b39c9e (diff)
downloadphp-git-294e776d950f7393faad5a96988c5122edf23e66.tar.gz
add sapi_get_target_uid/_gid for obtaining information about the
non-privileged user the web server is running as. this is useful for creating shared memory segments which need to be accessed by the child processes/threads.
Diffstat (limited to 'main/SAPI.h')
-rw-r--r--main/SAPI.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/main/SAPI.h b/main/SAPI.h
index 81235574ca..75c80fae41 100644
--- a/main/SAPI.h
+++ b/main/SAPI.h
@@ -190,6 +190,9 @@ SAPI_API void sapi_activate_headers_only(TSRMLS_D);
SAPI_API int sapi_get_fd(int *fd TSRMLS_DC);
SAPI_API int sapi_force_http_10(TSRMLS_D);
+SAPI_API int sapi_get_target_uid(uid_t * TSRMLS_DC);
+SAPI_API int sapi_get_target_gid(gid_t * TSRMLS_DC);
+
struct _sapi_module_struct {
char *name;
char *pretty_name;
@@ -231,6 +234,9 @@ struct _sapi_module_struct {
int (*get_fd)(int *fd TSRMLS_DC);
int (*force_http_10)(TSRMLS_D);
+
+ int (*get_target_uid)(uid_t * TSRMLS_DC);
+ int (*get_target_gid)(gid_t * TSRMLS_DC);
};