search for: xdr_u_int32_t

Displaying 4 results from an estimated 4 matches for "xdr_u_int32_t".

2010 Mar 21
0
[PATCH] Mac OS X: 'xdr_uint32_t' is 'xdr_u_int32_t'
....redhat.com/~rjones/virt-top -------------- next part -------------- >From 461d036b1490e6c3bdcb5f6ae745b1ff6be7cbe1 Mon Sep 17 00:00:00 2001 From: Richard Jones <rich at koneko.home.annexia.org> Date: Sun, 21 Mar 2010 20:41:41 +0000 Subject: [PATCH] Mac OS X: 'xdr_uint32_t' is 'xdr_u_int32_t' --- src/guestfs.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/guestfs.c b/src/guestfs.c index 61e9302..850264e 100644 --- a/src/guestfs.c +++ b/src/guestfs.c @@ -100,6 +100,10 @@ static int qemu_supports (guestfs_h *g, const char *option); #define MAX(a,b...
2017 Apr 19
4
[PATCH v2 0/2] daemon: Move the useful 'is_zero' function into common code.
v1 -> v2: The first patch is the same (the pure refactoring), but in the second patch I implement Eric Blake's suggested version. Rich.
2017 Apr 19
2
[PATCH] daemon: Move the useful 'is_zero' function into common code.
...ns that need a root filesystem mounted. * NB. Cannot be used for FileIn functions. */ diff --git a/lib/guestfs-internal-all.h b/lib/guestfs-internal-all.h index 0c841ff67..4f7433332 100644 --- a/lib/guestfs-internal-all.h +++ b/lib/guestfs-internal-all.h @@ -89,6 +89,24 @@ #define xdr_uint32_t xdr_u_int32_t #endif +/* Return true iff the buffer is all zero bytes. + * + * Note that gcc is smart enough to optimize this properly: + * http://stackoverflow.com/questions/1493936/faster-means-of-checking-for-an-empty-buffer-in-c/1493989#1493989 + */ +static inline int +is_zero (const char *buffer, size_t...
2016 Feb 23
3
[PATCH 1/2] lib: Allow the COMPILE_REGEXP macro to be used everywhere.
...rnal.h | 24 ------------------------ 2 files changed, 26 insertions(+), 24 deletions(-) diff --git a/src/guestfs-internal-all.h b/src/guestfs-internal-all.h index 84b8fd6..af30e58 100644 --- a/src/guestfs-internal-all.h +++ b/src/guestfs-internal-all.h @@ -65,6 +65,32 @@ #define xdr_uint32_t xdr_u_int32_t #endif +/* Macro which compiles the regexp once when the program/library is + * loaded, and frees it when the library is unloaded. + */ +#define COMPILE_REGEXP(name,pattern,options) \ + static void compile_regexp_##name (void) __attribute__((constructor)); \ + static...