mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Don't write errors to stderr in dlopen(3) and dlsym(3).
This commit is contained in:
parent
30d35a98dd
commit
930be00966
1 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
/*******************************************************************************
|
||||
|
||||
Copyright(C) Jonas 'Sortie' Termansen 2012.
|
||||
Copyright(C) Jonas 'Sortie' Termansen 2012, 2013.
|
||||
|
||||
This file is part of the Sortix C Library.
|
||||
|
||||
|
@ -29,17 +29,17 @@ static const char* dlerrormsg = NULL;
|
|||
|
||||
extern "C" void* dlopen(const char* filename, int mode)
|
||||
{
|
||||
(void) filename;
|
||||
(void) mode;
|
||||
dlerrormsg = "Sortix does not yet support dynamic linking";
|
||||
fprintf(stderr, "%s: loading file: %s\n", dlerrormsg, filename);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
extern "C" void* dlsym(void* handle, const char* name)
|
||||
{
|
||||
(void) handle;
|
||||
(void) name;
|
||||
dlerrormsg = "Sortix does not yet support dynamic linking";
|
||||
fprintf(stderr, "%s: resolving symbol: %s\n", dlerrormsg, name);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue