From ab9b607418f5246e6c397c418848a8920f07bfb8 Mon Sep 17 00:00:00 2001 From: Francisco Javier Trujillo Mata Date: Mon, 11 Mar 2024 17:00:45 +0100 Subject: [PATCH] Adding _execve --- ee/libcglue/Makefile | 1 + ee/libcglue/src/glue.c | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/ee/libcglue/Makefile b/ee/libcglue/Makefile index 64b86925db0..818c75d8d92 100644 --- a/ee/libcglue/Makefile +++ b/ee/libcglue/Makefile @@ -72,6 +72,7 @@ GLUE_OBJS = \ _kill.o \ _fork.o \ _wait.o \ + _execve.o \ _sbrk.o \ _gettimeofday.o \ _times.o \ diff --git a/ee/libcglue/src/glue.c b/ee/libcglue/src/glue.c index 5d2cf55d3c1..ee2152a4075 100644 --- a/ee/libcglue/src/glue.c +++ b/ee/libcglue/src/glue.c @@ -568,6 +568,13 @@ pid_t _wait(int *unused) { } #endif +#ifdef F__execve +int _execve(const char *name, char *const argv[], char *const env[]) { + errno = ENOSYS; + return (pid_t) -1; /* not supported */ +} +#endif + #ifdef F__sbrk void * _sbrk(size_t incr) { static void * _heap_ptr = &_end;