os.h revision c27bef8526e2534afce580c2ce2994bae41cda77
/* Copyright 1999-2004 Apache Software Foundation
*
* Licensed 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.
*/
#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>
#define PLATFORM "Win32"
/* going away shortly... */
#define HAVE_DRIVE_LETTERS
#define HAVE_UNC_PATHS
#define CASE_BLIND_FILESYSTEM
#include <stddef.h>
#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 real_exit_code;
: ((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 {
AP_DLL_WINBASEAPI = 0, // kernel32 From WinBase.h
void CleanNullACL(void *sa);
int set_listeners_noninheritable(apr_pool_t *p);
{ if (!ap_winapi_pfn_##fn) \
/* Win2K kernel only */
/* WinNT kernel only */
(hFile));
#define CancelIo ap_winapi_CancelIo
/* Win9x kernel only */
(dwProcessId, dwType));
#endif /* def AP_DECLARE_EXPORT */
#ifdef __cplusplus
}
#endif
#endif /* ndef AP_OS_H */
#endif /* def WIN32 */