MCPcopy Create free account
hub / github.com/coreutils/coreutils / queue_directory

Function queue_directory

src/ls.c:2936–2945  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2934 COMMAND_LINE_ARG means this directory was mentioned on the command line. */
2935
2936static void
2937queue_directory (char const *name, char const *realname, bool command_line_arg)
2938{
2939 struct pending *new = xmalloc (sizeof *new);
2940 new->realname = realname ? xstrdup (realname) : NULL;
2941 new->name = name ? xstrdup (name) : NULL;
2942 new->command_line_arg = command_line_arg;
2943 new->next = pending_dirs;
2944 pending_dirs = new;
2945}
2946
2947/* Read directory NAME, and list the files in it.
2948 If REALNAME is nonzero, print its name instead of NAME;

Callers 2

mainFunction · 0.85
extract_dirs_from_filesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected