]> granicus.if.org Git - apache/blob - os/beos/beosd.h
fix copyright dates according to the first check in
[apache] / os / beos / beosd.h
1 /* Copyright 1999-2004 Apache Software Foundation
2  *
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15
16 #ifndef BEOSD_H
17 #define BEOSD_H
18
19 #include "httpd.h"
20 #include "ap_listen.h"
21 /* common stuff that beos MPMs will want */
22
23 /* Default user name and group name. These may be specified as numbers by
24  * placing a # before a number */
25
26 #ifndef DEFAULT_USER
27 #define DEFAULT_USER "#-1"
28 #endif
29 #ifndef DEFAULT_GROUP
30 #define DEFAULT_GROUP "#"
31 #endif
32
33 typedef struct {
34     char *user_name;
35     uid_t user_id;
36     gid_t group_id;
37 } beosd_config_rec;
38 extern beosd_config_rec beosd_config;
39
40 void beosd_detach(void);
41 int beosd_setup_child(void);
42 void beosd_pre_config(void);
43 AP_DECLARE(const char *) beosd_set_user (cmd_parms *cmd, void *dummy, 
44                                          const char *arg);
45 AP_DECLARE(const char *) beosd_set_group(cmd_parms *cmd, void *dummy, 
46                                          const char *arg);
47 AP_DECLARE(apr_status_t) beosd_accept(void **accepted, ap_listen_rec *lr,
48                                       apr_pool_t *ptrans);
49
50 #define beosd_killpg(x, y)      (kill (-(x), (y)))
51 #define ap_os_killpg(x, y)      (kill (-(x), (y)))
52
53 #define BEOS_DAEMON_COMMANDS    \
54 AP_INIT_TAKE1("User", beosd_set_user, NULL, RSRC_CONF, \
55   "Effective user id for this server (NO-OP)"), \
56 AP_INIT_TAKE1("Group", beosd_set_group, NULL, RSRC_CONF, \
57   "Effective group id for this server (NO-OP)")
58
59 #endif /* BEOSD_H */