]> code.citadel.org Git - citadel.git/commitdiff
* Remove irrelevant file hpsux.h (was part of dynloader)
authorMichael Hampton <io_error@uncensored.citadel.org>
Sun, 19 Jan 2003 08:59:02 +0000 (08:59 +0000)
committerMichael Hampton <io_error@uncensored.citadel.org>
Sun, 19 Jan 2003 08:59:02 +0000 (08:59 +0000)
citadel/ChangeLog
citadel/hpsux.h [deleted file]

index e795a50153f72ed3421facc0c28397b851263195..d95bb6748d062d0df0415761fd2e6b2811e4f0bc 100644 (file)
@@ -1,4 +1,7 @@
  $Log$
+ Revision 601.121  2003/01/19 08:59:02  error
+ * Remove irrelevant file hpsux.h (was part of dynloader)
+
  Revision 601.120  2003/01/19 05:55:59  ajc
  * serv_calendar.c: allocate dynamic symbol at module startup, not during
    each session startup.  This error was causing crashes (of course).
@@ -4428,3 +4431,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import
+
diff --git a/citadel/hpsux.h b/citadel/hpsux.h
deleted file mode 100644 (file)
index a12a93a..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-/* $Id$ */
-
-/* This nice file makes Citadel/UX work with HP/UX's dynamic loader. */
-/* It's unusual to put C code in a .h file, but I think it's easier for the
-   moment.  */
-
-#ifndef _CITADEL_UX_HPSUX_H
-#define _CITADEL_UX_HPSUX_H
-
-/* includes */
-#include <errno.h>
-#include <dl.h>
-#include <string.h>
-
-
-/* functions */
-void *dlopen(const char *, int);
-int dlclose(void *);
-const char *dlerror(void);
-void *dlsym(void *, char *);
-
-
-/* #defines mapped */
-
-#define RTLD_LAZY      BIND_DEFERRED
-#define RTLD_NOW       BIND_IMMEDIATE
-#define RTLD_GLOBAL    0       /* This SEEMS to be the default for HP/UX */
-
-
-/* extern variables */
-extern int errno;
-
-
-/* local variables */
-static int dlerrmsg;   /* Last errno received */
-
-
-/* functions mapped */
-
-/* dlopen() */
-void *dlopen(const char *filename, int flag)
-{
-       shl_t handle;
-
-       handle = shl_load(filename, flag, 0L);
-       if (handle == NULL)
-               dlerrmsg = errno;
-       else
-               dlerrmsg = 0;
-       return (void *)handle;
-}
-
-/* dlclose() */
-int dlclose(void *handle)
-{
-       return shl_unload(handle);
-}
-
-/* dlerror() */
-/* I think this is as thread safe as it's going to get */
-const char *dlerror(void)
-{
-       int msg;
-
-       msg = dlerrmsg;
-       dlerrmsg = 0;
-       if (msg)
-               return strerror(msg);
-       return NULL;
-}
-
-/* dlsym() */
-void *dlsym(void *handle, char *symbol)
-{
-       void *symaddr = NULL;   /* Linux man page says 0 is a valid symbol */
-       /* address.  I don't understand this, of course, but what do I know? */
-
-       if (shl_findsym((shl_t *)&handle, symbol, TYPE_PROCEDURE, &symaddr) == -1)
-               dlerrmsg = errno;
-       else {
-               dlerrmsg = 0;
-       }
-       return symaddr;
-}
-
-#endif /* _CITADEL_UX_HPSUX_H */