git.annexia.org
/
wrappi.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
a8e29d87e62875123ff18bbe302c950e3ab04952
[wrappi.git]
/
APIs
/
filesize.api
1
entry_point
2
off_t filesize (pathname path)
3
<<
4
struct stat buf;
5
6
if (stat (path, &buf) == -1) {
7
error_errno ("stat: %s", path);
8
return -1;
9
}
10
11
return buf.st_size;
12
>>
13
14
;;
15
16
(*
17
mknod_block
18
mkfifo
19
mknod_socket
20
*)