uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
unistd.h File Reference
#include <reent.h>
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Typedefs

typedef int32_t ssize_t
 
typedef int32_t off_t
 

Enumerations

enum  open_types_t {
  O_RDONLY = 0, O_WRONLY = 1, O_RDWR = 2, O_CREAT = 4,
  O_TRUNC = 8, O_APPEND = 16
}
 
enum  seek_wheels_t { SEEK_SET = 0, SEEK_CUR = 1, SEEK_END = 2 }
 

Functions

int open (const char *pathname, int flags)
 
int close (int fd)
 
ssize_t read (int fd, void *buf, size_t count)
 
ssize_t write (int fd, const void *buf, size_t count)
 
off_t lseek (int fd, off_t seek, int wheel)
 

Typedef Documentation

typedef int32_t off_t

Definition at line 9 of file unistd.h.

typedef int32_t ssize_t

Definition at line 8 of file unistd.h.

Enumeration Type Documentation

Enumerator
O_RDONLY 
O_WRONLY 
O_RDWR 
O_CREAT 
O_TRUNC 
O_APPEND 

Definition at line 11 of file unistd.h.

Enumerator
SEEK_SET 
SEEK_CUR 
SEEK_END 

Definition at line 20 of file unistd.h.

Function Documentation

int close ( int  fd)

Definition at line 5 of file close.c.

off_t lseek ( int  fd,
off_t  seek,
int  wheel 
)

Definition at line 5 of file lseek.c.

int open ( const char *  pathname,
int  flags 
)

Definition at line 7 of file open.c.

ssize_t read ( int  fd,
void *  buf,
size_t  count 
)

Definition at line 5 of file read.c.

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

Definition at line 5 of file write.c.