+#undef G_DISABLE_ASSERT
+#undef G_LOG_DOMAIN
+
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
int
read_all (int fd, char *buf, int len)
{
- int bytes_read = 0;
- int count;
+ size_t bytes_read = 0;
+ ssize_t count;
while (bytes_read < len)
{
int
write_all (int fd, char *buf, int len)
{
- int bytes_written = 0;
- int count;
+ size_t bytes_written = 0;
+ ssize_t count;
while (bytes_written < len)
{