unistd.h header reference
[C library module]
The source code of this header can be browsed online.
Members [link]
Types [link]
Functions [link]
- error_t access(const char *pathname, enum access_perm_e mode)
- error_t close(fd_t fd)
- fd_t creat(const char *pathname, mode_t mode)
- void libc_unixfd_init(void )
- off_t lseek(fd_t fildes, off_t offset, enum seek_whence_e whence)
- error_t lstat(const char *path, struct stat *buf)
- error_t mkdir(const char *pathname, mode_t mode)
- fd_t open(const char *pathname, enum open_flags_e flags, ...)
- ssize_t read(fd_t fd, void *buf, size_t count)
- error_t remove(const char *pathname)
- error_t sleep(uint_fast32_t usec)
- error_t stat(const char *path, struct stat *buf)
- error_t usleep(uint_fast32_t usec)
- ssize_t write(fd_t fd, const void *buf, size_t count)
Variables [link]
- struct vfs_node_s * libc_vfs_cwd
- struct vfs_node_s * libc_vfs_root
Members detail [link]
#define PATH_MAX [link]
#define UNISTD_H_ [link]
error_t access(const char *pathname, enum access_perm_e mode) [link]
This function is declared in unistd.h source file, line 122.
This is available when CONFIG_LIBC_VFS is defined.
enum access_perm_e [link]
typedef uint_fast32_t blkcnt_t [link]
typedef uint_fast16_t blksize_t [link]
This function is declared in unistd.h source file, line 90.
This is available when CONFIG_LIBC_UNIXFD is defined.
This function is declared in unistd.h source file, line 70.
This is available when CONFIG_LIBC_UNIXFD and CONFIG_LIBC_VFS are both defined.
typedef uint_fast8_t dev_t [link]
typedef int_fast8_t fd_t [link]
typedef uint_fast16_t gid_t [link]
typedef uint_fast32_t ino_t [link]
void libc_unixfd_init(void ) [link]
This function is declared in unistd.h source file, line 55.
Preprocessor condition: defined( CONFIG_LIBC_UNIXFD )
struct vfs_node_s * libc_vfs_cwd [link]
This variable is declared in unistd.h source file, line 43.
Preprocessor condition: defined( CONFIG_LIBC_VFS )
struct vfs_node_s * libc_vfs_root [link]
This variable is declared in unistd.h source file, line 42.
Preprocessor condition: defined( CONFIG_LIBC_VFS )
This function is declared in unistd.h source file, line 78.
This is available when CONFIG_LIBC_UNIXFD is defined.
This function is declared in unistd.h source file, line 110.
This is available when CONFIG_LIBC_VFS is defined.
This function is declared in unistd.h source file, line 132.
This is available when CONFIG_LIBC_VFS is defined.
typedef int16_t mode_t [link]
typedef uint_fast8_t nlink_t [link]
fd_t open(const char *pathname, enum open_flags_e flags, ...) [link]
This function is declared in unistd.h source file, line 74.
This is available when CONFIG_LIBC_UNIXFD and CONFIG_LIBC_VFS are both defined.
enum open_flags_e [link]
This enum is declared in unistd.h source file, line 59.
Identifier | Description |
---|---|
O_RDONLY | |
O_WRONLY | |
O_RDWR | |
O_CREAT | |
O_TRUNC | |
O_APPEND |
This function is declared in unistd.h source file, line 82.
This is available when CONFIG_LIBC_UNIXFD is defined.
error_t remove(const char *pathname) [link]
This function is declared in unistd.h source file, line 128.
This is available when CONFIG_LIBC_VFS is defined.
error_t sleep(uint_fast32_t usec) [link]
This function is declared in unistd.h source file, line 142.
This is available when CONFIG_LIBC_TIME is defined.
This function is declared in unistd.h source file, line 106.
This is available when CONFIG_LIBC_VFS is defined.
Alternate declarations with same identifier: [1], [2].
typedef uint_fast16_t uid_t [link]
error_t usleep(uint_fast32_t usec) [link]
This function is declared in unistd.h source file, line 138.
This is available when CONFIG_LIBC_TIME is defined.
This function is declared in unistd.h source file, line 86.
This is available when CONFIG_LIBC_UNIXFD is defined.