group
group__libshare__posix
Standard libc implementations of the core file and network I/O routines.

File and Network POSIX Compatilibity

function
int shopen
(const char *path, const char *mode, shfs_t *fs)
Open a sharefs file inode for stream-based I/O.
Param
fs
The sharefs partition or NULL for default.
function
int shclose
(int fd)
Close a previously opened stream.
function
int shfsetpos
(int fd, size_t pos)
Set the current seek offset in a sharefs file stream.
function
int shfgetpos
(int fd, size_t *pos)
Get the current seek offset of a sharefs file stream.
function
size_t shftell
(int fd)
Get the current seek offset of a sharefs file stream.
function
int shrewind
(int fd)
Set the current seek offset to the beginning of the stream.
function
ssize_t shfseek
(int fd, size_t offset, int whence)
Set the current seek offset in a sharefs file stream.
See
fseek()
function
int shread
(int fd, void *ptr, size_t size)
Read a segment of data from a stream.
function
int shwrite
(int fd, void *ptr, size_t size)
Write a segment of data to a stream.
function
int shflush
(int fd)
Flush any pending data to be written from a buffered stream to a file.
function
int shftruncate
(int fd, size_t len)
Truncate a data stream to a specified length.
function
int shfstat
(int fd, struct stat *buf)
Obtain file information using POSIX style "stat" struct.