diff options
| author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2017-09-11 15:06:05 +0000 |
|---|---|---|
| committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2017-09-11 15:06:08 +0000 |
| commit | ed7497e3790b044ab680fcdcd9dc4034a73ead9a (patch) | |
| tree | 20016d13c27e44b4de7fcd166f61cfa440b63c60 /Src/utils.c | |
| parent | 41666: zpty compatibility for OpenBSD (diff) | |
| download | zsh-ed7497e3790b044ab680fcdcd9dc4034a73ead9a.tar zsh-ed7497e3790b044ab680fcdcd9dc4034a73ead9a.tar.gz zsh-ed7497e3790b044ab680fcdcd9dc4034a73ead9a.tar.bz2 zsh-ed7497e3790b044ab680fcdcd9dc4034a73ead9a.tar.lz zsh-ed7497e3790b044ab680fcdcd9dc4034a73ead9a.tar.xz zsh-ed7497e3790b044ab680fcdcd9dc4034a73ead9a.tar.zst zsh-ed7497e3790b044ab680fcdcd9dc4034a73ead9a.zip | |
unposted: internal: Document zreaddir().
Diffstat (limited to 'Src/utils.c')
| -rw-r--r-- | Src/utils.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Src/utils.c b/Src/utils.c index 5055d69fe..70aad396a 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -4947,6 +4947,16 @@ ztrsub(char const *t, char const *s) return l; } +/* + * Wrapper for readdir(). + * + * If ignoredots is true, skip the "." and ".." entries. + * + * When __APPLE__ is defined, recode dirent names from UTF-8-MAC to UTF-8. + * + * Return the dirent's name, metafied. + */ + /**/ mod_export char * zreaddir(DIR *dir, int ignoredots) |
