/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @brief This file in included in all Apache source code. It contains definitions
* of facilities available on _this_ operating system (HAVE_* macros),
* and prototypes of OS specific functions defined in os.c or os-inline.c
*
* @defgroup APACHE_OS_WIN32 win32
* @ingroup APACHE_OS
* @{
*/
#ifdef WIN32
#ifndef AP_OS_H
#define AP_OS_H
/* Delegate windows include to the apr.h header, if USER or GDI declarations
* are required (for a window rather than console application), include
* windows.h prior to any other Apache header files.
*/
#include "apr_pools.h"
#include <io.h>
#include <fcntl.h>
#ifdef _WIN64
#else
#endif
/* Define command-line rewriting for this platform, handled by core.
* For Windows, this is currently handled inside the WinNT MPM.
* XXX To support a choice of MPMs, extract common platform behavior
* into a function specified here.
*/
/* going away shortly... */
#define HAVE_DRIVE_LETTERS
#define HAVE_UNC_PATHS
#define CASE_BLIND_FILESYSTEM
#include <stddef.h>
#include <stdlib.h> /* for exit() */
#ifdef __cplusplus
extern "C" {
#endif
/* BIG RED WARNING: exit() is mapped to allow us to capture the exit
* status. This header must only be included from modules linked into
* the ApacheCore.dll - since it's a horrible behavior to exit() from
* any module outside the main() block, and we -will- assume it's a
* fatal error.
*/
AP_DECLARE_DATA extern int ap_real_exit_code;
? (ap_real_exit_code = (status)) \
: ((ap_real_exit_code = 0), (status))))
#ifdef AP_DECLARE_EXPORT
/* Defined in util_win32.c and available only to the core module for
* win32 MPM design.
*/
typedef enum {
PSECURITY_ATTRIBUTES GetNullACL(void);
void CleanNullACL(void *sa);
{ if (!ap_winapi_pfn_##fn) \
#endif /* def AP_DECLARE_EXPORT */
#ifdef __cplusplus
}
#endif
#endif /* ndef AP_OS_H */
#endif /* def WIN32 */
/** @} */