Displaying 6 results from an estimated 6 matches for "xdr_char".
Did you mean:
x_char
2010 Jun 01
0
Compiling Samba 3.0.37 --with-afs (Steve Linehan)
...r/include/rpc/xdr.h:290: error: previous declaration of ?xdr_int? was
here
/usr/include/rx/xdr_prototypes.h:47: error: conflicting types for
?xdr_u_int?
/usr/include/rpc/xdr.h:291: error: previous declaration of ?xdr_u_int? was
here
/usr/include/rx/xdr_prototypes.h:48: error: conflicting types for ?xdr_char?
/usr/include/rpc/xdr.h:320: error: previous declaration of ?xdr_char? was
here
/usr/include/rx/xdr_prototypes.h:49: error: conflicting types for
?xdr_u_char?
/usr/include/rpc/xdr.h:321: error: previous declaration of ?xdr_u_char? was
here
/usr/include/rx/xdr_prototypes.h:50: error: conflicting typ...
2016 Apr 03
0
[PATCH v2 4/5] appliance: Added filesystem_walk command
...n success, -1 on error.
+ */
+static int
+deserialise_dirent (guestfs_h *g, XDR *xdrs, struct guestfs_tsk_dirent *dirent)
+{
+ size_t len = 0;
+ CLEANUP_FREE char *buf = NULL;
+
+ /* Deserialise tsk_dirent struct. */
+ if (!xdr_uint64_t (xdrs, &dirent->tsk_inode))
+ return -1;
+ if (!xdr_char (xdrs, &dirent->tsk_type))
+ return -1;
+ if (!xdr_int64_t (xdrs, &dirent->tsk_size))
+ return -1;
+
+ /* Deserialise filename. */
+ if (!xdr_u_long (xdrs, &len))
+ return -1;
+ buf = safe_malloc (g, len);
+ if (!xdr_string (xdrs, &buf, len))
+ return -1;
+ d...
2016 Apr 03
0
[PATCH v2 3/5] daemon: Added internal_filesystem_walk command
..._CHUNK_SIZE);
+ if (buf == NULL) {
+ fprintf (stderr, "malloc: %m");
+ return -1;
+ }
+
+ /* Serialise tsk_dirent struct. */
+ xdrmem_create (&xdr, buf, GUESTFS_MAX_CHUNK_SIZE, XDR_ENCODE);
+
+ if (!xdr_uint64_t (&xdr, &dirent->tsk_inode))
+ return -1;
+ if (!xdr_char (&xdr, &dirent->tsk_type))
+ return -1;
+ if (!xdr_int64_t (&xdr, &dirent->tsk_size))
+ return -1;
+
+ /* Serialise filename. */
+ len = strlen (dirent->tsk_name) + 1;
+ if (!xdr_u_long (&xdr, &len))
+ return -1;
+ if (!xdr_string (&xdr, &diren...
2016 Apr 03
7
[PATCH v2 0/5] Added filesystem_walk command
v2:
- Increased the amount of collected information from the FS content.
- Moved filesystem_walk0 as internal command.
- Code improvement based on comments.
- Adhere to project's coding style.
- Better command documentation.
- More robust tests.
Patch ready for review, code available at:
https://github.com/noxdafox/libguestfs/tree/filesystem_walk
Matteo Cafasso (5):
generator:
2016 Apr 04
2
Re: [PATCH v2 3/5] daemon: Added internal_filesystem_walk command
...ntf (stderr, "malloc: %m");
> + return -1;
> + }
> +
> + /* Serialise tsk_dirent struct. */
> + xdrmem_create (&xdr, buf, GUESTFS_MAX_CHUNK_SIZE, XDR_ENCODE);
> +
> + if (!xdr_uint64_t (&xdr, &dirent->tsk_inode))
> + return -1;
> + if (!xdr_char (&xdr, &dirent->tsk_type))
> + return -1;
> + if (!xdr_int64_t (&xdr, &dirent->tsk_size))
> + return -1;
> +
> + /* Serialise filename. */
> + len = strlen (dirent->tsk_name) + 1;
> + if (!xdr_u_long (&xdr, &len))
> + return -1;...
2016 Apr 04
0
Re: [PATCH v2 3/5] daemon: Added internal_filesystem_walk command
...t; + return -1;
> > + }
> > +
> > + /* Serialise tsk_dirent struct. */
> > + xdrmem_create (&xdr, buf, GUESTFS_MAX_CHUNK_SIZE, XDR_ENCODE);
> > +
> > + if (!xdr_uint64_t (&xdr, &dirent->tsk_inode))
> > + return -1;
> > + if (!xdr_char (&xdr, &dirent->tsk_type))
> > + return -1;
> > + if (!xdr_int64_t (&xdr, &dirent->tsk_size))
> > + return -1;
> > +
> > + /* Serialise filename. */
> > + len = strlen (dirent->tsk_name) + 1;
> > + if (!xdr_u_long (&xd...