Khác biệt giữa các bản “Hàm hệ thống”

== Danh sách hàm hệ thống ==
<source lang="c">
/*process management*/ <br />
pid_t fork(void); <br />
pid_t waitpid(pid_t pid,size_t *status,size_t options);<br />
size_t execve(const char *name,char *const *argv,char *const* envp);<br />
void exit(size_t status);<br />
 
pid_t getpid();<br />
void exit(size_t status);<br />
pid_t getppid();<br />
 
/*signals*/<br />
pid_t getpid();<br />
pid_t getppid();<br />
/*signals*/<br />
size_t sigaction(size_t sig,void *(*fpt)(void *) );<br />
size_t sigreturn();
 
size_t sigreturnsigprocmask();<br />
size_t sigpending();
 
size_t sigprocmasksigsuspend();<br />
size_t pause();<br />
 
size_t sigpendingalarm(time_t seconds);<br />
size_t dupkill(pid_t pid,size_t fdsig);<br />
 
/*file system management*/<br />
size_t sigsuspend();<br />
size_t mkdircreat(const char *name,mode_t modemod);<br />
 
size_t mknodopen(const char *name,size_t flag,mode_t mode,dev_t dev);<br />
size_t pause();<br />
size_t ioctlread(size_t fd,size_tvoid cmd*buf,size_t optionnbytes);<br />
 
size_t fcntlwrite(size_t fd,size_tconst cmdvoid *buf,size_t optionnbytes);<br />
size_t alarm(time_t seconds);<br />
size_t close(size_t fd);<br />
 
size_toff_t killlseek(pid_tsize_t pidfd,off_t pos,size_t sighow);<br />
size_t rmdirstat(const char *name,struct stat *buf);<br />
 
size_t faccessfstat(size_t fd,size_tstruct amodestat *buf);<br />
/*file system management*/<br />
size_t getcwdaccess(const char *bufnam,size_tint sizea_mode);<br />
 
size_t creatrename(const char *nameold_name,mode_tconst modchar *new_name);<br />
size_t pipedup(size_t *fd);<br />
 
size_t openioctl(const charsize_t *namefd,size_t flagcmd,mode_tsize_t modeoption);<br />
size_t getdentsfcntl(size_t fd,structsize_t dirents *dentscmd,size_t countsoption);<br />
 
size_t readpipe(size_t *fd,void *buf,size_t nbytes);<br />
size_t chdirmknod(const char *name,mode_t mode,dev_t dev);<br />
 
size_t writemkdir(size_t fd,const voidchar *bufname,size_tmode_t nbytesmode);<br />
size_t unlinkrmdir(const char *name);<br />
 
size_t link(const char *old_name,const char *new_name);<br />
size_t close(size_t fd);<br />
size_t chrootunlink(const char *name);<br />
 
size_t sync();<br />
off_t lseek(size_t fd,off_t pos,size_t how);<br />
size_t chdir(const char *name);
 
size_t statchroot(const char *name,struct stat *buf);<br />
size_t fchdir(size_t fd);<br />
 
size_t fstatfaccess(size_t fd,structsize_t stat *bufamode);<br />
size_t getcwd(const char *buf,size_t size);
 
size_t accessmount(const char *namdev_name,intconst a_modechar *dir_name,const char *type,unsigned long flags,const void *data);<br />
size_t umount(const char *dir_name,unsigned long flags);<br />
 
size_t getdents(size_t fd,struct dirents *dents,size_t counts);
size_t rename(const char *old_name,const char *new_name);<br />
 
size_t dup(size_t fd);<br />
 
size_t ioctl(size_t fd,size_t cmd,size_t option);<br />
 
size_t fcntl(size_t fd,size_t cmd,size_t option);<br />
 
size_t pipe(size_t *fd);<br />
 
 
size_t mknod(const char *name,mode_t mode,dev_t dev);<br />
 
size_t mkdir(const char *name,mode_t mode);<br />
 
size_t rmdir(const char *name);<br />
 
size_t link(const char *old_name,const char *new_name);<br />
 
size_t unlink(const char *name);<br />
 
size_t sync();<br />
 
size_t chdir(const char *name);<br />
 
size_t chroot(const char *name);<br />
 
 
size_t fchdir(size_t fd);<br />
 
size_t faccess(size_t fd,size_t amode);<br />
 
size_t getcwd(const char *buf,size_t size);<br />
 
size_t mount(const char *dev_name,const char *dir_name,const char *type,unsigned long flags,const void *data);<br />
 
size_t umount(const char *dir_name,unsigned long flags);<br />
size_t getdents(size_t fd,struct dirents *dents,size_t counts);<br />
/*Protection*/<br />
size_t chmod(const char *name,mode_t mode);<br />
size_t chown(const char *name,uid_t uid,gid_t gid);<br />
uid_t getuid();<br />
gid_t getgid();<br />
size_t setuid(uid_t uid);<br />
size_t setgid(gid_t gid);<br />
mode_t umask(mode_t mode);<br />
size_t fchmod(size_t fd,mode_t mode);<br />
size_t fchown(size_t fd,uid_t uid,gid_t gid);<br />
/*time management*/<br />
time_t time(time_t *ret); /*Get the elapsed time since Jan 1,1970*/<br />
size_t stime(time_t when); /*set time since Jan 1,1970*/<br />
size_t utime(const char *name,time_t last); /*set last access for file*/<br />
size_t times(struct tm *tbuf);<br />
size_t sleep(time_t seconds); <br />
size_t nanosleep(struct timespec *rqtp,struct timespec *rmtp);<br />
</source>
 
229

lần sửa đổi