diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-04-15 06:39:40 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-04-15 06:39:40 -0700 |
commit | b1e62b22783b3fb3b32ccfae2f41c08433190538 (patch) | |
tree | ba194cf71b0b60336438baa5c4f0f3300fa3a31c | |
parent | 49d7f282199277cedfc90ab50d95efac6c8c87bd (diff) | |
download | txr-b1e62b22783b3fb3b32ccfae2f41c08433190538.tar.gz txr-b1e62b22783b3fb3b32ccfae2f41c08433190538.tar.bz2 txr-b1e62b22783b3fb3b32ccfae2f41c08433190538.zip |
Expose stat_to_struct outside of sysif.
* sysif.c (stat_to_struct): Change to external linkage.
* sysif.h (stat_to_struct): Declared.
-rw-r--r-- | sysif.c | 2 | ||||
-rw-r--r-- | sysif.h | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -608,7 +608,7 @@ static val stat_to_list(struct stat st) nao); } -static val stat_to_struct(struct stat st) +val stat_to_struct(struct stat st) { args_decl(args, ARGS_MIN); val strct = make_struct(stat_s, nil, args); @@ -43,6 +43,10 @@ typedef long off_t; #endif val getenv_wrap(val name); +#if HAVE_SYS_STAT +struct stat; +val stat_to_struct(struct stat st); +#endif val statp(val path); val statf(val path); off_t off_t_num(val num); |