Added a new write_stat() call to the file descriptor operations.
Renamed sys_read_stat() to sys_read_path_stat() - sys_read_stat() is now the fd operation. Removed the sys_write_attr_stat() call because it is no longer needed. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1554 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
940ff9b93c
commit
8e5ca65bc9
|
@ -34,7 +34,8 @@ struct fd_ops {
|
|||
// int (*fd_poll)(struct file_descriptor *, int);
|
||||
status_t (*fd_read_dir)(struct file_descriptor *,struct dirent *buffer,size_t bufferSize,uint32 *_count);
|
||||
status_t (*fd_rewind_dir)(struct file_descriptor *);
|
||||
status_t (*fd_stat)(struct file_descriptor *, struct stat *);
|
||||
status_t (*fd_read_stat)(struct file_descriptor *, struct stat *);
|
||||
status_t (*fd_write_stat)(struct file_descriptor *, const struct stat *, int statMask);
|
||||
status_t (*fd_close)(struct file_descriptor *);
|
||||
void (*fd_free)(struct file_descriptor *);
|
||||
};
|
||||
|
|
|
@ -23,8 +23,8 @@ enum {
|
|||
SYSCALL_CREATE,
|
||||
SYSCALL_UNLINK,
|
||||
SYSCALL_RENAME,
|
||||
SYSCALL_READ_STAT,
|
||||
SYSCALL_WRITE_STAT,
|
||||
SYSCALL_READ_PATH_STAT,
|
||||
SYSCALL_WRITE_PATH_STAT,
|
||||
SYSCALL_SYSTEM_TIME,
|
||||
SYSCALL_SNOOZE,
|
||||
SYSCALL_SEM_CREATE,
|
||||
|
@ -83,7 +83,7 @@ enum {
|
|||
SYSCALL_SYSCTL,
|
||||
SYSCALL_SOCKET,
|
||||
SYSCALL_ACCESS,
|
||||
SYSCALL_READ_STAT_FD,
|
||||
SYSCALL_READ_STAT,
|
||||
SYSCALL_READ_DIR,
|
||||
SYSCALL_REWIND_DIR,
|
||||
SYSCALL_OPEN_DIR,
|
||||
|
@ -109,7 +109,7 @@ enum {
|
|||
SYSCALL_OPEN_ATTR_DIR,
|
||||
SYSCALL_CREATE_ATTR,
|
||||
SYSCALL_OPEN_ATTR,
|
||||
SYSCALL_WRITE_ATTR_STAT, /* 100 */
|
||||
SYSCALL_WRITE_STAT, /* 100 */
|
||||
SYSCALL_REMOVE_ATTR,
|
||||
SYSCALL_RENAME_ATTR,
|
||||
};
|
||||
|
|
|
@ -78,12 +78,11 @@ int sys_create_link(const char *path, const char *toPath);
|
|||
int sys_unlink(const char *path);
|
||||
int sys_rename(const char *oldpath, const char *newpath);
|
||||
int sys_access(const char *path, int mode);
|
||||
int sys_read_stat(const char *path, bool traverseLink, struct stat *stat);
|
||||
int sys_write_stat(int fd, const char *path, bool traverseLink, struct stat *stat, int statMask);
|
||||
int sys_read_path_stat(const char *path, bool traverseLink, struct stat *stat);
|
||||
int sys_write_path_stat(const char *path, bool traverseLink, const struct stat *stat, int statMask);
|
||||
int sys_open_attr_dir(int fd, const char *path);
|
||||
int sys_create_attr(int fd, const char *name, uint32 type, int openMode);
|
||||
int sys_open_attr(int fd, const char *name, int openMode);
|
||||
int sys_write_attr_stat(int fd, const struct stat *stat, int statMask);
|
||||
int sys_remove_attr(int fd, const char *name);
|
||||
int sys_rename_attr(int fromFile, const char *fromName, int toFile, const char *toName);
|
||||
int sys_getcwd(char *buffer, size_t size);
|
||||
|
@ -112,12 +111,11 @@ int user_create_link(const char *path, const char *toPath);
|
|||
int user_unlink(const char *path);
|
||||
int user_rename(const char *oldpath, const char *newpath);
|
||||
int user_access(const char *path, int mode);
|
||||
int user_read_stat(const char *path, bool traverseLink, struct stat *stat);
|
||||
int user_write_stat(int fd, const char *path, bool traverseLink, struct stat *stat, int statMask);
|
||||
int user_read_path_stat(const char *path, bool traverseLink, struct stat *stat);
|
||||
int user_write_path_stat(const char *path, bool traverseLink, const struct stat *stat, int statMask);
|
||||
int user_open_attr_dir(int fd, const char *path);
|
||||
int user_create_attr(int fd, const char *name, uint32 type, int openMode);
|
||||
int user_open_attr(int fd, const char *name, int openMode);
|
||||
int user_write_attr_stat(int fd, const struct stat *stat, int statMask);
|
||||
int user_remove_attr(int fd, const char *name);
|
||||
int user_rename_attr(int fromFile, const char *fromName, int toFile, const char *toName);
|
||||
int user_getcwd(char *buffer, size_t size);
|
||||
|
@ -129,7 +127,8 @@ extern ssize_t sys_write(int fd, off_t pos, const void *buffer, size_t bufferSiz
|
|||
extern int sys_ioctl(int fd, ulong cmd, void *data, size_t length);
|
||||
extern ssize_t sys_read_dir(int fd, struct dirent *buffer, size_t bufferSize, uint32 maxCount);
|
||||
extern status_t sys_rewind_dir(int fd);
|
||||
extern int sys_fstat(int fd, struct stat *);
|
||||
extern int sys_read_stat(int fd, struct stat *stat);
|
||||
extern int sys_write_stat(int fd, const struct stat *stat, int statMask);
|
||||
extern int sys_close(int fd);
|
||||
extern int sys_dup(int fd);
|
||||
extern int sys_dup2(int ofd, int nfd);
|
||||
|
@ -140,7 +139,8 @@ extern ssize_t user_write(int fd, off_t pos, const void *buffer, size_t bufferSi
|
|||
extern int user_ioctl(int fd, ulong cmd, void *data, size_t length);
|
||||
extern ssize_t user_read_dir(int fd, struct dirent *buffer, size_t bufferSize, uint32 maxCount);
|
||||
extern status_t user_rewind_dir(int fd);
|
||||
extern int user_fstat(int fd, struct stat *);
|
||||
extern int user_read_stat(int fd, struct stat *stat);
|
||||
extern int user_write_stat(int fd, const struct stat *stat, int statMask);
|
||||
extern int user_close(int fd);
|
||||
extern int user_dup(int fd);
|
||||
extern int user_dup2(int ofd, int nfd);
|
||||
|
|
Loading…
Reference in New Issue