zpmod  b19981f
High-performance Zsh module for script optimization and filesystem helpers
zpmod_fs.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: MIT */
2 #pragma once
3 
32 /* Parameter order is (reporting name, output array name, input array name,
33  * follow-symlinks, fields) */
34 int zp_pathstat_core(char *nam, char *outname, char *inname, int follow,
35  char *fields);
36 
48 /* Parameter order is (reporting name, output array name, directory,
49  * include-dotfiles, only-dirs, only-files) */
50 int zp_dirlist_core(char *nam, char *outname, char *dir, int inc_all,
51  int only_dirs, int only_files);
52 
64 /* Parameter order is (reporting name, output var/array, path, use-mmap,
65  * split-mode, delimiter) */
66 int zp_readfile_core(char *nam, char *outname, char *path, int use_mmap,
67  int split, int delim);
68 
82 int zp_path_warmup_core(const char *nam, int quiet, int prune_missing,
83  int dry_run);
int zp_path_warmup_core(const char *nam, int quiet, int prune_missing, int dry_run)
Scan $PATH directories to warm filesystem caches and prepare command lookup.
Definition: fs.c:254
int zp_readfile_core(char *nam, char *outname, char *path, int use_mmap, int split, int delim)
Read a file into a scalar or split into an array by delimiter.
Definition: fs.c:444
int zp_dirlist_core(char *nam, char *outname, char *dir, int inc_all, int only_dirs, int only_files)
List directory entries into an output array with filters.
Definition: fs.c:382
int zp_pathstat_core(char *nam, char *outname, char *inname, int follow, char *fields)
Batch stat entries from an input array into an output array.
Definition: fs.c:36
char ** path