Add API: set-wrappid-path.
[wrappi.git] / APIs / filesize.api
index 89a4063..c7d3bbc 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  *)
 
+typedef uint64 filesize_t
+
 entry_point
-off_t filesize (pathname path)
+filesize_t filesize (pathname path)
 <<
   struct stat buf;
 
@@ -28,6 +30,7 @@ off_t filesize (pathname path)
 
   return buf.st_size;
 >>
+includes ["sys/types.h"; "sys/stat.h"; "unistd.h"]
 
 (*
 mknod_block