µOS++ IIIe Reference 7.0.0
The third edition of µOS++, a POSIX inspired open source framework, written in C++
Loading...
Searching...
No Matches
µOS++ POSIX I/O C API

µOS++ POSIX I/O C API summary page. More...

int accept (int socket, struct sockaddr *address, socklen_t *address_len)
 
int bind (int socket, const struct sockaddr *address, socklen_t address_len)
 
int chdir (const char *path)
 
int chmod (const char *path, mode_t mode)
 
int chown (const char *path, uid_t owner, gid_t group)
 
clock_t clock (void)
 
int close (int fildes)
 
int closedir (DIR *dirp)
 
int connect (int socket, const struct sockaddr *address, socklen_t address_len)
 
int execve (const char *path, char *const argv[], char *const envp[])
 
int fcntl (int fildes, int cmd,...)
 
pid_t fork (void)
 
int fstat (int fildes, struct stat *buf)
 
int fstatvfs (int fildes, struct statvfs *buf)
 
int ftruncate (int fildes, off_t length)
 
int fsync (int fildes)
 
char * getcwd (char *buf, size_t size)
 
int getpeername (int socket, struct sockaddr *address, socklen_t *address_len)
 
pid_t getpid (void)
 
int getsockname (int socket, struct sockaddr *address, socklen_t *address_len)
 
int getsockopt (int socket, int level, int option_name, void *option_value, socklen_t *option_len)
 
int gettimeofday (struct timeval *ptimeval, void *ptimezone)
 
int ioctl (int fildes, int request,...)
 
int isatty (int fildes)
 
int kill (pid_t pid, int sig)
 
int link (const char *existing, const char *_new)
 
int listen (int socket, int backlog)
 
off_t lseek (int fildes, off_t offset, int whence)
 
int mkdir (const char *path, mode_t mode)
 
int open (const char *path, int oflag,...)
 
DIRopendir (const char *dirname)
 
int raise (int sig)
 
ssize_t read (int fildes, void *buf, size_t nbyte)
 
struct direntreaddir (DIR *dirp)
 
int readdir_r (DIR *dirp, struct dirent *entry, struct dirent **result)
 
ssize_t readlink (const char *path, char *buf, size_t bufsize)
 
ssize_t recv (int socket, void *buffer, size_t length, int flags)
 
ssize_t recvfrom (int socket, void *buffer, size_t length, int flags, struct sockaddr *address, socklen_t *address_len)
 
ssize_t recvmsg (int socket, struct msghdr *message, int flags)
 
int rename (const char *oldfn, const char *newfn)
 
void rewinddir (DIR *dirp)
 
int rmdir (const char *path)
 
int select (int nfds, fd_set *readfds, fd_set *writefds, fd_set *errorfds, struct timeval *timeout)
 
ssize_t send (int socket, const void *buffer, size_t length, int flags)
 
ssize_t sendmsg (int socket, const struct msghdr *message, int flags)
 
ssize_t sendto (int socket, const void *message, size_t length, int flags, const struct sockaddr *dest_addr, socklen_t dest_len)
 
int setsockopt (int socket, int level, int option_name, const void *option_value, socklen_t option_len)
 
int shutdown (int socket, int how)
 
int sockatmark (int socket)
 
int socket (int domain, int type, int protocol)
 
int stat (const char *path, struct stat *buf)
 
int statvfs (const char *path, struct statvfs *buf)
 
void sync (void)
 
int symlink (const char *existing, const char *_new)
 
int system (const char *command)
 
int tcdrain (int fildes)
 
int tcflush (int fildes, int queue_selector)
 
int tcgetattr (int fildes, struct termios *termios_p)
 
int tcsendbreak (int fildes, int duration)
 
int tcsetattr (int fildes, int optional_actions, const struct termios *termios_p)
 
clock_t times (struct tms *buf)
 
int truncate (const char *path, off_t length)
 
int unlink (const char *name)
 
int utime (const char *path, const struct utimbuf *times)
 
pid_t wait (int *stat_loc)
 
ssize_t write (int fildes, const void *buf, size_t nbyte)
 
ssize_t writev (int fildes, const struct iovec *iov, int iovcnt)
 

Detailed Description

µOS++ POSIX I/O C API summary page.

This page groups the standard POSIX I/O functions.

TODO: add content

Function Documentation

◆ accept()

int accept ( int  socket,
struct sockaddr address,
socklen_t address_len 
)

◆ bind()

int bind ( int  socket,
const struct sockaddr address,
socklen_t  address_len 
)

◆ chdir()

int chdir ( const char *  path)

◆ chmod()

int chmod ( const char *  path,
mode_t  mode 
)

◆ chown()

int chown ( const char *  path,
uid_t  owner,
gid_t  group 
)

◆ clock()

clock_t clock ( void  )

◆ close()

int close ( int  fildes)

◆ closedir()

int closedir ( DIR dirp)

◆ connect()

int connect ( int  socket,
const struct sockaddr address,
socklen_t  address_len 
)

◆ execve()

int execve ( const char *  path,
char *const  argv[],
char *const  envp[] 
)

