mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-30 00:08:30 +00:00
Improve cosmo_dlopen() documentation
This commit is contained in:
parent
7c39818c13
commit
4772796cd8
2 changed files with 30 additions and 26 deletions
|
@ -18,14 +18,23 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/dlopen/dlfcn.h"
|
||||
|
||||
char *dlerror(void) {
|
||||
return "dlopen() isn't supported by cosmo";
|
||||
}
|
||||
|
||||
/**
|
||||
* Opens dynamic shared object using host platform libc.
|
||||
*
|
||||
* Cosmo's `dlopen()` function is a stub that always returns NULL. An
|
||||
* alternative `cosmo_dlopen()` implementation is provided, which can
|
||||
* help some users with tasks like talking to GPU and GUI libraries.
|
||||
*
|
||||
* @return null always
|
||||
*/
|
||||
void *dlopen(const char *, int) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
char *dlerror(void) {
|
||||
return "dlopen() isn't supported by cosmo; try using cosmo_dlopen()";
|
||||
}
|
||||
|
||||
void *dlsym(void *, const char *) {
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue