view src/lib/file-set-size.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 cf4d065f2f85
children 22c81f884032
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. The file offset may be anywhere after this call.
   Returns -1 if failed, 0 if successful. */
int file_set_size(int fd, off_t size);

#endif