project - kfile
File operation interfaces wrapper in linux kernel space, standard unix style.
int kopen(const char *pathname, int flags, mode_t mode);
int kclose(int fd);
ssize_t kread(int fd, void *buf, size_t count);
ssize_t kwrite(int fd, const void *buf, size_t count);
ssize_t kreadv(int fd, const struct iovec *vector, int count);
ssize_t kwritev(int fd, const struct iovec *vector, int count);
off_t klseek(int fildes, off_t offset, int whence);
int kfcntl(int fd, int cmd, long arg);
int kfstat(int filedes, struct stat *buf);
int klink(const char *oldpath, const char *newpath);
int kunlink(const char *pathname);
int ksymlink(const char *oldpath, const char *newpath);
int krename(const char *oldpath, const char *newpath);
int kmknod(const char *pathname, mode_t mode, dev_t dev);
int kmount(const char *source, const char *target, const char *filesystemtype, unsigned long mountflags, const void *data);
int kumount(const char *target);
int kumount2(const char *target, int flags);
阅读(1398) | 评论(0) | 转发(0) |