write-full.c revision 2d566ba9c304ffa14cd1f8f39e1d9fd432be9db5
/* Copyright (c) 2002-2003 Timo Sirainen */
#include "lib.h"
#include "write-full.h"
#include <unistd.h>
{
while (size > 0) {
if (ret < 0)
return -1;
if (ret == 0) {
/* nothing was written, only reason for this should
be out of disk space */
return -1;
}
}
return 0;
}
{
while (size > 0) {
if (ret < 0)
return -1;
if (ret == 0) {
/* nothing was written, only reason for this should
be out of disk space */
return -1;
}
}
return 0;
}