mirror of
https://github.com/apache/nuttx.git
synced 2026-10-06 13:55:15 +00:00
fs: Add fchstat and chstat callback into mountpt_operations
and implement all status related change function. the individual file system change will provide in other upcoming patchset. Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Change-Id: I8fde9db8eba9586e9c8da078b67e020c26623cf4
This commit is contained in:
parent
68a345e248
commit
307cc61893
27 changed files with 907 additions and 118 deletions
|
|
@ -107,6 +107,11 @@
|
|||
#define S_TYPEISMQ(buf) S_ISMQ((buf)->st_mode)
|
||||
#define S_TYPEISSHM(buf) S_ISSHM((buf)->st_mode)
|
||||
|
||||
/* Special value for tv_nsec field of timespec */
|
||||
|
||||
#define UTIME_NOW ((1l << 30) - 1l)
|
||||
#define UTIME_OMIT ((1l << 30) - 2l)
|
||||
|
||||
/* The following macros are required by POSIX to achieve backward
|
||||
* compatibility with earlier versions of struct stat.
|
||||
*/
|
||||
|
|
@ -162,6 +167,7 @@ int stat(FAR const char *path, FAR struct stat *buf);
|
|||
int lstat(FAR const char *path, FAR struct stat *buf);
|
||||
int fstat(int fd, FAR struct stat *buf);
|
||||
int chmod(FAR const char *path, mode_t mode);
|
||||
int lchmod(FAR const char *path, mode_t mode);
|
||||
int fchmod(int fd, mode_t mode);
|
||||
int futimens(int fd, const struct timespec times[2]);
|
||||
|
||||
|
|
|
|||
|
|
@ -248,6 +248,15 @@ SYSCALL_LOOKUP(statfs, 2)
|
|||
SYSCALL_LOOKUP(fstatfs, 2)
|
||||
SYSCALL_LOOKUP(telldir, 1)
|
||||
SYSCALL_LOOKUP(sendfile, 4)
|
||||
SYSCALL_LOOKUP(chmod, 2)
|
||||
SYSCALL_LOOKUP(lchmod, 2)
|
||||
SYSCALL_LOOKUP(fchmod, 2)
|
||||
SYSCALL_LOOKUP(chown, 3)
|
||||
SYSCALL_LOOKUP(lchown, 3)
|
||||
SYSCALL_LOOKUP(fchown, 3)
|
||||
SYSCALL_LOOKUP(utimes, 2)
|
||||
SYSCALL_LOOKUP(lutimes, 2)
|
||||
SYSCALL_LOOKUP(futimens, 2)
|
||||
|
||||
#if defined(CONFIG_FS_RAMMAP)
|
||||
SYSCALL_LOOKUP(munmap, 2)
|
||||
|
|
|
|||
|
|
@ -372,6 +372,7 @@ int setitimer(int which, FAR const struct itimerval *value,
|
|||
****************************************************************************/
|
||||
|
||||
int utimes(FAR const char *path, const struct timeval times[2]);
|
||||
int lutimes(FAR const char *path, const struct timeval times[2]);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: futimes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue