|
| #define | NAME_MAX _XOPEN_NAME_MAX |
| | Maximum length of a file name component (XSI).
|
| |
| #define | AT_FDCWD ZVFS_AT_FDCWD |
| | Equivalent to "." in the current directory (used with *at() functions).
|
| |
| #define | AT_EACCESS ZVFS_AT_EACCESS |
| | Use effective IDs (faccessat flag).
|
| |
| #define | AT_SYMLINK_NOFOLLOW ZVFS_AT_SYMLINK_NOFOLLOW |
| | Do not follow symbolic links (*at flag).
|
| |
| #define | AT_SYMLINK_FOLLOW ZVFS_AT_SYMLINK_FOLLOW |
| | Follow symbolic links (*at flag).
|
| |
| #define | AT_REMOVEDIR ZVFS_AT_REMOVEDIR |
| | Remove directory (unlinkat flag).
|
| |
| #define | POSIX_FADV_NORMAL ZVFS_POSIX_FADV_NORMAL |
| | No advice (default access pattern).
|
| |
| #define | POSIX_FADV_RANDOM ZVFS_POSIX_FADV_RANDOM |
| | Data will be accessed in random order.
|
| |
| #define | POSIX_FADV_SEQUENTIAL ZVFS_POSIX_FADV_SEQUENTIAL |
| | Data will be accessed sequentially.
|
| |
| #define | POSIX_FADV_WILLNEED ZVFS_POSIX_FADV_WILLNEED |
| | Data will be needed in the near future.
|
| |
| #define | POSIX_FADV_DONTNEED ZVFS_POSIX_FADV_DONTNEED |
| | Data will not be accessed in the near future.
|
| |
| #define | POSIX_FADV_NOREUSE ZVFS_POSIX_FADV_NOREUSE |
| | Data will be accessed only once.
|
| |
| #define | S_IFMT ZVFS_MODE_IFMT |
| | Bit mask for the file type bits in st_mode.
|
| |
| #define | S_IFBLK ZVFS_MODE_IFBLK |
| | Block special file.
|
| |
| #define | S_IFCHR ZVFS_MODE_IFCHR |
| | Character special file.
|
| |
| #define | S_IFIFO ZVFS_MODE_IFIFO |
| | FIFO special file.
|
| |
| #define | S_IFREG ZVFS_MODE_IFREG |
| | Regular file.
|
| |
| #define | S_IFDIR ZVFS_MODE_IFDIR |
| | Directory.
|
| |
| #define | S_IFLNK ZVFS_MODE_IFLNK |
| | Symbolic link.
|
| |
| #define | S_IFSOCK ZVFS_MODE_IFSOCK |
| | Socket.
|
| |
| #define | S_IFSHM ZVFS_MODE_IFSHM |
| | Shared memory object (Zephyr extension).
|
| |
| #define | S_IRWXU ZVFS_S_IRWXU |
| | Read, write, execute permission for owner.
|
| |
| #define | S_IRUSR ZVFS_S_IRUSR |
| | Read permission for owner.
|
| |
| #define | S_IWUSR ZVFS_S_IWUSR |
| | Write permission for owner.
|
| |
| #define | S_IXUSR ZVFS_S_IXUSR |
| | Execute permission for owner.
|
| |
| #define | S_IRWXG ZVFS_S_IRWXG |
| | Read, write, execute permission for group.
|
| |
| #define | S_IRGRP ZVFS_S_IRGRP |
| | Read permission for group.
|
| |
| #define | S_IWGRP ZVFS_S_IWGRP |
| | Write permission for group.
|
| |
| #define | S_IXGRP ZVFS_S_IXGRP |
| | Execute permission for group.
|
| |
| #define | S_IRWXO ZVFS_S_IRWXO |
| | Read, write, execute permission for others.
|
| |
| #define | S_IROTH ZVFS_S_IROTH |
| | Read permission for others.
|
| |
| #define | S_IWOTH ZVFS_S_IWOTH |
| | Write permission for others.
|
| |
| #define | S_IXOTH ZVFS_S_IXOTH |
| | Execute permission for others.
|
| |
| #define | S_ISUID ZVFS_S_ISUID |
| | Set-user-ID bit.
|
| |
| #define | S_ISGID ZVFS_S_ISGID |
| | Set-group-ID bit.
|
| |
| #define | S_ISVTX ZVFS_S_ISVTX |
| | Sticky bit (restricted deletion).
|
| |
| #define | S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) |
| | Test whether m is a block special file.
|
| |
| #define | S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) |
| | Test whether m is a character special file.
|
| |
| #define | S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) |
| | Test whether m is a directory.
|
| |
| #define | S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) |
| | Test whether m is a FIFO.
|
| |
| #define | S_ISREG(m) (((m) & S_IFMT) == S_IFREG) |
| | Test whether m is a regular file.
|
| |
| #define | S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) |
| | Test whether m is a symbolic link.
|
| |
| #define | S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK) |
| | Test whether m is a socket.
|
| |
| #define | S_TYPEISMQ(buf) (0) |
| | Test whether the file is a message queue (always 0).
|
| |
| #define | S_TYPEISSEM(buf) (0) |
| | Test whether the file is a semaphore (always 0).
|
| |
| #define | S_TYPEISSHM(st) (((st)->st_mode & S_IFMT) == S_IFSHM) |
| | Test whether the file is a shared memory object.
|
| |
| #define | S_TYPEISTMO(buf) (0) |
| | Test whether the file is a typed memory object (always 0).
|
| |
| #define | UTIME_NOW -1 |
| | Set st_atim or st_mtim to the current time (utimensat flag).
|
| |
| #define | UTIME_OMIT -2 |
| | Leave st_atim or st_mtim unchanged (utimensat flag).
|
| |
| #define | F_OK 0 |
| | Test whether the file exists.
|
| |
| #define | R_OK 4 |
| | Test whether the file may be read.
|
| |
| #define | W_OK 2 |
| | Test whether the file may be written.
|
| |
| #define | X_OK 1 |
| | Test whether the file may be executed.
|
| |
|
| int | alphasort (const struct dirent **d1, const struct dirent **d2) |
| | Compare two directory entries alphabetically (for use with scandir()).
|
| |
| int | closedir (DIR *dirp) |
| | Close a directory stream.
|
| |
| int | dirfd (DIR *dirp) |
| | Get the file descriptor for an open directory stream.
|
| |
| DIR * | fdopendir (int fd) |
| | Open a directory stream for a directory identified by a file descriptor.
|
| |
| DIR * | opendir (const char *dirname) |
| | Open a directory stream for a named directory.
|
| |
| struct dirent * | readdir (DIR *dirp) |
| | Read the next entry from a directory stream.
|
| |
| int | readdir_r (DIR *ZRESTRICT dirp, struct dirent *ZRESTRICT entry, struct dirent **ZRESTRICT result) |
| | Read a directory entry into a caller-supplied buffer (thread-safe).
|
| |
| void | rewinddir (DIR *dirp) |
| | Reset a directory stream to the beginning.
|
| |
| int | scandir (const char *dir, struct dirent ***namelist, int(*sel)(const struct dirent *), int(*compar)(const struct dirent **, const struct dirent **)) |
| | Scan a directory, optionally filtering and sorting the entries.
|
| |
| void | seekdir (DIR *dirp, long loc) |
| | Set the position of a directory stream (XSI extension).
|
| |
| long | telldir (DIR *dirp) |
| | Get the current position of a directory stream (XSI extension).
|
| |
| int | posix_fadvise (int fd, off_t offset, off_t len, int advice) |
| | Declare an expected access pattern for a file region.
|
| |
| int | posix_fallocate (int fd, off_t offset, off_t len) |
| | Guarantee that disk space is allocated for a file region.
|
| |
| int | chmod (const char *path, mode_t mode) |
| | Change the mode of a file.
|
| |
| int | fchmod (int fildes, mode_t mode) |
| | Change the mode of an open file.
|
| |
| int | fchmodat (int fd, const char *path, mode_t mode, int flag) |
| | Change the mode of a file relative to a directory descriptor.
|
| |
| int | fstat (int fildes, struct stat *buf) |
| | Get status of an open file.
|
| |
| int | fstatat (int fd, const char *ZRESTRICT path, struct stat *ZRESTRICT buf, int flag) |
| | Get status of a file relative to a directory descriptor.
|
| |
| int | futimens (int fildes, const struct timespec times[2]) |
| | Set file access and modification times of an open file (nanosecond resolution).
|
| |
| int | lstat (const char *ZRESTRICT path, struct stat *ZRESTRICT buf) |
| | Get status of a file (does not follow symbolic links).
|
| |
| int | mkdir (const char *path, mode_t mode) |
| | Create a directory.
|
| |
| int | mkdirat (int fd, const char *path, mode_t mode) |
| | Create a directory relative to a directory descriptor.
|
| |
| int | mkfifo (const char *path, mode_t mode) |
| | Create a FIFO special file.
|
| |
| int | mkfifoat (int fd, const char *path, mode_t mode) |
| | Create a FIFO special file relative to a directory descriptor.
|
| |
| int | stat (const char *ZRESTRICT path, struct stat *ZRESTRICT buf) |
| | Get status of a file by path (follows symbolic links).
|
| |
| mode_t | umask (mode_t cmask) |
| | Set the file mode creation mask.
|
| |
| int | utimensat (int fd, const char *path, const struct timespec times[2], int flag) |
| | Set file access and modification times relative to a directory descriptor.
|
| |
| int | access (const char *path, int amode) |
| | Determine accessibility of a file.
|
| |
| int | chdir (const char *path) |
| | Change the current working directory.
|
| |
| int | chown (const char *path, uid_t owner, gid_t group) |
| | Change the owner and group of a file.
|
| |
| int | faccessat (int fd, const char *path, int amode, int flag) |
| | Determine accessibility of a file relative to a directory descriptor.
|
| |
| int | fchdir (int fildes) |
| | Change the current working directory to the directory named by a file descriptor.
|
| |
| int | fchown (int fildes, uid_t owner, gid_t group) |
| | Change the owner and group of an open file.
|
| |
| int | fchownat (int fd, const char *path, uid_t owner, gid_t group, int flag) |
| | Change owner and group of a file relative to a directory descriptor.
|
| |
| long | fpathconf (int fildes, int name) |
| | Determine the value of a configurable limit for an open file.
|
| |
| char * | getcwd (char *buf, size_t size) |
| | Get the pathname of the current working directory.
|
| |
| int | lchown (const char *path, uid_t owner, gid_t group) |
| | Change the owner and group of a symbolic link.
|
| |
| int | link (const char *path1, const char *path2) |
| | Create a hard link.
|
| |
| int | linkat (int fd1, const char *path1, int fd2, const char *path2, int flag) |
| | Create a hard link relative to directory file descriptors.
|
| |
| long | pathconf (const char *path, int name) |
| | Determine the value of a configurable limit for a file path.
|
| |
| ssize_t | readlink (const char *restrict path, char *restrict buf, size_t bufsize) |
| | Read the value of a symbolic link.
|
| |
| ssize_t | readlinkat (int fd, const char *restrict path, char *restrict buf, size_t bufsize) |
| | Read the value of a symbolic link relative to a directory descriptor.
|
| |
| int | rmdir (const char *path) |
| | Remove an empty directory.
|
| |
| int | symlink (const char *path1, const char *path2) |
| | Create a symbolic link.
|
| |
| int | symlinkat (const char *path1, int fd, const char *path2) |
| | Create a symbolic link relative to a directory file descriptor.
|
| |
| int | truncate (const char *path, off_t length) |
| | Truncate a file on the filesystem to a specified length.
|
| |
| int | unlink (const char *path) |
| | Remove a directory entry.
|
| |
| int | unlinkat (int fd, const char *path, int flag) |
| | Remove a directory entry relative to a directory file descriptor.
|
| |
POSIX File System option group.