diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2020-02-04 23:30:57 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2020-02-04 23:30:57 -0800 |
commit | 022ea8cfd80b97221abfbf2ba09110c0ecef3dc6 (patch) | |
tree | fb73620e086bd59134b41e9bc11d401df9219f4f /sysif.h | |
parent | c554db7ce82378612673e33d905b29f2d820a1a5 (diff) | |
download | txr-022ea8cfd80b97221abfbf2ba09110c0ecef3dc6.tar.gz txr-022ea8cfd80b97221abfbf2ba09110c0ecef3dc6.tar.bz2 txr-022ea8cfd80b97221abfbf2ba09110c0ecef3dc6.zip |
fstat: turn into true alias.
We can get rid of fstat_wrap entirely and make
the lstat and fstat function bindings point to the same
function.
* parser.c (load_rcfile): Call stat_wrap instead of
fstat_wrap.
* sysif.c (stat_wrap): Static function becomes extern. Useless
forward declaration removed.
(fstat_wrap): Static function removed.
(sysif_init): Bind fstat and lstat to the same function
object.
* sysif.h (fstat_wrap): Declaration removed.
(stat_wrap): Declaration added.
Diffstat (limited to 'sysif.h')
-rw-r--r-- | sysif.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -49,7 +49,7 @@ val num_time(time_t time); struct stat; val stat_to_struct(struct stat st, val path); #endif -val fstat_wrap(val path); +val stat_wrap(val path); val stdio_ftell(FILE *); int stdio_fseek(FILE *, val, int whence); #if HAVE_GETEUID |