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] 

Members detail [link] 

#define PATH_MAX [link] 

This macro is declared in unistd.h source file, line 45.

#define UNISTD_H_ [link] 

This macro is declared in unistd.h source file, line 23.

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] 

This enum is declared in unistd.h source file, line 113.

IdentifierDescription
R_OK
W_OK
X_OK
F_OK

typedef uint_fast32_t blkcnt_t [link] 

This typedef is declared in unistd.h source file, line 100.

typedef uint_fast16_t blksize_t [link] 

This typedef is declared in unistd.h source file, line 99.

error_t close(fd_t fd) [link] 

This function is declared in unistd.h source file, line 90.

This is available when CONFIG_LIBC_UNIXFD is defined.

fd_t creat(const char *pathname, mode_t mode) [link] 

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] 

This typedef is declared in unistd.h source file, line 94.

typedef int_fast8_t fd_t [link] 

This typedef is declared in unistd.h source file, line 48.

typedef uint_fast16_t gid_t [link] 

This typedef is declared in unistd.h source file, line 98.

typedef uint_fast32_t ino_t [link] 

This typedef is declared in unistd.h source file, line 95.

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 )

off_t lseek(fd_t fildes, off_t offset, enum seek_whence_e whence) [link] 

This function is declared in unistd.h source file, line 78.

This is available when CONFIG_LIBC_UNIXFD is defined.

error_t lstat(const char *path, struct stat *buf) [link] 

This function is declared in unistd.h source file, line 110.

This is available when CONFIG_LIBC_VFS is defined.

error_t mkdir(const char *pathname, mode_t mode) [link] 

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] 

This typedef is declared in unistd.h source file, line 49.

typedef uint_fast8_t nlink_t [link] 

This typedef is declared in unistd.h source file, line 96.

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.

IdentifierDescription
O_RDONLY
O_WRONLY
O_RDWR
O_CREAT
O_TRUNC
O_APPEND

ssize_t read(fd_t fd, void *buf, size_t count) [link] 

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.

error_t stat(const char *path, struct stat *buf) [link] 

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] 

This typedef is declared in unistd.h source file, line 97.

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.

ssize_t write(fd_t fd, const void *buf, size_t count) [link] 

This function is declared in unistd.h source file, line 86.

This is available when CONFIG_LIBC_UNIXFD is defined.

Valid XHTML 1.0 StrictGenerated by diaxen on Thu Aug 4 15:44:06 2022 using MkDoc