os.c revision 7b387354d5836262c2d68e3d887f03276ab5a2d5
/*
* This file will include OS specific functions which are not inlineable.
* Any inlineable functions should be defined in os-inline.c instead.
*/
#include "ap_config.h"
#include "os.h"
int ap_os_is_path_absolute(const char *file)
{
return file[0] == '/';
}
{
int pid;
return pid;
} else if (pid == 0) {
return -1;
else
return -1; /* If we get, we have a real error, but this keeps
us from getting a warning during compile time. */
} else
return pid;
}
/* some linkers complain unless there's at least one function in each
* .o file... and extra prototype is for gcc -Wmissing-prototypes
*/
extern void ap_is_not_here(void);
void ap_is_not_here(void) {}
/*
* Abstraction layer for loading
* Apache modules under run-time via
* dynamic shared object (DSO) mechanism
*/
void ap_os_dso_init(void)
{
/* Nothing required to be done! */
}
void* ap_os_dso_load(const char *path)
{
return (void*) load_add_on(path);
}
void ap_os_dso_unload(void* handle)
{
}
{
void * retval = 0;
#if defined(DLSYM_NEEDS_UNDERSCORE)
return retval;
#endif
return retval;
}
const char *ap_os_dso_error(void)
{
return NULL;
}