µ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 struct 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)
 
class 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 159 of file file-system.cpp.

◆ mkdir()

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

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

◆ open()

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

Definition at line 61 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 384 of file file-system.cpp.

◆ rename()

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

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

◆ rmdir()

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

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

◆ socket()

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

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

◆ stat()

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

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

◆ statvfs()

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

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

◆ sync()

void os::posix::sync ( void  )

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

◆ truncate()

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

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

◆ unlink()

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

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

◆ utime()

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

Definition at line 322 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 78 of file io.cpp.