git://git.jankratochvil.net
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git]
/
lib
/
crtdll
/
io
/
chsize.c
1
/* Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details */
2
#include <crtdll/io.h>
3
4
int _chsize(int _fd, long size)
5
{
6
if (lseek(_fd, size, 0) == -1)
7
return -1;
8
if (_write(_fd, 0, 0) < 0)
9
return -1;
10
return 0;
11
}