1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

- Added dlclose(), dlerror(), dlopen() and dlsym() functions, which are

available only under OS4. There is a variant of dlopen() in libunix.a
  which will perform a path name conversion. Note that these functions
  will not work in the thread-safe variant of the library because it
  would be unwise to tinker with the currently running program's binary.


git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@15207 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2010-08-21 11:37:03 +00:00
parent 1bdfc0d143
commit f600c5e37a
10 changed files with 232 additions and 299 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: stdlib_dlerror.c,v 1.1 2010-08-21 10:59:34 obarthel Exp $
* $Id: stdlib_dlerror.c,v 1.2 2010-08-21 11:37:03 obarthel Exp $
*
* :ts=4
*
@ -62,6 +62,7 @@ const char * dlerror(void)
{
case ELF32_NO_ERROR:
result = NULL;
break;
case ELF32_OUT_OF_MEMORY:
@ -111,7 +112,7 @@ const char * dlerror(void)
case ELF32_REQUIRED_OBJECT_MISSING:
result = required object missing";
result = "required object missing";
break;
default:
@ -120,6 +121,7 @@ const char * dlerror(void)
break;
}
/* Calling dlerror() will clear the error code. */
__elf_error_code = ELF32_NO_ERROR;
return(result);