search for: xdr_decod

Displaying 20 results from an estimated 47 matches for "xdr_decod".

Did you mean: xdr_decode
2003 Oct 20
0
AFS via Samba compile problem
...ils.h:35, from auth/pass_check.c:39: /usr/include/rx/xdr.h:149: redeclaration of `enum xdr_op' /usr/include/rx/xdr.h:150: conflicting types for `XDR_ENCODE' /usr/include/rpc/xdr.h:84: previous declaration of `XDR_ENCODE' /usr/include/rx/xdr.h:151: conflicting types for `XDR_DECODE' /usr/include/rpc/xdr.h:85: previous declaration of `XDR_DECODE' /usr/include/rx/xdr.h:153: conflicting types for `XDR_FREE' /usr/include/rpc/xdr.h:87: previous declaration of `XDR_FREE' /usr/include/rx/xdr.h:153: confused by earlier errors, bailing out make: *** [auth/pass_check.o...
2012 Apr 26
1
[PATCH 1/2] gobject: Use generator_built macro to ensure generated files are rebuilt properly.
From: "Richard W.M. Jones" <rjones at redhat.com> --- generator/generator_gobject.ml | 4 ++-- gobject/Makefile.am | 14 +++++++++----- gobject/Makefile.inc | 4 ++-- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/generator/generator_gobject.ml b/generator/generator_gobject.ml index 17c6c36..3096501 100644 ---
1999 May 14
0
Problems Building Samba 2.0.3 --with-afs
...from passdb/pass_check.c:141: /usr/afsws/include/rx/xdr.h:107: redeclaration of `enum xdr_op' /usr/afsws/include/rx/xdr.h:108: conflicting types for `XDR_ENCODE' /usr/include/rpc/xdr.h:99: previous declaration of `XDR_ENCODE' /usr/afsws/include/rx/xdr.h:109: conflicting types for `XDR_DECODE' /usr/include/rpc/xdr.h:100: previous declaration of `XDR_DECODE' /usr/afsws/include/rx/xdr.h:111: conflicting types for `XDR_FREE' /usr/include/rpc/xdr.h:102: previous declaration of `XDR_FREE' /usr/afsws/include/rx/xdr.h:127: warning: redefinition of `xdrproc_t' /usr/include/...
2004 Apr 08
0
Error building Samba 3.0.2a
...s_check.c:39: /usr/include/afs/rx/xdr.h:149: error: redeclaration of `enum xdr_op' /usr/include/afs/rx/xdr.h:150: error: conflicting types for `XDR_ENCODE' /usr/include/rpc/xdr.h:84: error: previous declaration of `XDR_ENCODE' /usr/include/afs/rx/xdr.h:151: error: conflicting types for `XDR_DECODE' /usr/include/rpc/xdr.h:85: error: previous declaration of `XDR_DECODE' /usr/include/afs/rx/xdr.h:153: error: conflicting types for `XDR_FREE' /usr/include/rpc/xdr.h:87: error: previous declaration of `XDR_FREE' /usr/include/afs/rx/xdr.h:169: error: conflicting types for `xdrproc_t...
2010 Jun 01
0
Compiling Samba 3.0.37 --with-afs (Steve Linehan)
...of ?enum xdr_op? /usr/include/rx/xdr.h:155: error: redeclaration of ?enum xdr_op? /usr/include/rx/xdr.h:156: error: redeclaration of enumerator ?XDR_ENCODE? /usr/include/rpc/xdr.h:84: error: previous definition of ?XDR_ENCODE? was here /usr/include/rx/xdr.h:157: error: redeclaration of enumerator ?XDR_DECODE? /usr/include/rpc/xdr.h:85: error: previous definition of ?XDR_DECODE? was here /usr/include/rx/xdr.h:159: error: redeclaration of enumerator ?XDR_FREE? /usr/include/rpc/xdr.h:87: error: previous definition of ?XDR_FREE? was here /usr/include/rx/xdr.h:179: error: conflicting types for ?xdrproc_t?...
2009 Nov 25
1
[PATCH] daemon/Win32: Use xdr_u_int for PortableXDR compatibility.
...(xwrite (sock, lenbuf, sizeof lenbuf) == -1) exit (EXIT_FAILURE); diff --git a/daemon/proto.c b/daemon/proto.c index 4106d92..2231037 100644 --- a/daemon/proto.c +++ b/daemon/proto.c @@ -67,7 +67,7 @@ main_loop (int _sock) exit (EXIT_FAILURE); xdrmem_create (&xdr, lenbuf, 4, XDR_DECODE); - xdr_uint32_t (&xdr, &len); + xdr_u_int (&xdr, &len); xdr_destroy (&xdr); if (len > GUESTFS_MESSAGE_MAX) { @@ -233,7 +233,7 @@ send_error (const char *msg) xdr_destroy (&xdr); xdrmem_create (&xdr, lenbuf, 4, XDR_ENCODE); - xdr_uint32_t (...
2013 Mar 07
3
[PATCH 0/3] protocol: Abstract out socket operations.
I've been taking a long hard look at the protocol layer. It has evolved over a long time without any particular direction, and the result is, to say the least, not very organized. These patches take a first step at cleaning up the mess by abstracting out socket operations from the rest of the code. The purpose of this is to allow us to slot in a different connection layer under the
2016 Apr 05
1
Re: [PATCH v3 4/5] appliance: Added filesystem_walk command
...ror. > + */ > +int > +deserialise_dirent_list (guestfs_h *g, char *buf, size_t bufsize, > + struct guestfs_tsk_dirent_list *dirents) > +{ > + XDR xdr; > + bool_t ret = 0; > + uint32_t index = 0; > + > + xdrmem_create (&xdr, buf, bufsize, XDR_DECODE); > + > + for (index = 0; xdr_getpos (&xdr) < bufsize; index++) { > + if (index == dirents->len) { > + dirents->len = 2 * dirents->len; > + dirents->val = safe_realloc (g, dirents->val, > + dirents->len * &g...
2009 Nov 20
1
fix new failures from latest-from-gnulib syntax-check
...n/proto.c b/daemon/proto.c index a0d3736..284037d 100644 --- a/daemon/proto.c +++ b/daemon/proto.c @@ -63,7 +63,7 @@ main_loop (int _sock) /* Read the length word. */ if (xread (sock, lenbuf, 4) == -1) - exit (1); + exit (EXIT_FAILURE); xdrmem_create (&xdr, lenbuf, 4, XDR_DECODE); xdr_uint32_t (&xdr, &len); @@ -72,7 +72,7 @@ main_loop (int _sock) if (len > GUESTFS_MESSAGE_MAX) { fprintf (stderr, "guestfsd: incoming message is too long (%u bytes)\n", len); - exit (1); + exit (EXIT_FAILURE); } buf =...
2015 Nov 09
6
[PATCH 0/5] build: Enable some more warnings.
Add some warnings. Well, the first patch is a miscellaneous change, but patches 2-5 add some warnings. Rich.
2016 Mar 29
3
[PATCH 0/2] added filesystem_walk API
The filesystem_walk API parses the FS internals of a partition and returns a list of all the files and directories contained within. It list deleted files and directories as well. For each node, it reports its relative path, its inode and its allocation status. This is the end user API for inspecting a disk partition content. The command can handle filenames with special characters. Example
2016 Nov 09
0
[PATCH v2 5/6] New API: yara_scan
...(guestfs_h *g, FILE *fp, + struct guestfs_yara_detection_list *detections) +{ + XDR xdr; + int ret = 0; + uint32_t index = 0; + struct stat statbuf; + + ret = fstat (fileno(fp), &statbuf); + if (ret == -1) + return -1; + + xdrstdio_create (&xdr, fp, XDR_DECODE); + + for (index = 0; xdr_getpos (&xdr) < statbuf.st_size; index++) { + if (index == detections->len) { + detections->len = 2 * detections->len; + detections->val = safe_realloc (g, detections->val, + detections->len * +...
2014 May 15
2
Re: guestfsd crashes when the handle is closed
Hello, This is the ouotput for fedora guest. ========================================== *#0 0xb73b7040 in exit () from /lib/libc.so.6* No symbol table info available. *#1 0xb76fb3a8 in main_loop (_sock=_sock@entry=3) at proto.c:112* xdr = {x_op = XDR_DECODE, x_ops = 0xb753db00 <xdrmem_ops>, x_public = 0x0, x_private = 0xbba929d8 ".0", x_base = 0xbba929b0 "", x_handy = 0} buf = <optimized out> lenbuf = "\000\000\000(" len = 40 hdr = {prog = 536933877, vers =...
2017 Apr 06
0
[PATCH v6 6/7] New API: yara_scan
...(guestfs_h *g, FILE *fp, + struct guestfs_yara_detection_list *detections) +{ + XDR xdr; + int ret = 0; + uint32_t index = 0; + struct stat statbuf; + + ret = fstat (fileno(fp), &statbuf); + if (ret == -1) + return -1; + + xdrstdio_create (&xdr, fp, XDR_DECODE); + + for (index = 0; xdr_getpos (&xdr) < statbuf.st_size; index++) { + if (index == detections->len) { + detections->len = 2 * detections->len; + detections->val = safe_realloc (g, detections->val, + detections->len * +...
2017 Apr 04
0
[PATCH v5 6/7] New API: yara_scan
...(guestfs_h *g, FILE *fp, + struct guestfs_yara_detection_list *detections) +{ + XDR xdr; + int ret = 0; + uint32_t index = 0; + struct stat statbuf; + + ret = fstat (fileno(fp), &statbuf); + if (ret == -1) + return -1; + + xdrstdio_create (&xdr, fp, XDR_DECODE); + + for (index = 0; xdr_getpos (&xdr) < statbuf.st_size; index++) { + if (index == detections->len) { + detections->len = 2 * detections->len; + detections->val = safe_realloc (g, detections->val, + detections->len * +...
2017 Apr 23
0
[PATCH v7 6/7] New API: yara_scan
...struct guestfs_yara_detection_list *detections) +{ + XDR xdr; + int r = 0; + uint32_t index = 0; + struct stat statbuf; + + r = fstat (fileno(fp), &statbuf); + if (r == -1) { + perrorf (g, "fstat"); + return -1; + } + + xdrstdio_create (&xdr, fp, XDR_DECODE); + + for (index = 0; xdr_getpos (&xdr) < statbuf.st_size; index++) { + if (index == detections->len) { + detections->len = 2 * detections->len; + detections->val = safe_realloc (g, detections->val, + detections->len * +...
2016 Apr 05
0
[PATCH v3 4/5] appliance: Added filesystem_walk command
...eturn the number of deserialised dirents, -1 on error. + */ +int +deserialise_dirent_list (guestfs_h *g, char *buf, size_t bufsize, + struct guestfs_tsk_dirent_list *dirents) +{ + XDR xdr; + bool_t ret = 0; + uint32_t index = 0; + + xdrmem_create (&xdr, buf, bufsize, XDR_DECODE); + + for (index = 0; xdr_getpos (&xdr) < bufsize; index++) { + if (index == dirents->len) { + dirents->len = 2 * dirents->len; + dirents->val = safe_realloc (g, dirents->val, + dirents->len * +...
2016 Mar 29
0
[PATCH 1/2] added filesystem_walk API
...sk_node_list * +parse_filesystem_walk0 (guestfs_h *g, char *buf, size_t bufsize) +{ + XDR xdr; + uint32_t index = 0; + struct guestfs_tsk_node_list *nodes = NULL; + + nodes = safe_malloc(g, sizeof *nodes); + nodes->len = 0; + nodes->val = NULL; + + xdrmem_create(&xdr, buf, bufsize, XDR_DECODE); + + for (index = 0; xdr_getpos(&xdr) < bufsize; index++) { + if (index == nodes->len) { + nodes->len = 2 * (nodes->len + 1); + nodes->val = safe_realloc(g, nodes->val, + nodes->len * sizeof (struct guestfs_tsk_node)); + } +...
2009 Sep 11
1
[PATCH] guestfish: Redirect stdout when executing remote commands
...fd); - } + close_stdout(); /* Read commands and execute them. */ while (!quit) { @@ -125,6 +238,8 @@ rc_listen (void) if (s == -1) perror ("accept"); else { + receive_stdout(s); + fp = fdopen (s, "r+"); xdrstdio_create (&xdr, fp, XDR_DECODE); @@ -180,6 +295,7 @@ rc_listen (void) error: xdr_destroy (&xdr); /* NB. This doesn't close 'fp'. */ fclose (fp); /* Closes the underlying socket 's'. */ + close_stdout(); /* Re-close stdout */ } } @@ -227,6 +343,8 @@ rc_remote (int pid,...
2016 Apr 03
0
[PATCH v2 4/5] appliance: Added filesystem_walk command
...Return the number of deserialised dirents, -1 on error. + */ +int +deserialise_dirent_list (guestfs_h *g, char *buf, size_t bufsize, + struct guestfs_tsk_dirent_list **dirents) +{ + XDR xdr; + int ret = 0; + uint32_t index = 0; + + xdrmem_create (&xdr, buf, bufsize, XDR_DECODE); + + for (index = 0; xdr_getpos (&xdr) < bufsize; index++) { + if (index == (*dirents)->len) { + (*dirents)->len = 2 * (*dirents)->len; + (*dirents)->val = safe_realloc (g, (*dirents)->val, + (*dirents)->len * +...