search for: str_ls

Displaying 10 results from an estimated 10 matches for "str_ls".

Did you mean: str_ln
2015 Mar 25
1
[PATCH] New API: ls_i
...frees */ } + +char * +do_ls_i (const char *dir) +{ + int r; + char *out; + CLEANUP_FREE char *err = NULL; + CLEANUP_FREE char *sdir = NULL; + + sdir = sysroot_path (dir); + if (!sdir) { + reply_with_perror ("malloc"); + return NULL; + } + + r = command (&out, &err, str_ls, "-i", sdir, NULL); + if (r == -1) { + reply_with_error ("%s", err); + free (out); + return NULL; + } + + return out; /* caller frees */ +} diff --git a/generator/actions.ml b/generator/actions.ml index bd654a3..edc4818 100644 --- a/generator/actions.ml +++ b/gener...
2012 Aug 30
2
[PATCH v2] daemon: collect list of called external commands
...); diff --git a/daemon/debug.c b/daemon/debug.c index 97d21f0..39bda48 100644 --- a/daemon/debug.c +++ b/daemon/debug.c @@ -32,6 +32,15 @@ #include "daemon.h" #include "actions.h" +GUESTFSD_EXT_CMD(str_printenv, printenv); +GUESTFSD_EXT_CMD(str_ldd, ldd); +GUESTFSD_EXT_CMD(str_ls, ls); +GUESTFSD_EXT_CMD(str_find, find); +GUESTFSD_EXT_CMD(str_xargs, xargs); +GUESTFSD_EXT_CMD(str_file, file); +GUESTFSD_EXT_CMD(str_grep, grep); +GUESTFSD_EXT_CMD(str_gawk, gawk); + /* This command exposes debugging information, internals and * status. There is no comprehensive documentation...
2012 Aug 30
1
[PATCH] collect list of called external commands
...arg); diff --git a/daemon/debug.c b/daemon/debug.c index 97d21f0..db1a8cc 100644 --- a/daemon/debug.c +++ b/daemon/debug.c @@ -32,6 +32,15 @@ #include "daemon.h" #include "actions.h" +GUESTFS_EXT_CMD(str_printenv, printenv); +GUESTFS_EXT_CMD(str_ldd, ldd); +GUESTFS_EXT_CMD(str_ls, ls); +GUESTFS_EXT_CMD(str_find, find); +GUESTFS_EXT_CMD(str_xargs, xargs); +GUESTFS_EXT_CMD(str_file, file); +GUESTFS_EXT_CMD(str_grep, grep); +GUESTFS_EXT_CMD(str_gawk, gawk); + /* This command exposes debugging information, internals and * status. There is no comprehensive documentation for...
2017 Jul 27
0
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
...diff --git a/daemon/debug.c b/daemon/debug.c index e2d43a7ca..9e9100c4f 100644 --- a/daemon/debug.c +++ b/daemon/debug.c @@ -33,16 +33,6 @@ #include "daemon.h" #include "actions.h" -GUESTFSD_EXT_CMD(str_printenv, printenv); -GUESTFSD_EXT_CMD(str_ldd, ldd); -GUESTFSD_EXT_CMD(str_ls, ls); -GUESTFSD_EXT_CMD(str_find, find); -GUESTFSD_EXT_CMD(str_xargs, xargs); -GUESTFSD_EXT_CMD(str_file, file); -GUESTFSD_EXT_CMD(str_grep, grep); -GUESTFSD_EXT_CMD(str_gawk, gawk); -GUESTFSD_EXT_CMD(str_sh, sh); - /* This command exposes debugging information, internals and * status. There is...
2017 Jul 24
0
[PATCH 2/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
...diff --git a/daemon/debug.c b/daemon/debug.c index e2d43a7ca..ddda03463 100644 --- a/daemon/debug.c +++ b/daemon/debug.c @@ -33,15 +33,8 @@ #include "daemon.h" #include "actions.h" -GUESTFSD_EXT_CMD(str_printenv, printenv); -GUESTFSD_EXT_CMD(str_ldd, ldd); -GUESTFSD_EXT_CMD(str_ls, ls); -GUESTFSD_EXT_CMD(str_find, find); -GUESTFSD_EXT_CMD(str_xargs, xargs); -GUESTFSD_EXT_CMD(str_file, file); -GUESTFSD_EXT_CMD(str_grep, grep); -GUESTFSD_EXT_CMD(str_gawk, gawk); -GUESTFSD_EXT_CMD(str_sh, sh); +DECLARE_EXTERNAL_COMMANDS ("printenv", "ldd", "ls", &q...
2017 Jul 27
3
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
This is a simpler patch that removes GUESTFSD_EXT_CMD completely.
2017 Jul 24
6
[PATCH 0/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
Replace GUESTFSD_EXT_CMD with a command line option ‘./guestfsd --print-external-commands’
2016 Mar 06
8
[PATCH 0/5] Use less stack.
Various changes/fixes to use smaller stack frames. Rich.
2016 Mar 07
2
[PATCH v2] Use less stack.
...argv); - const char *cargv[len+3]; + CLEANUP_FREE const char **cargv; size_t i; int r; char *out; CLEANUP_FREE char *err = NULL; + cargv = malloc (sizeof (char *) * (len+3)); + if (cargv == NULL) { + reply_with_perror ("malloc"); + return NULL; + } + cargv[0] = str_ls; cargv[1] = "-a"; for (i = 0; i < len; ++i) @@ -464,12 +470,18 @@ static char * debug_ll (const char *subcmd, size_t argc, char *const *const argv) { size_t len = count_strings (argv); - const char *cargv[len+3]; + CLEANUP_FREE const char **cargv = NULL; size_t i; in...
2013 Aug 24
67
[PATCH 00/67] Proposed patches for libguestfs 1.22.6.
In the kernel and qemu communities it is routine for patches that will be backported to stable branches to be posted for review. I'm proposing we do the same for libguestfs stable branches. All of the attached have been tested with 'make check-release'. Rich.