#include "common.h"#include <stdio.h>#include <ctype.h>#include <math.h>#include <strings.h>#include "machine.h"#include "bu.h"Include dependency graph for xdr.c:

Go to the source code of this file.
Functions | |
| unsigned short | bu_gshort (const unsigned char *msgp) |
| unsigned long | bu_glong (const unsigned char *msgp) |
| unsigned char * | bu_pshort (register unsigned char *msgp, register int s) |
| unsigned char * | bu_plong (register unsigned char *msgp, register long unsigned int l) |
Routines to insert/extract short/long's into char arrays, independend of machine byte order and word-alignment. Uses encoding compatible with routines found in libpkg, and BSD system routines ntohl(), ntons(), ntohl(), ntohs().
Definition in file xdr.c.
1.4.6