Zth (libzth)
Loading...
Searching...
No Matches
io.h File Reference
#include <libzth/macros.h>
#include <libzth/poller.h>
#include <unistd.h>

Go to the source code of this file.

Namespaces

namespace  zth
 
namespace  zth::io
 

Functions

ssize_t zth::io::read (int fd, void *buf, size_t count)
 Like normal read(), but forwards the poll() to the zth::Waiter in case it would block.
 
ssize_t zth::io::write (int fd, void const *buf, size_t count)
 Like normal write(), but forwards the poll() to the zth::Waiter in case it would block.
 
ssize_t zth_read (int fd, void *buf, size_t count)
 Like normal read(), but forwards the poll() to the zth::Waiter in case it would block.
 
ssize_t zth_write (int fd, void const *buf, size_t count)
 Like normal write(), but forwards the poll() to the zth::Waiter in case it would block.