diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2020-07-20 07:13:40 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2020-07-20 07:13:40 -0700 |
commit | d9afdbb32c0dd0b693e01b4204176d333805571b (patch) | |
tree | bb515cc1144e5de5127f332ac7f5a4a811192fa0 /sysif.h | |
parent | 9cd58d83904fc531f214c3bc2f506c80d816f415 (diff) | |
download | txr-d9afdbb32c0dd0b693e01b4204176d333805571b.tar.gz txr-d9afdbb32c0dd0b693e01b4204176d333805571b.tar.bz2 txr-d9afdbb32c0dd0b693e01b4204176d333805571b.zip |
stat, lstat and dirstat now take struct param.
* ftw.c (ftw_callback): Pass nil to new parameter of
stat_to_struct, to have a new stat struct allocated as before.
* sysif.c (stat_to_struct, stat_impl, stat_wrap, lstat_wrap
dirstat): New optional parameter that lets caller specify an
existing struct object to fill.
(sysif_init): Adjust registrations of stat, fstat, lstat and
dirstat for new optional parameter.
* sysif.h (stat_to_struct, stat_wrap): Declarations updated.
* txr.1: Documented.
Diffstat (limited to 'sysif.h')
-rw-r--r-- | sysif.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -48,10 +48,10 @@ time_t c_time(val time, val self); val num_time(time_t time); #if HAVE_SYS_STAT struct stat; -val stat_to_struct(struct stat st, val path); +val stat_to_struct(struct stat st, val path, val stat_opt); val umask_wrap(val mask); #endif -val stat_wrap(val path); +val stat_wrap(val path, val stat_opt); val stdio_ftell(FILE *); int stdio_fseek(FILE *, val, int whence); #if HAVE_GETEUID |