Skip to content

Commit

Permalink
Merge pull request #554 from fjtrujy/improve_exec
Browse files Browse the repository at this point in the history
Adding `_execve`
  • Loading branch information
rickgaiser authored Mar 12, 2024
2 parents 8c1b798 + ab9b607 commit c61a4e6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions ee/libcglue/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ GLUE_OBJS = \
_kill.o \
_fork.o \
_wait.o \
_execve.o \
_sbrk.o \
_gettimeofday.o \
_times.o \
Expand Down
7 changes: 7 additions & 0 deletions ee/libcglue/src/glue.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c61a4e6

Please sign in to comment.