unistd.h header reference
[C library module]

The source code of this header can be browsed online.

Members  

Types  

Functions  

  • 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  

Members detail  

#define PATH_MAX  

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

#define UNISTD_H_  

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

error_t access(const char *pathname, enum access_perm_e mode)  

This is available when CONFIG_LIBC_VFS is defined.

enum access_perm_e  

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  

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

typedef uint_fast16_t blksize_t  

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

error_t close(fd_t fd)  

This is available when CONFIG_LIBC_UNIXFD is defined.

fd_t creat(const char *pathname, mode_t mode)  

This is available when CONFIG_LIBC_UNIXFD and CONFIG_LIBC_VFS are both defined.

typedef uint_fast8_t dev_t  

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

typedef int_fast8_t fd_t  

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

typedef uint_fast16_t gid_t  

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

typedef uint_fast32_t ino_t  

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

void libc_unixfd_init(void )  

struct vfs_node_s * libc_vfs_cwd  

This variable is declared in unistd.h source file, line 43.

Preprocessor condition: defined( CONFIG_LIBC_VFS )

struct vfs_node_s * libc_vfs_root  

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)  

This is available when CONFIG_LIBC_UNIXFD is defined.

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

This is available when CONFIG_LIBC_VFS is defined.

error_t mkdir(const char *pathname, mode_t mode)  

This is available when CONFIG_LIBC_VFS is defined.

typedef int16_t mode_t  

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

typedef uint_fast8_t nlink_t  

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

fd_t open(const char *pathname, enum open_flags_e flags, ...)  

This is available when CONFIG_LIBC_UNIXFD and CONFIG_LIBC_VFS are both defined.

enum open_flags_e  

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)  

This is available when CONFIG_LIBC_UNIXFD is defined.

error_t remove(const char *pathname)  

This is available when CONFIG_LIBC_VFS is defined.

error_t sleep(uint_fast32_t usec)  

This is available when CONFIG_LIBC_TIME is defined.

error_t stat(const char *path, struct stat *buf)  

This is available when CONFIG_LIBC_VFS is defined.

Alternate declarations with same identifier: [1], [2].

typedef uint_fast16_t uid_t  

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

error_t usleep(uint_fast32_t usec)  

This is available when CONFIG_LIBC_TIME is defined.

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

This is available when CONFIG_LIBC_UNIXFD is defined.

Valid XHTML 1.0 StrictGenerated by diaxen on Wed Oct 17 21:18:39 2018 using MkDoc