view src/lib/file-set-size.h @ 221:ed0d5b17c7a4 HEAD

Added extra functions for easier printing of error messages. Moved file_set_size() to generic function in lib. If there's no space to build hash file, it builds itself in anon-mmaped memory and stays there.
author Timo Sirainen <tss@iki.fi>
date Fri, 13 Sep 2002 03:01:23 +0300
parents
children cf4d065f2f85
line wrap: on
line source

#ifndef __FILE_SET_SIZE_H
#define __FILE_SET_SIZE_H

/* Shrink/grow file. If file is grown, the new data is guaranteed to
   be zeros. Returns -1 if failed, 0 if successful. */
int file_set_size(int fd, off_t size);

#endif