From 60e58b45da4926490e21cdfd7bfe9c8d48832f70 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 23 Jan 2019 06:20:47 -0800 Subject: sysif: remove low-level MPI code for off_t conversion. * sysif.c (off_t_num): Retarget to just use c_i32 or c_i64 from ctypes.c, depending on which of these types is the same width as off_t. (stdio_fseek): Pass identifying "self" string to off_t_num. Don't use off_t_num for fseek's offset argument which is of type long; for that we can use c_long from ctypes.c. * sysif.h (off_t_num): Declaration updated. --- sysif.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysif.h') diff --git a/sysif.h b/sysif.h index 3cbf0609..02a5a1da 100644 --- a/sysif.h +++ b/sysif.h @@ -56,7 +56,7 @@ val stat_to_struct(struct stat st, val path); #endif val statp(val path); val statf(val path); -off_t off_t_num(val num); +off_t off_t_num(val num, val self); val num_off_t(off_t offnum); val stdio_ftell(FILE *); val stdio_fseek(FILE *, val, int whence); -- cgit v1.2.3