search for: str_grep

Displaying 11 results from an estimated 11 matches for "str_grep".

Did you mean: str_free
2014 Jan 19
1
[PATCH] daemon: add missing GUESTFSD_EXT_CMD usage
...rs->sysroot_etc_resolv_conf, NULL)); rs->mounted = true; diff --git a/daemon/debug.c b/daemon/debug.c index 9fe57fc..b5470d7 100644 --- a/daemon/debug.c +++ b/daemon/debug.c @@ -41,6 +41,7 @@ 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 no comprehensive documentation for this @@ -335,7 +336,7 @@ debug_binaries (const char *subcmd, size_t argc, char *const *const argv)...
2015 Nov 05
0
[PATCH 2/2] actions: refactor available & feature_available
...-- src/guestfs-internal.h | 10 +++++++ src/handle.c | 7 +++++ 6 files changed, 101 insertions(+), 56 deletions(-) diff --git a/daemon/available.c b/daemon/available.c index 6409b90..d50c737 100644 --- a/daemon/available.c +++ b/daemon/available.c @@ -33,53 +33,20 @@ GUESTFSD_EXT_CMD(str_grep, grep); GUESTFSD_EXT_CMD(str_modprobe, modprobe); -static int -available (char *const *groups, int error_on_unavailable) +int +do_internal_feature_available (const char *group) { - int av; - size_t i, j; - - for (i = 0; groups[i] != NULL; ++i) { - for (j = 0; optgroups[j].group != NULL; +...
2012 Aug 30
2
[PATCH v2] daemon: collect list of called external commands
...s on %s: %s", mount_tag, mountpoint, err); goto out; diff --git a/daemon/available.c b/daemon/available.c index 08e72f3..7bd8a3c 100644 --- a/daemon/available.c +++ b/daemon/available.c @@ -29,6 +29,9 @@ #include "actions.h" #include "optgroups.h" +GUESTFSD_EXT_CMD(str_grep, grep); +GUESTFSD_EXT_CMD(str_modprobe, modprobe); + int do_available (char *const *groups) { @@ -85,7 +88,7 @@ test_proc_filesystems (const char *filesystem) snprintf (regex, len, "^[[:space:]]*%s$", filesystem); - r = commandr (NULL, &err, "grep", regex, "/...
2012 Aug 30
1
[PATCH] collect list of called external commands
...%s on %s: %s", mount_tag, mountpoint, err); goto out; diff --git a/daemon/available.c b/daemon/available.c index 08e72f3..48e5eb5 100644 --- a/daemon/available.c +++ b/daemon/available.c @@ -29,6 +29,9 @@ #include "actions.h" #include "optgroups.h" +GUESTFS_EXT_CMD(str_grep, grep); +GUESTFS_EXT_CMD(str_modprobe, modprobe); + int do_available (char *const *groups) { @@ -85,7 +88,7 @@ test_proc_filesystems (const char *filesystem) snprintf (regex, len, "^[[:space:]]*%s$", filesystem); - r = commandr (NULL, &err, "grep", regex, "/p...
2017 Jul 27
0
[PATCH v2] daemon: Remove GUESTFSD_EXT_CMD.
...%s: %s", mount_tag, mountpoint, err); return -1; diff --git a/daemon/available.c b/daemon/available.c index 977c4dead..5ecb3f355 100644 --- a/daemon/available.c +++ b/daemon/available.c @@ -30,9 +30,6 @@ #include "actions.h" #include "optgroups.h" -GUESTFSD_EXT_CMD(str_grep, grep); -GUESTFSD_EXT_CMD(str_modprobe, modprobe); - int do_internal_feature_available (const char *group) { @@ -79,7 +76,7 @@ test_proc_filesystems (const char *filesystem) return -1; } - r = commandr (NULL, &err, str_grep, regex, "/proc/filesystems", NULL); + r = comm...
2017 Jul 24
0
[PATCH 2/2] daemon: Replace GUESTFSD_EXT_CMD with --print-external-commands.
...for the website. if INSTALL_DAEMON man_MANS = guestfsd.8 diff --git a/daemon/available.c b/daemon/available.c index 977c4dead..dfffe5da1 100644 --- a/daemon/available.c +++ b/daemon/available.c @@ -30,8 +30,7 @@ #include "actions.h" #include "optgroups.h" -GUESTFSD_EXT_CMD(str_grep, grep); -GUESTFSD_EXT_CMD(str_modprobe, modprobe); +DECLARE_EXTERNAL_COMMANDS ("grep", "modprobe") int do_internal_feature_available (const char *group) @@ -79,7 +78,7 @@ test_proc_filesystems (const char *filesystem) return -1; } - r = commandr (NULL, &err, s...
2015 Nov 05
4
[PATCH 1/2] actions: turn available & feature_available as non-daemon
Rename the current available and feature_available into internal daemon functions, and provide non-daemon functions wrapping them at library side. This will make it possible to e.g. add caching for them. Should be only refactoring, no actual behaviour change. --- daemon/available.c | 4 +- generator/actions.ml | 192 ++++++++++++++++++++++++++++----------------------- po/POTFILES |
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.
...regex = NULL; CLEANUP_FREE char *err = NULL; int r; - snprintf (regex, len, "^[[:space:]]*%s$", filesystem); + if (asprintf (&regex, "^[[:space:]]*%s$", filesystem) == -1) { + perror ("asprintf"); + return -1; + } r = commandr (NULL, &err, str_grep, regex, "/proc/filesystems", NULL); if (r == -1 || r >= 2) { diff --git a/daemon/base64.c b/daemon/base64.c index 35a5d2f..3f7a630 100644 --- a/daemon/base64.c +++ b/daemon/base64.c @@ -106,7 +106,13 @@ do_base64_out (const char *file) int r; FILE *fp; CLEANUP_FREE char *cm...