ld: implement support for exposing ld functions to loaded executables
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
#include "self.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <magenta/log.h>
|
||||
|
||||
LD_API int ld_execl(const char *path, const char *arg, ...)
|
||||
{
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
LD_API int ld_execlp(const char *file, const char *arg, ...)
|
||||
{
|
||||
kern_log("ld_execlp()");
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
LD_API int ld_execle(const char *path, const char *arg, ...)
|
||||
{
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
LD_API int ld_execv(const char *path, char *const argv[])
|
||||
{
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
LD_API int ld_execvp(const char *file, char *const argv[])
|
||||
{
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
LD_API int ld_execvpe(const char *file, char *const argv[], char *const envp[])
|
||||
{
|
||||
return -ENOSYS;
|
||||
}
|
||||
Reference in New Issue
Block a user