More implementation.
[wrappi.git] / APIs / filesize.api
index e57df8e..218a1da 100644 (file)
@@ -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