write-full.h revision c27c55fe2c083c7573cde51e366ef689c1a69708
7f97ca94363c9e38fbbaaef204d6d01c54af6fc4Timo Sirainen/* Write data into file. Returns -1 if error occured, or 0 if all was ok.
181c1aff950e6f8e0556f8974e79d0747845ac0fTimo Sirainen If there's not enough space in device -1 with ENOSPC is returned, and
6dc4af35c045e10609b13fe80f9cf33f3a06c3ceTimo Sirainen it's unspecified how much data was actually written. */
8fcff4c5b52f24d9c681805fdf06b486f1d0fcbeTimo Sirainenint write_full(int fd, const void *data, size_t size);