search for: cmd_prefix

Displaying 5 results from an estimated 5 matches for "cmd_prefix".

Did you mean: simd_prefix
2015 Feb 09
0
[PATCH 5/5] macosx/bsd: Alternatives for linux-specific commands
...point) } if (pid == 0) { /* Child - run /sbin/fuser. */ +#ifdef __linux__ execlp ("/sbin/fuser", "fuser", "-v", "-m", mountpoint, NULL); +#else + /* BSD and Mac OS X versions of fuser do not have the -v option */ + const char *cmd_prefix = "/bin/ps -p \"$(fuser -c "; + const char *cmd_suffix = " 2>/dev/null)\" -o user,pid,comm 2>/dev/null"; + char *cmd = malloc (strlen(cmd_prefix) + strlen(mountpoint) + strlen(cmd_suffix) + 1); + if (cmd) { + sprintf (cmd, "%s%s%s", cmd_pr...
2015 Feb 09
11
[PATCH 1/5] macosx: Add required third parameter for xdrproc_t callbacks
>From Apple's xdr.h: "If your code invokes an xdrproc_t callback, it must be modified to pass a third parameter, which may simply be zero." --- src/proto.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/proto.c b/src/proto.c index 92ae84d..57f4882 100644 --- a/src/proto.c +++ b/src/proto.c @@ -252,7 +252,12 @@ guestfs___send (guestfs_h *g, int proc_nr, *
2015 Feb 06
0
Re: Patchable build problems on OS X 10.10
..., NULL); #endif > @@ -334,7 +334,14 @@ do_fuser (const char *mountpoint) > } > > if (pid == 0) { /* Child - run /sbin/fuser. */ > - execlp ("/sbin/fuser", "fuser", "-v", "-m", mountpoint, NULL); > + const char *cmd_prefix = "/bin/ps -p \"$(fuser -c "; > + const char *cmd_suffix = " 2>/dev/null)\" -o user,pid,comm 2>/dev/null"; > + char *cmd = malloc (strlen(cmd_prefix) + strlen(mountpoint) + strlen(cmd_suffix) + 1); > + if (cmd) { > + sprintf (cmd, "...
2013 Oct 17
2
Re: Notes on getting libguestfs to work on Mac OS X
More complete documentation below. Rich. ---------------------------------------------------------------------- libguestfs on Mac OS X (tested with libguestfs-1.23.33): -------------------------------------------------------- prerequisites: -------------- - install osxfuse, download from: http://osxfuse.github.io - install some dependencies using macports: sudo port install qemu cdrtools pcre
2015 Feb 05
4
Patchable build problems on OS X 10.10
Hello, I'm attempting to create a Homebrew formula to get libguestfs to compile on Mac OS X. I've managed to achieve success with several monkey patches, but since Homebrew's policy is to contact maintainers about proper fixes in upstream, I would like to ask if there are any plans to fix these issues. I'm afraid I don't know C well enough to propose decent solutions myself.