Apache HTTPD
framework
httpd-2.4.62
srclib
apr
include
apr_user.h
Go to the documentation of this file.
1
/* Licensed to the Apache Software Foundation (ASF) under one or more
2
* contributor license agreements. See the NOTICE file distributed with
3
* this work for additional information regarding copyright ownership.
4
* The ASF licenses this file to You under the Apache License, Version 2.0
5
* (the "License"); you may not use this file except in compliance with
6
* the License. You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
#ifndef APR_USER_H
18
#define APR_USER_H
19
25
#include "apr.h"
26
#include "
apr_errno.h
"
27
#include "
apr_pools.h
"
28
29
#ifdef __cplusplus
30
extern
"C"
{
31
#endif
/* __cplusplus */
32
42
#ifdef WIN32
43
typedef
PSID
apr_uid_t
;
44
#else
45
typedef
uid_t
apr_uid_t
;
46
#endif
47
51
#ifdef WIN32
52
typedef
PSID
apr_gid_t
;
53
#else
54
typedef
gid_t
apr_gid_t
;
55
#endif
56
57
#if APR_HAS_USER
58
66
APR_DECLARE
(
apr_status_t
)
apr_uid_current
(
apr_uid_t
*
userid
,
67
apr_gid_t
*
groupid
,
68
apr_pool_t
*
p
);
69
77
APR_DECLARE
(
apr_status_t
)
apr_uid_name_get
(
char
**
username
,
apr_uid_t
userid
,
78
apr_pool_t
*
p
);
79
88
APR_DECLARE
(
apr_status_t
)
apr_uid_get
(
apr_uid_t
*
userid
,
apr_gid_t
*
groupid
,
89
const
char
*
username
,
apr_pool_t
*
p
);
90
98
APR_DECLARE
(
apr_status_t
)
apr_uid_homepath_get
(
char
**
dirname
,
99
const
char
*
username
,
100
apr_pool_t
*
p
);
101
110
#if defined(WIN32)
111
APR_DECLARE
(
apr_status_t
)
apr_uid_compare
(
apr_uid_t
left,
apr_uid_t
right);
112
#else
113
#define apr_uid_compare(left,right) (((left) == (right)) ? APR_SUCCESS : APR_EMISMATCH)
114
#endif
115
123
APR_DECLARE
(
apr_status_t
)
apr_gid_name_get
(
char
**
groupname
,
124
apr_gid_t
groupid
,
apr_pool_t
*
p
);
125
133
APR_DECLARE
(
apr_status_t
)
apr_gid_get
(
apr_gid_t
*
groupid
,
134
const
char
*
groupname
,
apr_pool_t
*
p
);
135
144
#if defined(WIN32)
145
APR_DECLARE
(
apr_status_t
)
apr_gid_compare
(
apr_gid_t
left,
apr_gid_t
right);
146
#else
147
#define apr_gid_compare(left,right) (((left) == (right)) ? APR_SUCCESS : APR_EMISMATCH)
148
#endif
149
150
#endif
/* ! APR_HAS_USER */
151
154
#ifdef __cplusplus
155
}
156
#endif
157
158
#endif
/* ! APR_USER_H */
apr_errno.h
APR Error Codes.
apr_pools.h
APR memory allocation.
APR_DECLARE
const void apr_status_t(*) apr_status_t(* APR_DECLARE)(void) apr_pool_pre_cleanup_register(apr_pool_t *p
Definition
apr_pools.h:646
size
apr_size_t size
Definition
apr_allocator.h:115
dirname
const char * dirname
Definition
apr_file_info.h:245
apr_status_t
int apr_status_t
Definition
apr_errno.h:44
groupname
const char * groupname
Definition
apr_thread_proc.h:580
username
const char * username
Definition
apr_thread_proc.h:571
apr_gid_t
gid_t apr_gid_t
Definition
apr_user.h:54
apr_uid_t
uid_t apr_uid_t
Definition
apr_user.h:45
p
apr_pool_t * p
Definition
md_event.c:32
apr_pool_t
Definition
apr_pools.c:562
Generated by
1.9.8