BarryServer : Git

All the code for all my projects
// BarryServer : Git / OrionLibC / blob / 11f4683b13d097219efe4887820b96d54ffee02c / include / unistd.h

// Related

OrionLibC

Barry Updating libc for pipes and signals ad9b6af (2 years, 2 months ago)
#ifndef _UNISTD_H
#define _UNISTD_H

#include <sys/types.h>
#include <stddef.h>

typedef int intptr_t;

#define STDIN_FILENO 0
#define STDOUT_FILENO 1
#define STDERR_FILENO 2

#ifdef __cplusplus
extern "C" {
#endif

int execv(const char *, char *[]);
int execve(const char *, char *[], char *[]);
int execvp(const char *, char *[]);
pid_t fork(void);
pid_t getpid(void);
uid_t getuid(void);
int setuid(uid_t uid);
uid_t geteuid(void);
int seteuid(uid_t euid);
gid_t getgid(void);
int setgid(gid_t gid);
gid_t getegid(void);
int setegid(gid_t egid);
int isatty(int fd);
int close(int fd);
int dup(int oldfd);
int dup2(int oldfd, int newfd);
int read(int fd, void *buf, size_t count);
int write(int fd, void *buf, size_t count);
off_t lseek(int fd, off_t offset, int whence);
int pipe(int pipefd[2]);
int rmdir(const char *pathname);
int chroot(const char *path);
int chdir(const char *path);
char *getcwd(char *buf, size_t size);

#ifdef __cplusplus
}
#endif

#endif