view src/lib/write-full.h @ 6410:e4eb71ae8e96 HEAD

Changed .h ifdef/defines to use <NAME>_H format.
author Timo Sirainen <tss@iki.fi>
date Sun, 16 Sep 2007 11:31:27 +0300
parents e2fe8222449d
children
line wrap: on
line source

#ifndef WRITE_FULL_H
#define WRITE_FULL_H

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

#endif