◆ fcntl()

int fcntl ( int  fildes,
int  cmd,
  ... 
)

◆ fork()

pid_t fork ( void  )

◆ fstat()

int fstat ( int  fildes,
struct stat buf 
)

◆ fstatvfs()

int fstatvfs ( int  fildes,
struct statvfs buf 
)

◆ fsync()

int fsync ( int  fildes)

◆ ftruncate()

int ftruncate ( int  fildes,
off_t  length 
)

◆ getcwd()

char * getcwd ( char *  buf,
size_t  size 
)

◆ getpeername()

int getpeername ( int  socket,
struct sockaddr address,
socklen_t address_len 
)

◆ getpid()

pid_t getpid ( void  )

◆ getsockname()

int getsockname ( int  socket,
struct sockaddr address,
socklen_t address_len 
)

◆ getsockopt()

int getsockopt ( int  socket,
int  level,
int  option_name,
void *  option_value,
socklen_t option_len 
)

◆ gettimeofday()

int gettimeofday ( struct timeval *  ptimeval,
void *  ptimezone 
)

◆ ioctl()

int ioctl ( int  fildes,
int  request,
  ... 
)

◆ isatty()

int isatty ( int  fildes)

◆ kill()

int kill ( pid_t  pid,
int  sig 
)

◆ link()

int link ( const char *  existing,
const char *  _new 
)

◆ listen()

int listen ( int  socket,
int  backlog 
)

◆ lseek()

off_t lseek ( int  fildes,
off_t  offset,
int  whence 
)

◆ mkdir()

int mkdir ( const char *  path,
mode_t  mode 
)

◆ open()

int open ( const char *  path,
int  oflag,
  ... 
)

◆ opendir()

DIR * opendir ( const char *  dirname)

◆ raise()

int raise ( int  sig)

◆ read()

ssize_t read ( int  fildes,
void *  buf,
size_t  nbyte 
)

◆ readdir()

struct dirent * readdir ( DIR dirp)

◆ readdir_r()

int readdir_r ( DIR dirp,
struct dirent entry,
struct dirent **  result 
)

◆ readlink()

ssize_t readlink ( const char *  path,
char *  buf,
size_t  bufsize 
)

◆ recv()

ssize_t recv ( int  socket,
void *  buffer,
size_t  length,
int  flags 
)

◆ recvfrom()

ssize_t recvfrom ( int  socket,
void *  buffer,
size_t  length,
int  flags,
struct sockaddr address,
socklen_t address_len 
)

◆ recvmsg()

ssize_t recvmsg ( int  socket,
struct msghdr *  message,
int  flags 
)

◆ rename()

int rename ( const char *  oldfn,
const char *  newfn 
)

◆ rewinddir()

void rewinddir ( DIR dirp)

◆ rmdir()

int rmdir ( const char *  path)

◆ select()

int select ( int  nfds,
fd_set *  readfds,
fd_set *  writefds,
fd_set *  errorfds,
struct timeval *  timeout 
)

◆ send()

ssize_t send ( int  socket,
const void *  buffer,
size_t  length,
int  flags 
)

◆ sendmsg()

ssize_t sendmsg ( int  socket,
const struct msghdr *  message,
int  flags 
)

◆ sendto()

ssize_t sendto ( int  socket,
const void *  message,
size_t  length,
int  flags,
const struct sockaddr dest_addr,
socklen_t  dest_len 
)

◆ setsockopt()

int setsockopt ( int  socket,
int  level,
int  option_name,
const void *  option_value,
socklen_t  option_len 
)

◆ shutdown()

int shutdown ( int  socket,
int  how 
)

◆ sockatmark()

int sockatmark ( int  socket)

◆ socket()

int socket ( int  domain,
int  type,
int  protocol 
)

◆ stat()

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

◆ statvfs()

int statvfs ( const char *  path,
struct statvfs buf 
)

◆ symlink()

int symlink ( const char *  existing,
const char *  _new 
)

◆ sync()

void sync ( void  )

◆ system()

int system ( const char *  command)

◆ tcdrain()

int tcdrain ( int  fildes)

◆ tcflush()

int tcflush ( int  fildes,
int  queue_selector 
)

◆ tcgetattr()

int tcgetattr ( int  fildes,
struct termios termios_p 
)

◆ tcsendbreak()

int tcsendbreak ( int  fildes,
int  duration 
)

◆ tcsetattr()

int tcsetattr ( int  fildes,
int  optional_actions,
const struct termios termios_p 
)

◆ times()

clock_t times ( struct tms *  buf)

◆ truncate()

int truncate ( const char *  path,
off_t  length 
)

◆ unlink()

int unlink ( const char *  name)

◆ utime()

int utime ( const char *  path,
const struct utimbuf *  times 
)

◆ wait()

pid_t wait ( int *  stat_loc)

◆ write()

ssize_t write ( int  fildes,
const void *  buf,
size_t  nbyte 
)

◆ writev()

ssize_t writev ( int  fildes,
const struct iovec iov,
int  iovcnt 
)