HIPC  0.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
ioutils.h
Go to the documentation of this file.
1 #ifndef HIPC_POSIX_IOUTILS_H
2 #define HIPC_POSIX_IOUTILS_H
3 
4 #include <unistd.h>
5 
6 #include <stddef.h>
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12  extern int hipcPosixReadReady(int fd);
13  extern ssize_t hipcPosixReadExactly(const int fd, void *buf,
14  const size_t count);
15  extern ssize_t hipcPosixWriteExactly(const int fd, void const *buf,
16  const size_t count);
17 
18 #ifdef __cplusplus
19 }
20 #endif
21 #endif
ssize_t hipcPosixReadExactly(const int fd, void *buf, const size_t count)
Read count bytes from fd by using read(2).
Definition: posix_ioutils.c:41
int hipcPosixReadReady(int fd)
Check a file descriptor is ready to read by using select(2) and returns the result of select(2)...
Definition: posix_ioutils.c:17
ssize_t hipcPosixWriteExactly(const int fd, void const *buf, const size_t count)
Writes count bytes to fd by using write(2).
Definition: posix_ioutils.c:71