µ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++ functions. More...

int os::posix::mkdir (const char *path, mode_t mode)
 
int os::posix::rmdir (const char *path)
 
void os::posix::sync (void)
 
int os::posix::chmod (const char *path, mode_t mode)
 
int os::posix::stat (const char *path, struct stat *buf)
 
int os::posix::truncate (const char *path, off_t length)
 
int os::posix::rename (const char *existing, const char *_new)
 
int os::posix::unlink (const char *path)
 
int os::posix::utime (const char *path, const utimbuf *times)
 
int os::posix::statvfs (const char *path, struct statvfs *buf)
 
directoryos::posix::opendir (const char *dirname)
 Open directory.
 
ioos::posix::open (const char *path, int oflag,...)
 
ioos::posix::vopen (const char *path, int oflag, std::va_list args)
 
socketos::posix::socket (int domain, int type, int protocol)
 

Detailed Description

µOS++ POSIX I/O C++ functions.

This page groups the functions providing support for standard POSIX I/O operations.

TODO: add content

Function Documentation

◆ chmod()

int os::posix::chmod ( const char *  path,
mode_t  mode 
)

Definition at line 156 of file file-system.cpp.

◆ mkdir()

int os::posix::mkdir ( const char *  path,
mode_t  mode 
)

Definition at line 63 of file file-system.cpp.

◆ open()

io * os::posix::open ( const char *  path,
int  oflag,
  ... 
)

Definition at line 50 of file io.cpp.

◆ opendir()

directory * os::posix::opendir ( const char *  dirname)

Open directory.

Parameters
dirname[in] Directory name.
Returns
Pointer to directory object.

Definition at line 381 of file file-system.cpp.

◆ rename()

int os::posix::rename ( const char *  existing,
const char *  _new 
)

Definition at line 255 of file file-system.cpp.

◆ rmdir()

int os::posix::rmdir ( const char *  path)

Definition at line 95 of file file-system.cpp.

◆ socket()

class socket * os::posix::socket ( int  domain,
int  type,
int  protocol 
)

Definition at line 63 of file net-stack.cpp.

◆ stat()

int os::posix::stat ( const char *  path,
struct stat *  buf 
)

Definition at line 187 of file file-system.cpp.

◆ statvfs()

int os::posix::statvfs ( const char *  path,
struct statvfs buf 
)

Definition at line 350 of file file-system.cpp.

◆ sync()

void os::posix::sync ( void  )

Definition at line 127 of file file-system.cpp.

◆ truncate()

int os::posix::truncate ( const char *  path,
off_t  length 
)

Definition at line 218 of file file-system.cpp.

◆ unlink()

int os::posix::unlink ( const char *  path)

Definition at line 288 of file file-system.cpp.

◆ utime()

int os::posix::utime ( const char *  path,
const utimbuf *  times 
)

Definition at line 319 of file file-system.cpp.

◆ vopen()

io * os::posix::vopen ( const char *  path,
int  oflag,
std::va_list  args 
)

The actual open workhorse. Using the path, try to identify the io object, then call the implementation. If successful, allocate a new POSIX file descriptor, to be used by C functions.

Definition at line 67 of file io.cpp.