#ifndef APACHE_OS_H
#define APACHE_OS_H
#define PLATFORM "NETWARE"
#define HAVE_CANONICAL_FILENAME
typedef signed long int32;
typedef int uid_t;
typedef int gid_t;
#include "ap_config.h"
#include <string.h>
#include <stddef.h>
#include <nwthread.h>
#include <nwmalloc.h>
#include <nwnamspc.h>
#include <nwlib.h>
#include <nwadv.h>
#include <ws2nlm.h>
#include <winsock2.h>
#include <fcntl.h>
#define NO_LINGCLOSE
#define NO_SLACK
#define HAVE_UNISTD_H
#define NO_SETSID
#define NO_KILLPG
#define NO_WRITEV
#define NO_GETTIMEOFDAY
#define NO_TIMES
#define NO_USE_SIGACTION
#define USE_LONGJMP
#define MULTITHREAD
#define NO_RELIABLE_PIPED_LOGS
#define CASE_BLIND_FILESYSTEM
#define NO_OTHER_CHILD
#define USE_HSREGEX
#define NETDB_USE_INTERNET
#define N_PLAT_NLM
#define APX386
#define ALLOC_USE_MALLOC
#define OPTIMIZE_TIMEOUTS
#define FD_SETSIZE 128
#define NO_DBM_REWRITEMAP
#define crypt(buf,salt) (buf)
#define sleep(t) delay(t*1000)
#define getpid GetThreadID
#define S_ISLNK(m) 0
#define lstat(x, y) stat(x, y)
#define strcasecmp(s1, s2) stricmp(s1, s2)
#define strncasecmp(s1, s2, n) strnicmp(s1, s2, n)
#define mktemp(s) tmpnam(s)
#define _getch(c) getch(c)
void AMCSocketCleanup(void);
void clean_parent_exit(int code);
inline int ap_os_is_path_absolute(const char *file)
{
char *s = strchr (file, ':');
if (s) {
if (strncmp(s, "://", 3) != 0)
return 1;
}
else {
if (file[0] == '/')
return 1;
}
return 0;
}
#define ap_os_dso_handle_t void *
void ap_os_dso_init(void);
void *ap_os_dso_load(const char *);
void ap_os_dso_unload(void *);
void *ap_os_dso_sym(void *, const char *);
const char *ap_os_dso_error(void);
char *remove_filename(char*);
char *bslash2slash(char*);
void init_name_space(void);
int ap_os_is_filename_valid(const char *file);
#endif