]> granicus.if.org Git - apache/commitdiff
Start cleaning up the beos directory. DSO stuff is now in APR.
authorDavid Reid <dreid@apache.org>
Tue, 4 Apr 2000 08:46:58 +0000 (08:46 +0000)
committerDavid Reid <dreid@apache.org>
Tue, 4 Apr 2000 08:46:58 +0000 (08:46 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84901 13f79535-47bb-0310-9956-ffa450edef68

os/beos/Makefile.in
os/beos/os.c
os/beos/os.h

index d9b0c410688b237b8908b982925e53459a43dc27..b2014e4c5636bb1661f6f7a7742c96efefff1f93 100644 (file)
@@ -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
index c61dc8b315b2ad2c44b976e9e4618d35236a2e79..9b2f647dcfef291d08bb5214c3a99e12e1452525 100644 (file)
@@ -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;
-}
index 3c634f3adc3962d1f31138183031011219c689e9..20560c1a585a421d5a017d3be5868f9aaee8fe57 100644 (file)
@@ -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 */