Displaying 20 results from an estimated 110 matches for "program_invocation_short_nam".
Did you mean:
program_invocation_short_name
2020 Mar 26
0
[PATCH nbdkit 5/9 patch split 3/5] server: Move some definitions in server/internal.h to the top of the file.
...++++---------------
1 file changed, 14 insertions(+), 15 deletions(-)
diff --git a/server/internal.h b/server/internal.h
index a1db231e..d412e500 100644
--- a/server/internal.h
+++ b/server/internal.h
@@ -80,11 +80,25 @@
# define DO_DLCLOSE 1
#endif
+/* Declare program_name. */
+#if HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME == 1
+#include <errno.h>
+#define program_name program_invocation_short_name
+#else
+#define program_name "nbdkit"
+#endif
+
#define container_of(ptr, type, member) ({ \
const typeof (((type *) 0)->member) *__mptr = (ptr); \
(type *) ((...
2015 Feb 07
1
Re: Patchable build problems on OS X 10.10
...chard W.M. Jones <rjones@redhat.com> wrote:
[...]
> Linux doesn't have getprogname. One way around this is to add
> getprogname to the list of functions in configure.ac AC_CHECK_FUNCS.
> That will cause a macro to be defined which you can use like this:
>
> #if HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME == 1
> # define program_name program_invocation_short_name
> #elif HAVE_GETPROGNAME
> # define program_name getprogname()
> #else
> # define program_name "libguestfs"
> #endif
Unfortunately that still doesn't help the issue with gnulib, since it
expe...
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.
2015 Feb 06
0
Re: Patchable build problems on OS X 10.10
...stfs-internal-frontend.h src/guestfs-internal-frontend.h
> index ba3ddde..f9079c5 100644
> --- src/guestfs-internal-frontend.h
> +++ src/guestfs-internal-frontend.h
> @@ -167,7 +167,7 @@ extern GUESTFS_DLL_PUBLIC int guestfs___add_libvirt_dom (guestfs_h *g, virDomain
> #if HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME == 1
> # define program_name program_invocation_short_name
> #else
> -# define program_name "libguestfs"
> +# define program_name getprogname()
> #endif
Linux doesn't have getprogname. One way around this is to add
getprogname to the list of functions in config...
2015 Feb 09
0
[PATCH 4/5] macosx/bsd: Use getprogname() where available
...htonl \
htons \
diff --git a/src/guestfs-internal-frontend.h b/src/guestfs-internal-frontend.h
index 2b9070b..d496655 100644
--- a/src/guestfs-internal-frontend.h
+++ b/src/guestfs-internal-frontend.h
@@ -133,6 +133,8 @@ extern void guestfs___cleanup_pclose (void *ptr);
*/
#if HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME == 1
# define guestfs___program_name program_invocation_short_name
+#elif HAVE_GETPROGNAME
+# define guestfs___program_name getprogname()
#else
# define guestfs___program_name "libguestfs"
#endif
--
1.9.3
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,
*
2016 Sep 08
4
[PATCH 0/3] Use gnulib's getprogname
Hi,
this series update libguestfs to a recent gnulib version, so that we
can use its new getprogname module, and solve altogether one of the
porting issues (the need for 'program_name' by the error module of
gnulib), and have a single way to get the name of the current program.
A number of changes in tools mostly, although mechanical.
Thanks,
Pino Toscano (3):
Update gnulib to latest
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
2019 Jul 21
2
Missing hivex.h error when compiling on macOS 10.14 (Mojave)
...ntl handles F_DUPFD correctly... yes
checking whether fcntl understands F_DUPFD_CLOEXEC... yes
checking whether conversion from 'int' to 'long double' works... yes
checking whether getdtablesize works... yes
checking whether program_invocation_name is declared... no
checking whether program_invocation_short_name is declared... no
checking whether __argv is declared... no
checking whether __progname is defined in default libraries... yes
checking whether INT32_MAX < INTMAX_MAX... yes
checking whether INT64_MAX == LONG_MAX... yes
checking whether UINT32_MAX < UINTMAX_MAX... yes
checking whether UINT64...
2017 Jan 31
0
[PATCH nbdkit] Add support for socket activation.
...lt;sys/un.h>
+#include <sys/wait.h>
+
+#define FIRST_SOCKET_ACTIVATION_FD 3
+
+#define NBDKIT_START_TIMEOUT 30 /* seconds */
+
+#define NBDKIT_PLUGIN(name) \
+ "../plugins/" name "/.libs/nbdkit-" name "-plugin.so"
+
+/* Declare program_name. */
+#if HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME == 1
+#include <errno.h>
+#define program_name program_invocation_short_name
+#else
+#define program_name "nbdkit"
+#endif
+
+static char tmpdir[] = "/tmp/nbdkitXXXXXX";
+static char sockpath[] = "/tmp/nbdkitXXXXXX/sock";
+static char pidpath[] = "/tmp/n...
2014 Oct 23
17
[PATCH 00/16] Small bits of non-Linux porting
...e the following:
a) lack of UNIX_PATH_MAX (which seems Linux-specific anyway)
b) usage of meta /dev/fd/N files; while on (k)FreeBSD there's a fdescfs
filesystem providing it, IMHO a better solution would be adding API
using FDs, like download_fd, upload_fd, tar_in_fd, and tar_out_fd
c) program_invocation_short_name is specific to GNU libc
d) iconv outside of GNU libc, in an own libintl
e) different cli tools, and different output for them
Also, as mentioned in the mingw porting patch,
https://www.redhat.com/archives/libguestfs/2014-February/msg00160.html
a way to disable entirely the usage of supermin (th...
2020 Mar 26
9
[PATCH nbdkit 5/9 patch split 1/5] Create libnbdkit.so.
This is the previous 5/9 patch posted earlier today, split into
reviewable chunks. This passes bisection with -x 'make && make
check', but I didn't work very hard on the commit messages, so I refer
you back to the original patch to explain how it works:
https://www.redhat.com/archives/libguestfs/2020-March/msg00248.html
Rich.
2014 May 29
3
Re: libguestfs error
...king for MAP_ANONYMOUS... yes
checking for mmap... (cached) yes
checking for MAP_ANONYMOUS... yes
checking for library containing nanosleep... none required
checking for working nanosleep... yes
checking for getppriv... no
checking whether program_invocation_name is declared... yes
checking whether program_invocation_short_name is declared... yes
checking for putenv compatible with GNU and SVID... yes
checking for mmap... (cached) yes
checking for MAP_ANONYMOUS... yes
checking for mmap... (cached) yes
checking for MAP_ANONYMOUS... yes
checking whether rmdir works... yes
checking for a traditional french locale... (cached...
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
2020 Mar 26
15
[PATCH nbdkit 0/9] Create libnbdkit.so
This creates libnbdkit.so as discussed in the following thread:
https://www.redhat.com/archives/libguestfs/2020-March/thread.html#00203
test-delay-shutdown.sh fails for unclear reasons.
This series starts by reverting "tests: Don't strand hung nbdkit
processes" which is because several other tests fail randomly unless I
revert this patch. I didn't investigate this yet so it
2014 May 29
2
Re: libguestfs error
Hi Rich
Yes Rich I have tried libguesftfs on powerpc and it was working fine.For
some reason i had to format my hard disk and now when I'm again compiling
it,I'm getting following error....
Below is the status of configure ..
This is how we have configured the optional components for you today:
Daemon .............................. yes
Appliance ........................... yes
QEMU
2015 Oct 29
16
[PATCH 00/16] Refactoring of configure.ac and guestfs.pod
Two (not related to each other) refactorings:
Patches 1-12 split configure.ac into smaller files using the
m4_include mechanism.
Patches 13-15 split out parts of guestfs.pod (ie. guestfs(3)) into
three new manual pages:
guestfs-hacking(3) - how to extend and contribute to libguestfs
guestfs-internals(3) - architecture and internals
guestfs-security(3) - security and CVEs
Patch 16 is a
2010 Dec 07
1
builder-ubuntu libguestfs FAILED build step 4b8f70d46dcfed1489c97f822e263b8615f21ea0
...checking for mkdirat... (cached) yes
checking for openat... (cached) yes
checking for unlinkat... (cached) yes
checking for fchownat... (cached) yes
checking whether fchownat works with AT_SYMLINK_NOFOLLOW... (cached) yes
checking whether program_invocation_name is declared... yes
checking whether program_invocation_short_name is declared... yes
checking for rawmemchr... yes
checking whether rmdir works... yes
checking for stdint.h... (cached) yes
checking for SIZE_MAX... yes
checking for ssize_t... (cached) yes
checking whether stat handles trailing slashes on directories... yes
checking whether stat handles trailing s...
2010 Dec 07
0
builder-ubuntu libguestfs FAILED build step 21810ade12e43fb4d8bfdcefb37a7d8bbe9eef8c
...checking for mkdirat... (cached) yes
checking for openat... (cached) yes
checking for unlinkat... (cached) yes
checking for fchownat... (cached) yes
checking whether fchownat works with AT_SYMLINK_NOFOLLOW... (cached) yes
checking whether program_invocation_name is declared... yes
checking whether program_invocation_short_name is declared... yes
checking for rawmemchr... yes
checking whether rmdir works... yes
checking for stdint.h... (cached) yes
checking for SIZE_MAX... yes
checking for ssize_t... (cached) yes
checking whether stat handles trailing slashes on directories... yes
checking whether stat handles trailing s...
2011 Jun 21
0
builder-ubuntu libguestfs FAILED build step e1e78bcef5e4654bd2456bd696840329359d35cd
...s
checking for unlinkat... (cached) yes
checking for fchownat... (cached) yes
checking whether fchownat works with AT_SYMLINK_NOFOLLOW... (cached) yes
checking whether fchownat works with an empty file name... (cached) yes
checking whether program_invocation_name is declared... yes
checking whether program_invocation_short_name is declared... yes
checking for rawmemchr... yes
checking whether rmdir works... yes
checking whether setenv validates arguments... yes
checking for stdint.h... (cached) yes
checking for SIZE_MAX... yes
checking for socklen_t... yes
checking for ssize_t... (cached) yes
checking whether stat handle...