git.annexia.org
/
wrappi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
More implementation.
[wrappi.git]
/
APIs
/
filesize.api
diff --git
a/APIs/filesize.api
b/APIs/filesize.api
index
e57df8e
..
218a1da
100644
(file)
--- a/
APIs/filesize.api
+++ b/
APIs/filesize.api
@@
-22,12
+22,13
@@
off_t filesize (pathname path)
struct stat buf;
if (stat (path, &buf) == -1) {
- error_errno ("stat: %s", path);
+
set_
error_errno ("stat: %s", path);
return -1;
}
return buf.st_size;
>>
+includes ["sys/types.h"; "sys/stat.h"; "unistd.h"]
(*
mknod_block