libc: add fork and exec definitions

This commit is contained in:
2026-05-30 10:02:04 +01:00
parent ede9d39f07
commit 2413538cb6
2 changed files with 11 additions and 0 deletions
+2
View File
@@ -8,6 +8,8 @@
#define SEEK_END 2
typedef size_t ino_t;
typedef long pid_t;
typedef long mode_t;
struct dentry {
unsigned long d_ino;
+9
View File
@@ -14,4 +14,13 @@ extern off_t lseek(int fd, off_t offset, int whence);
extern long getdents(int fd, struct dentry *dirp, unsigned int count);
extern pid_t fork(void);
extern int execl(const char *path, const char *arg, ...);
extern int execlp(const char *file, const char *arg, ...);
extern int execle(const char *path, const char *arg, ...);
extern int execv(const char *path, char *const argv[]);
extern int execvp(const char *file, char *const argv[]);
extern int execvpe(const char *file, char *const argv[], char *const envp[]);
#endif