mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:37:36 +00:00
LibC: Added execlp method and new pathconf setting
Added execlp method, and _PC_PIPE_BUF setting to pathconf method.
This commit is contained in:
parent
eb719aa726
commit
f999e30afd
3 changed files with 28 additions and 7 deletions
|
@ -20,13 +20,12 @@ __BEGIN_DECLS
|
|||
#define STDERR_FILENO 2
|
||||
|
||||
/* lseek whence values */
|
||||
#ifndef _STDIO_H /* also defined in stdio.h */
|
||||
#define SEEK_SET 0 /* from beginning of file. */
|
||||
#define SEEK_CUR 1 /* from current position in file. */
|
||||
#define SEEK_END 2 /* from the end of the file. */
|
||||
#ifndef _STDIO_H /* also defined in stdio.h */
|
||||
# define SEEK_SET 0 /* from beginning of file. */
|
||||
# define SEEK_CUR 1 /* from current position in file. */
|
||||
# define SEEK_END 2 /* from the end of the file. */
|
||||
#endif
|
||||
|
||||
|
||||
extern char** environ;
|
||||
|
||||
int get_process_name(char* buffer, int buffer_size);
|
||||
|
@ -54,6 +53,7 @@ int execve(const char* filename, char* const argv[], char* const envp[]);
|
|||
int execvpe(const char* filename, char* const argv[], char* const envp[]);
|
||||
int execvp(const char* filename, char* const argv[]);
|
||||
int execl(const char* filename, const char* arg, ...);
|
||||
int execlp(const char* filename, const char* arg, ...);
|
||||
void sync();
|
||||
void _exit(int status);
|
||||
pid_t getsid(pid_t);
|
||||
|
@ -127,6 +127,7 @@ char* realpath(const char* pathname, char* buffer);
|
|||
enum {
|
||||
_PC_NAME_MAX,
|
||||
_PC_PATH_MAX,
|
||||
_PC_PIPE_BUF
|
||||
};
|
||||
|
||||
#define HOST_NAME_MAX 64
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue