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.
This commit is contained in:
Sascha Schumann 2003-01-21 11:03:58 +00:00
parent 961c9856ef
commit 294e776d95
3 changed files with 46 additions and 1 deletions

View file

@ -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);
};