zpmod  b19981f
High-performance Zsh module for script optimization and filesystem helpers
fs_builtins.c File Reference

Builtins: zppathstat, zpdirlist, zpreadfile. More...

#include "zpmod.mdh"
#include "zpmod.pro"
#include "zpmod_emoji.h"
#include "zpmod_fs.h"
#include "zpmod_vendor_shims.h"
#include <stddef.h>
Include dependency graph for fs_builtins.c:

Go to the source code of this file.

Functions

int bin_zppathstat (char *nam, char **argv, Options ops, int func)
 zppathstat builtin entrypoint More...
 
int bin_zpdirlist (char *nam, char **argv, Options ops, int func)
 zpdirlist builtin entrypoint More...
 
int bin_zpreadfile (char *nam, char **argv, Options ops, int func)
 zpreadfile builtin entrypoint More...
 
struct builtin * zp_get_fs_builtins (size_t *count)
 

Variables

static struct builtin fs_builtins []
 

Detailed Description

Builtins: zppathstat, zpdirlist, zpreadfile.

Definition in file fs_builtins.c.

Function Documentation

◆ bin_zpdirlist()

int bin_zpdirlist ( char *  nam,
char **  argv,
Options  ops,
int  func 
)

zpdirlist builtin entrypoint

Definition at line 31 of file fs_builtins.c.

References zp_dirlist_core(), zp_icon(), and zwarnnam().

Here is the call graph for this function:

◆ bin_zppathstat()

int bin_zppathstat ( char *  nam,
char **  argv,
Options  ops,
int  func 
)

zppathstat builtin entrypoint

Definition at line 15 of file fs_builtins.c.

References zp_icon(), zp_pathstat_core(), and zwarnnam().

Here is the call graph for this function:

◆ bin_zpreadfile()

int bin_zpreadfile ( char *  nam,
char **  argv,
Options  ops,
int  func 
)

zpreadfile builtin entrypoint

Definition at line 45 of file fs_builtins.c.

References zp_icon(), zp_readfile_core(), and zwarnnam().

Here is the call graph for this function:

◆ zp_get_fs_builtins()

struct builtin* zp_get_fs_builtins ( size_t *  count)

Definition at line 99 of file fs_builtins.c.

References fs_builtins.

Variable Documentation

◆ fs_builtins

struct builtin fs_builtins[]
static
Initial value:
= {
BUILTIN("zppathstat", 0, bin_zppathstat, 2, 2, 0, "Lf:", NULL),
BUILTIN("zpdirlist", 0, bin_zpdirlist, 2, 2, 0, "adf", NULL),
BUILTIN("zpreadfile", 0, bin_zpreadfile, 2, 2, 0, "md:0", NULL),
}
int bin_zpdirlist(char *nam, char **argv, Options ops, int func)
zpdirlist builtin entrypoint
Definition: fs_builtins.c:31
int bin_zppathstat(char *nam, char **argv, Options ops, int func)
zppathstat builtin entrypoint
Definition: fs_builtins.c:15
int bin_zpreadfile(char *nam, char **argv, Options ops, int func)
zpreadfile builtin entrypoint
Definition: fs_builtins.c:45

Definition at line 45 of file fs_builtins.c.

Referenced by zp_get_fs_builtins().