view src/lib/write-full.h @ 903:fd8888f6f037 HEAD

Naming style changes, finally got tired of most of the typedefs. Also the previous enum -> macro change reverted so that we don't use the highest bit anymore, that's incompatible with old indexes so they will be rebuilt.
author Timo Sirainen <tss@iki.fi>
date Sun, 05 Jan 2003 15:09:51 +0200
parents ca6967899c05
children 79790750c349
line wrap: on
line source

#ifndef __WRITE_FULL_H
#define __WRITE_FULL_H

/* Write data into file. Returns -1 if error occured, 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);

#endif