Displaying 10 results from an estimated 10 matches for "test_fp".
Did you mean:
test_fpu
2016 Jan 29
0
[PATCH 6/6] launch: avoid too long paths for sockets
...ackend (const char *name, const struct backend_ops *);
extern int guestfs_int_set_backend (guestfs_h *g, const char *method);
diff --git a/src/handle.c b/src/handle.c
index 947818c..076e3fd 100644
--- a/src/handle.c
+++ b/src/handle.c
@@ -347,8 +347,9 @@ guestfs_close (guestfs_h *g)
if (g->test_fp != NULL)
fclose (g->test_fp);
- /* Remove temporary directory. */
+ /* Remove temporary directories. */
guestfs_int_remove_tmpdir (g);
+ guestfs_int_remove_sockdir (g);
/* Mark the handle as dead and then free up all memory. */
g->state = NO_HANDLE;
@@ -380,6 +381,7 @@ gu...
2016 Feb 02
0
[PATCH 3/3] New API: get-sockdir
...src/handle.c
@@ -273,6 +273,10 @@ parse_environment (guestfs_h *g,
return -1;
}
+ str = do_getenv (data, "XDG_RUNTIME_DIR");
+ if (guestfs_int_set_env_runtimedir (g, str) == -1)
+ return -1;
+
return 0;
}
@@ -347,8 +351,9 @@ guestfs_close (guestfs_h *g)
if (g->test_fp != NULL)
fclose (g->test_fp);
- /* Remove temporary directory. */
+ /* Remove temporary directories. */
guestfs_int_remove_tmpdir (g);
+ guestfs_int_remove_sockdir (g);
/* Mark the handle as dead and then free up all memory. */
g->state = NO_HANDLE;
@@ -377,7 +382,9 @@ gu...
2016 Feb 03
0
[PATCH v2 2/2] New API: get-sockdir
...src/handle.c
@@ -273,6 +273,10 @@ parse_environment (guestfs_h *g,
return -1;
}
+ str = do_getenv (data, "XDG_RUNTIME_DIR");
+ if (guestfs_int_set_env_runtimedir (g, str) == -1)
+ return -1;
+
return 0;
}
@@ -347,8 +351,9 @@ guestfs_close (guestfs_h *g)
if (g->test_fp != NULL)
fclose (g->test_fp);
- /* Remove temporary directory. */
+ /* Remove temporary directories. */
guestfs_int_remove_tmpdir (g);
+ guestfs_int_remove_sockdir (g);
/* Mark the handle as dead and then free up all memory. */
g->state = NO_HANDLE;
@@ -377,7 +382,9 @@ gu...
2016 Jan 29
7
[PATCH 1/6] launch: unix: check for length of sockets
Error out early if the path to the socket will not fit into
sockaddr_un::sun_path, as we will not be able to connect to it.
---
src/launch-unix.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/launch-unix.c b/src/launch-unix.c
index 740c554..973e14b 100644
--- a/src/launch-unix.c
+++ b/src/launch-unix.c
@@ -47,6 +47,12 @@ launch_unix (guestfs_h *g, void *datav, const char
2016 Feb 03
4
[PATCH v2 1/2] launch: add internal helper for socket paths creation
Introduce an internal helper to create paths for sockets -- will be
useful for changing later the logic for placing sockets.
Futhermore, check that the length of sockets won't overflow the buffer
for their filenames.
---
src/guestfs-internal.h | 1 +
src/launch-direct.c | 4 +++-
src/launch-libvirt.c | 10 ++++++----
src/launch.c | 17 +++++++++++++++++
4 files changed, 27
2016 Feb 02
6
[PATCH 1/3] launch: add internal helper for socket paths creation
Introduce an internal helper to create paths for sockets; will be useful
for changing later the logic for placing sockets.
---
src/guestfs-internal.h | 1 +
src/launch-direct.c | 4 +++-
src/launch-libvirt.c | 10 ++++++----
src/launch.c | 15 +++++++++++++++
4 files changed, 25 insertions(+), 5 deletions(-)
diff --git a/src/guestfs-internal.h b/src/guestfs-internal.h
index
2016 Jan 29
1
Re: [PATCH 6/6] launch: avoid too long paths for sockets
...ackend_ops *);
> extern int guestfs_int_set_backend (guestfs_h *g, const char *method);
>
> diff --git a/src/handle.c b/src/handle.c
> index 947818c..076e3fd 100644
> --- a/src/handle.c
> +++ b/src/handle.c
> @@ -347,8 +347,9 @@ guestfs_close (guestfs_h *g)
> if (g->test_fp != NULL)
> fclose (g->test_fp);
>
> - /* Remove temporary directory. */
> + /* Remove temporary directories. */
> guestfs_int_remove_tmpdir (g);
> + guestfs_int_remove_sockdir (g);
>
> /* Mark the handle as dead and then free up all memory. */
> g-...
2012 Oct 18
10
[PATCH 0/10] Add a mini-library for running external commands.
Inspired by libvirt's virCommand* internal mini-library, this adds
some internal APIs for running commands.
The first patch contains the new APIs. The subsequent patches change
various parts of the library over to use it.
Rich.
2015 Feb 14
2
[PATCH 0/2] Change guestfs__*
libguestfs has used double and triple underscores in identifiers.
These aren't valid for global names in C++.
(http://stackoverflow.com/a/228797)
These large but completely mechanical patches change the illegal
identifiers to legal ones.
Rich.
2016 Aug 18
5
[PATCH v2 0/4] New getprogname module
Hi,
as discussed in [1], this series adds a new getprogname module.
All it does is providing a getprogname function, much like what is
found on e.g. *BSD systems, and using it in gnulib instead of progname.
Also, using it explicitly by modules avoids gnulib users the need of
either use the progname module (GPL), or to provide program_name (and
call set_program_name manually, which is not always