Quick file allocation

Ugen ugen at xonix.com
Thu Jul 24 14:06:56 PDT 2003


fd = open(name, O_WRONLY);
lseek(fd, size_in_bytes, SEEK_SET)
close(fd)
--Ugen

Rus Foster wrote:

>On Thu, 24 Jul 2003, Peter Elsner wrote:
>
>  
>
>>touch filename ???
>>
>>Peter
>>    
>>
>
>Hi,
>Not quite as I want to allocate space rather than just the file. Thanks
>anyway
>
>Rgds
>
>Rus
>
>  
>



More information about the freebsd-questions mailing list