Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 13 lines (12 sloc) 0.307 kb
1 2 3 4 5 6 7 8 9 10 11 12 13
#define _XOPEN_SOURCE 600
#include <stdint.h>
#include <fcntl.h>
#include "dat.h"

/* Allocate disk space.
* Expects fd's offset to be 0; may also reset fd's offset to 0.
* Returns 0 on success, and a positive errno otherwise. */
int
rawfalloc(int fd, int len)
{
    return posix_fallocate(fd, 0, len);
}
Something went wrong with that request. Please try again.