view src/lib/write-full.h @ 1000:0fbafade2d85 HEAD

If auth/login process died unexpectedly, the exit status or killing signal wasn't logged.
author Timo Sirainen <tss@iki.fi>
date Tue, 21 Jan 2003 09:58:49 +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