summaryrefslogtreecommitdiffstats
path: root/sysif.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-01-23 06:20:47 -0800
committerKaz Kylheku <kaz@kylheku.com>2019-01-23 06:20:47 -0800
commit60e58b45da4926490e21cdfd7bfe9c8d48832f70 (patch)
tree558b6c709b8f0228e0cfb2c1f7a1aa231e9f0b54 /sysif.h
parentceac286861928128d066b31c43e32a6034df0afb (diff)
downloadtxr-60e58b45da4926490e21cdfd7bfe9c8d48832f70.tar.gz
txr-60e58b45da4926490e21cdfd7bfe9c8d48832f70.tar.bz2
txr-60e58b45da4926490e21cdfd7bfe9c8d48832f70.zip
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.
Diffstat (limited to 'sysif.h')
-rw-r--r--sysif.h2
1 files changed, 1 insertions, 1 deletions
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);