1 /* Copyright 1999-2004 Apache Software Foundation
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
7 * http://www.apache.org/licenses/LICENSE-2.0
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.
20 #include "ap_listen.h"
21 /* common stuff that beos MPMs will want */
23 /* Default user name and group name. These may be specified as numbers by
24 * placing a # before a number */
27 #define DEFAULT_USER "#-1"
30 #define DEFAULT_GROUP "#"
38 extern beosd_config_rec beosd_config;
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,
45 AP_DECLARE(const char *) beosd_set_group(cmd_parms *cmd, void *dummy,
47 AP_DECLARE(apr_status_t) beosd_accept(void **accepted, ap_listen_rec *lr,
50 #define beosd_killpg(x, y) (kill (-(x), (y)))
51 #define ap_os_killpg(x, y) (kill (-(x), (y)))
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)")