summaryrefslogtreecommitdiffstats
path: root/parser.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-07-09 20:41:52 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-07-09 20:41:52 -0700
commit812e63ca8f42637f6a856e66f57678cbb0472821 (patch)
tree26209ed43872cafcf598cd7f62f50f298e50c1a7 /parser.c
parent1d8d2214495fa29931948e08041cc8a1159fdd19 (diff)
downloadtxr-812e63ca8f42637f6a856e66f57678cbb0472821.tar.gz
txr-812e63ca8f42637f6a856e66f57678cbb0472821.tar.bz2
txr-812e63ca8f42637f6a856e66f57678cbb0472821.zip
Add dirstat function.
This function back-fills the missing d-type information in a dirent on platforms that don't provide d_type in the native dirent. * sysif.c (DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK): Define all these preprocessor symbols to their Linux values on platforms where DT_DIR is not defined. (DT_UNKNOWN): Make sure this symbol is #undef-d if DT_DIR is not defined, so the corresponding dt-unknown variable does not exist. (dirstat): New static function. (sysif_init): Register dirstat intrinsic. Register dt-fifo and the rest unconditionally now. Changing their order to increasing numeric. * txr.1: Documented.
Diffstat (limited to 'parser.c')
0 files changed, 0 insertions, 0 deletions