view src/lib/file-set-size.h @ 8590:b9faf4db2a9f HEAD

Updated copyright notices to include year 2009.
author Timo Sirainen <tss@iki.fi>
date Tue, 06 Jan 2009 09:25:38 -0500
parents e4eb71ae8e96
children
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