libc: add fork and exec definitions
This commit is contained in:
@@ -8,6 +8,8 @@
|
|||||||
#define SEEK_END 2
|
#define SEEK_END 2
|
||||||
|
|
||||||
typedef size_t ino_t;
|
typedef size_t ino_t;
|
||||||
|
typedef long pid_t;
|
||||||
|
typedef long mode_t;
|
||||||
|
|
||||||
struct dentry {
|
struct dentry {
|
||||||
unsigned long d_ino;
|
unsigned long d_ino;
|
||||||
|
|||||||
@@ -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 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
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user