os.h revision 842ae4bd224140319ae7feec1872b93dfd491143
55c79512242fd281202cd57ca18defac696440f5kess/* Licensed to the Apache Software Foundation (ASF) under one or more
55c79512242fd281202cd57ca18defac696440f5kess * contributor license agreements. See the NOTICE file distributed with
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd * this work for additional information regarding copyright ownership.
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd * The ASF licenses this file to You under the Apache License, Version 2.0
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd * (the "License"); you may not use this file except in compliance with
55c79512242fd281202cd57ca18defac696440f5kess * the License. You may obtain a copy of the License at
55c79512242fd281202cd57ca18defac696440f5kess *
55c79512242fd281202cd57ca18defac696440f5kess * http://www.apache.org/licenses/LICENSE-2.0
726b11c595edf0b0b71d0d39a2bc9d912c0ee4b5nd *
96ad5d81ee4a2cc66a4ae19893efc8aa6d06fae7jailletc * Unless required by applicable law or agreed to in writing, software
726b11c595edf0b0b71d0d39a2bc9d912c0ee4b5nd * distributed under the License is distributed on an "AS IS" BASIS,
726b11c595edf0b0b71d0d39a2bc9d912c0ee4b5nd * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen * See the License for the specific language governing permissions and
2e545ce2450a9953665f701bb05350f0d3f26275nd * limitations under the License.
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen */
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen
726b11c595edf0b0b71d0d39a2bc9d912c0ee4b5nd/**
726b11c595edf0b0b71d0d39a2bc9d912c0ee4b5nd * @file unix/os.h
af33a4994ae2ff15bc67d19ff1a7feb906745bf8rbowen * @brief This file in included in all Apache source code. It contains definitions
3f08db06526d6901aa08c110b5bc7dde6bc39905nd * of facilities available on _this_ operating system (HAVE_* macros),
726b11c595edf0b0b71d0d39a2bc9d912c0ee4b5nd * and prototypes of OS specific functions defined in os.c or os-inline.c
726b11c595edf0b0b71d0d39a2bc9d912c0ee4b5nd *
726b11c595edf0b0b71d0d39a2bc9d912c0ee4b5nd * @defgroup APACHE_OS_UNIX unix
3f08db06526d6901aa08c110b5bc7dde6bc39905nd * @ingroup APACHE_OS
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd * @{
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd */
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd
b05ab3ff5ab54aa22610b13d56eaba6ddfc3db60nd#ifndef APACHE_OS_H
bc9d4698fce0238d2f6f2682e99423ebb1149976rbowen#define APACHE_OS_H
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end#include "apr.h"
d474d8ef01ec5c2a09341cd148851ed383c3287crbowen#include "ap_config.h"
d474d8ef01ec5c2a09341cd148851ed383c3287crbowen
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd#ifndef PLATFORM
726b11c595edf0b0b71d0d39a2bc9d912c0ee4b5nd#define PLATFORM "Unix"
55c79512242fd281202cd57ca18defac696440f5kess#endif
ec1d455940a366b63e1cce2f442a445347394a90nd
ec1d455940a366b63e1cce2f442a445347394a90nd/* On platforms where AP_NEED_SET_MUTEX_PERMS is defined, modules
ec1d455940a366b63e1cce2f442a445347394a90nd * should call unixd_set_*_mutex_perms on mutexes created in the
ec1d455940a366b63e1cce2f442a445347394a90nd * parent process. */
ec1d455940a366b63e1cce2f442a445347394a90nd#define AP_NEED_SET_MUTEX_PERMS 1
55c79512242fd281202cd57ca18defac696440f5kess
1ce7f356a70d1d9961ec315c212e2f83a1452456nd#ifdef _OSD_POSIX
8f057347a12e831fdf567da83de2fa581580298dndpid_t os_fork(const char *user);
5b10fd3977e6dfff19afe770e612e276962f7950nd#endif
5b10fd3977e6dfff19afe770e612e276962f7950nd
8f057347a12e831fdf567da83de2fa581580298dnd#endif /* !APACHE_OS_H */
8f057347a12e831fdf567da83de2fa581580298dnd/** @} */
8f057347a12e831fdf567da83de2fa581580298dnd