137ea7ca34005345aa2304a940149b7f3774d727Timo Sirainen/* Write data into file. Returns -1 if error occurred, or 0 if all was ok.
6141d8c6260c3dfaeb9dd4ed09197e4122fd017eTimo Sirainen If there's not enough space in device, -1 with ENOSPC is returned, and
c27c55fe2c083c7573cde51e366ef689c1a69708Timo Sirainen it's unspecified how much data was actually written. */
c27c55fe2c083c7573cde51e366ef689c1a69708Timo Sirainenint write_full(int fd, const void *data, size_t size);
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenint pwrite_full(int fd, const void *data, size_t size, off_t offset);