diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-01-23 06:20:47 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-01-23 06:20:47 -0800 |
commit | 60e58b45da4926490e21cdfd7bfe9c8d48832f70 (patch) | |
tree | 558b6c709b8f0228e0cfb2c1f7a1aa231e9f0b54 /sysif.h | |
parent | ceac286861928128d066b31c43e32a6034df0afb (diff) | |
download | txr-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |