标签:free span atom 需要 清空 pwrite 复制文件描述符 功能 允许
[a] open
#include <fcntl.h> int open(const char *path, int oflag, ... ,mode_t mode)
[b] creat
#include <fcntl.h> int creat(const char *path, mode_t mode)
[c] close
#include <unistd.h> int close(int fd)
[d] lseek
#include <unistd.h> off_t lseek(int fd, off_t offset, int whence)
[e] read
#include <unistd.h> ssize_t read(int fd, void *buf, size_t nbytes)
[f] write
#include <unistd.h> ssize_t write(int fd, const void *buf, size_t nbytes)
[g] pread / pwrite
#include <unistd.h> ssize_t pread(int fd, void *buf, size_t nbytes, off_t offset) ssize_t pwrite(int fd, const void *buf, size_t nbytes, off_t offset)
[h] dup / dup2
#include <unistd.h> int dup(int fd) int dup2(int fd, int fd2)
[i] sync / fsync / fdatasync
#include <unistd.h> int fsync(int fd) int fdatasync(int fd) void sync(void)
[j] fcntl
#include <fcntl.h> int fcntl(int fd, int cmd, ..., int arg)
....
标签:free span atom 需要 清空 pwrite 复制文件描述符 功能 允许
原文地址:http://www.cnblogs.com/hadex/p/6128412.html