Commit f35e011b authored by David Reid's avatar David Reid
Browse files

Start cleaning up the beos directory. DSO stuff is now in APR.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84901 13f79535-47bb-0310-9956-ffa450edef68
parent e0471fef
Loading
Loading
Loading
Loading
+1 −1
Changes for os/beos/Makefile.in: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -5,6 +5,6 @@ srcdir = @srcdir@
VPATH     = @srcdir@

LTLIBRARY_NAME    = libos.la
LTLIBRARY_SOURCES = os.c os-inline.c beosd.c iol_socket.c
LTLIBRARY_SOURCES = os.c beosd.c iol_socket.c

include $(top_srcdir)/build/ltlib.mk
+0 −47
Changes for os/beos/os.c: 0 added lines, 47 removed lines.
Original line number Diff line number Diff line
@@ -68,50 +68,3 @@ int ap_os_is_path_absolute(const char *file)
{
  return file[0] == '/';
}


/* 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)
{
    unload_add_on((image_id)handle);
}

void *ap_os_dso_sym(void *handle, const char *symname)
{
    void * retval = 0;
#if defined(DLSYM_NEEDS_UNDERSCORE)
    char *symbol = (char*)malloc(sizeof(char)*(strlen(symname)+2));
    sprintf(symbol, "_%s", symname);
    get_image_symbol((image_id)handle, symbol, B_SYMBOL_TYPE_ANY, (void **)&retval);
    free(symbol);
    return retval;
#endif
    get_image_symbol((image_id)handle, symname, B_SYMBOL_TYPE_ANY, (void **)&retval);
    return retval;
}

const char *ap_os_dso_error(void)
{
    return NULL;
}
+0 −22
Changes for os/beos/os.h: 0 added lines, 22 removed lines.
Original line number Diff line number Diff line
@@ -60,7 +60,6 @@
#define APACHE_OS_H

#include "ap_config.h"
#include <kernel/image.h>

#ifndef PLATFORM
#define PLATFORM "BeOS"
@@ -79,25 +78,4 @@ extern int ap_os_is_path_absolute(const char *file);
#define ap_os_is_filename_valid(f)          (1)
#define ap_os_kill(pid, sig)                kill(pid, sig)

/*
 *  Abstraction layer for loading
 *  Apache modules under run-time via 
 *  dynamic shared object (DSO) mechanism
 */

void *dlopen(const char *, int);
int dlclose(void *);
void *dlsym(void *, const char *);
const char *dlerror(void);

#define RTLD_NOW 1
#define RTLD_GLOBAL 0

#define     ap_os_dso_handle_t  image_id *
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);

#endif	/* !APACHE_OS_H */