search for: xdr_encode

Displaying 20 results from an estimated 52 matches for "xdr_encode".

2003 Oct 20
0
AFS via Samba compile problem
...ing arg 1 of `next_token' from incompatible poi nter type Compiling auth/pass_check.c In file included from /usr/include/afs/kautils.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: p...
2016 Aug 25
0
[PATCH v2 2/6] daemon: refactor tsk code
...(&dirent); - ret = (ret == 0) ? TSK_WALK_CONT : TSK_WALK_ERROR; + /* Serialize tsk_dirent struct. */ + buf = malloc (GUESTFS_MAX_CHUNK_SIZE); + if (buf == NULL) { + perror ("malloc"); + return -1; + } - return ret; + xdrmem_create (&xdr, buf, GUESTFS_MAX_CHUNK_SIZE, XDR_ENCODE); + + ret = xdr_guestfs_int_tsk_dirent (&xdr, &dirent); + if (ret == 0) { + perror ("xdr_guestfs_int_tsk_dirent"); + return -1; + } + + len = xdr_getpos (&xdr); + + xdr_destroy (&xdr); + + /* Send serialised tsk_dirent out. */ + return send_file_write (buf, le...
1999 May 14
0
Problems Building Samba 2.0.3 --with-afs
...aration /usr/afsws/include/afs/stds.h:108: warning: empty declaration In file included from /usr/afsws/include/afs/kautils.h:35, 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/rp...
2004 Apr 08
0
Error building Samba 3.0.2a
...openafs-devel package) Here are the error messages from make: In file included from /usr/include/afs/afs/kautils.h:35, from auth/pass_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_FR...
2010 Jun 01
0
Compiling Samba 3.0.37 --with-afs (Steve Linehan)
...k.c In file included from /usr/include/afs/kautils.h:35, from auth/pass_check.c:89: /usr/include/rx/xdr.h:155: error: nested redefinition 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 ?XD...
2012 Jan 24
14
[PATCH 00/14] Run the daemon under valgrind and fix resultant errors.
This patch series lets you run the daemon under valgrind. Many errors were found and fixed. With the complete series applied, valgrind doesn't show any errors.
2016 Nov 22
2
Re: [PATCH v2 4/6] New API: internal_yara_scan
....rule = (char *) rule->identifier; > + > + /* Serialize detection struct. */ > + buf = malloc (GUESTFS_MAX_CHUNK_SIZE); > + if (buf == NULL) { > + perror ("malloc"); > + return -1; > + } > + > + xdrmem_create (&xdr, buf, GUESTFS_MAX_CHUNK_SIZE, XDR_ENCODE); > + > + ret = xdr_guestfs_int_yara_detection (&xdr, &detection); > + if (ret == 0) { > + perror ("xdr_guestfs_int_yara_detection"); > + return -1; > + } > + > + len = xdr_getpos (&xdr); > + > + xdr_destroy (&xdr); > + > + /...
2009 Nov 25
1
[PATCH] daemon/Win32: Use xdr_u_int for PortableXDR compatibility.
...), 8 deletions(-) diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c index 67206d0..f31f1f2 100644 --- a/daemon/guestfsd.c +++ b/daemon/guestfsd.c @@ -311,7 +311,7 @@ main (int argc, char *argv[]) XDR xdr; uint32_t len = GUESTFS_LAUNCH_FLAG; xdrmem_create (&xdr, lenbuf, sizeof lenbuf, XDR_ENCODE); - xdr_uint32_t (&xdr, &len); + xdr_u_int (&xdr, &len); if (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...
2016 Aug 26
6
[PATCH v3 0/6] New API: find_inode
v3: - coding style fixes - comment entry_is_dot logic Matteo Cafasso (6): filesystem_walk: fixed root inode listing daemon: refactor tsk code lib: rename tsk internal function New API: internal_find_inode New API: find_inode find_inode: added API tests daemon/tsk.c | 157 ++++++++++++++++++++++++++++++------------- generator/actions.ml | 21 ++++++
2016 Aug 26
6
[PATCH v4 0/6] New API: find_inode
v4: - refactor entry_is_dot My apologies for the duplicated submission but I did not read the next e-mail. The tsk_fs_dir_walk API will list all the entries including '.' and '..' in a similar manner as for 'ls -a'. This means our callback will be called for the following entries: . <-- the Root entry etc/. etc/.. <-- again the Root entry etc/systemd/.
2016 Sep 16
7
[PATCH v6 0/6] New API - find_inode
This series should be ready for merge v6: - rebase on master - changes according to last comments Matteo Cafasso (6): filesystem_walk: fixed root inode listing daemon: refactor tsk code lib: rename tsk internal function New API: internal_find_inode New API: find_inode find_inode: added API tests daemon/tsk.c | 155 ++++++++++++++++++++++++++++++-------------
2016 Nov 22
0
Re: [PATCH v2 4/6] New API: internal_yara_scan
...; >> + >> + /* Serialize detection struct. */ >> + buf = malloc (GUESTFS_MAX_CHUNK_SIZE); >> + if (buf == NULL) { >> + perror ("malloc"); >> + return -1; >> + } >> + >> + xdrmem_create (&xdr, buf, GUESTFS_MAX_CHUNK_SIZE, XDR_ENCODE); >> + >> + ret = xdr_guestfs_int_yara_detection (&xdr, &detection); >> + if (ret == 0) { >> + perror ("xdr_guestfs_int_yara_detection"); >> + return -1; >> + } >> + >> + len = xdr_getpos (&xdr); >> + >> +...
2014 May 15
2
Re: guestfsd crashes when the handle is closed
...ion = 0x1}, sa_mask = {__val = {0 <repeats 32 times>}}, sa_flags = 0, sa_restorer = 0x0} channel = <optimized out> p = <optimized out> sock = 3 lenbuf = "\365\365", <incomplete sequence \365> xdr = {x_op = XDR_ENCODE, x_ops = 0xb753db00 <xdrmem_ops>, x_public = 0xb76acc46 <_dl_lookup_symbol_x+214> "\203", <incomplete sequence \370>, x_private = 0xbfedcd80 "_IMAGE=/vmlinuz-3.11.10-301.fc20.i686 root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/swap vconsole.fon...
2016 Nov 09
0
[PATCH v2 4/6] New API: internal_yara_scan
...detection.name = (char *) name; + detection.rule = (char *) rule->identifier; + + /* Serialize detection struct. */ + buf = malloc (GUESTFS_MAX_CHUNK_SIZE); + if (buf == NULL) { + perror ("malloc"); + return -1; + } + + xdrmem_create (&xdr, buf, GUESTFS_MAX_CHUNK_SIZE, XDR_ENCODE); + + ret = xdr_guestfs_int_yara_detection (&xdr, &detection); + if (ret == 0) { + perror ("xdr_guestfs_int_yara_detection"); + return -1; + } + + len = xdr_getpos (&xdr); + + xdr_destroy (&xdr); + + /* Send serialised tsk_detection out. */ + return send_file_...
2016 Mar 29
0
[PATCH 1/2] added filesystem_walk0 API
...t len; + CLEANUP_FREE char *buf; + + if ((buf = malloc(GUESTFS_MAX_CHUNK_SIZE)) == NULL) { + reply_with_perror ("malloc"); + return -1; + } + + /* Serialise tsk_node struct. */ + len = strlen(node_info->tsk_name) + 1; + + xdrmem_create(&xdr, buf, GUESTFS_MAX_CHUNK_SIZE, XDR_ENCODE); + if (!xdr_u_long(&xdr, &len)) + return -1; + if (!xdr_string(&xdr, &node_info->tsk_name, len)) + return -1; + if (!xdr_uint64_t(&xdr, &node_info->tsk_inode)) + return -1; + if (!xdr_uint32_t(&xdr, &node_info->tsk_allocated)) + return -1; +...
2017 Apr 24
0
[PATCH v8 6/8] New API: internal_yara_scan
....yara_name = (char *) name; + detection.yara_rule = (char *) rule->identifier; + + /* Serialize detection struct. */ + buf = malloc (GUESTFS_MAX_CHUNK_SIZE); + if (buf == NULL) { + perror ("malloc"); + return -1; + } + + xdrmem_create (&xdr, buf, GUESTFS_MAX_CHUNK_SIZE, XDR_ENCODE); + + r = xdr_guestfs_int_yara_detection (&xdr, &detection); + if (r == 0) { + perror ("xdr_guestfs_int_yara_detection"); + return -1; + } + + len = xdr_getpos (&xdr); + + xdr_destroy (&xdr); + + /* Send serialised yara_detection out. */ + return send_file_wri...
2017 Apr 06
0
[PATCH v6 5/7] New API: internal_yara_scan
....yara_name = (char *) name; + detection.yara_rule = (char *) rule->identifier; + + /* Serialize detection struct. */ + buf = malloc (GUESTFS_MAX_CHUNK_SIZE); + if (buf == NULL) { + perror ("malloc"); + return -1; + } + + xdrmem_create (&xdr, buf, GUESTFS_MAX_CHUNK_SIZE, XDR_ENCODE); + + ret = xdr_guestfs_int_yara_detection (&xdr, &detection); + if (ret == 0) { + perror ("xdr_guestfs_int_yara_detection"); + return -1; + } + + len = xdr_getpos (&xdr); + + xdr_destroy (&xdr); + + /* Send serialised yara_detection out. */ + return send_file...
2017 Apr 04
0
[PATCH v5 5/7] New API: internal_yara_scan
...detection.name = (char *) name; + detection.rule = (char *) rule->identifier; + + /* Serialize detection struct. */ + buf = malloc (GUESTFS_MAX_CHUNK_SIZE); + if (buf == NULL) { + perror ("malloc"); + return -1; + } + + xdrmem_create (&xdr, buf, GUESTFS_MAX_CHUNK_SIZE, XDR_ENCODE); + + ret = xdr_guestfs_int_yara_detection (&xdr, &detection); + if (ret == 0) { + perror ("xdr_guestfs_int_yara_detection"); + return -1; + } + + len = xdr_getpos (&xdr); + + xdr_destroy (&xdr); + + /* Send serialised yara_detection out. */ + return send_file...
2009 Sep 11
1
[PATCH] guestfish: Redirect stdout when executing remote commands
...;s'. */ + close_stdout(); /* Re-close stdout */ } } @@ -227,6 +343,8 @@ rc_remote (int pid, const char *cmd, int argc, char *argv[], return -1; } + send_stdout(sock); + /* Send the greeting. */ fp = fdopen (sock, "r+"); xdrstdio_create (&xdr, fp, XDR_ENCODE); diff --git a/guestfish.pod b/guestfish.pod index d0d6839..affb83b 100644 --- a/guestfish.pod +++ b/guestfish.pod @@ -398,13 +398,6 @@ You can have several guestfish listener processes running using: guestfish --remote=$pid1 cmd guestfish --remote=$pid2 cmd -=head2 STANDARD OUTPUT DURING REM...
2016 Aug 25
10
[PATCH v2 0/6] New API: find_inode
v2: - refactor logic to reduce code duplication - better functions naming Matteo Cafasso (6): filesystem_walk: fixed root inode listing daemon: refactor tsk code lib: rename tsk internal function New API: internal_find_inode New API: find_inode find_inode: added API tests daemon/tsk.c | 156 ++++++++++++++++++++++++++++++------------- generator/actions.ml