#include <wintirpc.h>
#include <io.h>
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <rpc/types.h>
#include <rpc/xdr.h>
#include <rpc/auth.h>
#include <rpc/svc_auth.h>
#include <rpc/svc.h>
#include <rpc/clnt.h>
#include <stddef.h>
#include "rpc_com.h"
Go to the source code of this file.
|
static bool_t | xdrrec_getlong (XDR *, long *) |
|
static bool_t | xdrrec_putlong (XDR *, const long *) |
|
static bool_t | xdrrec_getbytes (XDR *, char *, u_int) |
|
static bool_t | xdrrec_putbytes (XDR *, const char *, u_int) |
|
static u_int | xdrrec_getpos (XDR *) |
|
static bool_t | xdrrec_setpos (XDR *, u_int) |
|
static int32_t * | xdrrec_inline (XDR *, u_int) |
|
static void | xdrrec_destroy (XDR *) |
|
static u_int | fix_buf_size (u_int) |
|
static bool_t | flush_out (RECSTREAM *, bool_t) |
|
static bool_t | fill_input_buf (RECSTREAM *) |
|
static bool_t | get_input_bytes (RECSTREAM *, char *, u_int) |
|
static bool_t | set_input_fragment (RECSTREAM *) |
|
static bool_t | skip_input_bytes (RECSTREAM *, u_int) |
|
static bool_t | realloc_stream (RECSTREAM *, u_int) |
|
void | xdrrec_create (XDR *xdrs, u_int sendsize, u_int recvsize, int *void *, int *readit, int *writeit) |
|
int32_t * | xdrrec_getoutbase (XDR *xdrs) |
|
void | xdrrec_setlastfrag (XDR *xdrs) |
|
bool_t | xdrrec_skiprecord (XDR *xdrs) |
|
bool_t | xdrrec_eof (XDR *xdrs) |
|
bool_t | xdrrec_endofrecord (XDR *xdrs, bool_t sendnow) |
|
bool_t | __xdrrec_getrec (XDR *xdrs, enum xprt_stat *statp, bool_t expectdata) |
|
bool_t | __xdrrec_setnonblock (XDR *xdrs, int maxrec) |
|
bool_t | __xdrrec_setblock (XDR *xdrs) |
|
◆ LAST_FRAG
◆ RECSTREAM
◆ __xdrrec_getrec()
Definition at line 581 of file xdr_rec.c.
609 if (fraglen == 0 || fraglen > rstrm->
in_maxrec ||
631 if (
n == -1)
continue;
ActualNumberDriverObjects * sizeof(PDRIVER_OBJECT)) PDRIVER_OBJECT *DriverObjectList
int(* readit)(void *, void *, int)
static bool_t realloc_stream(RECSTREAM *, u_int)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Referenced by svc_vc_recv(), and xdrrec_skiprecord().
◆ __xdrrec_setblock()
◆ __xdrrec_setnonblock()
◆ fill_input_buf()
Definition at line 709 of file xdr_rec.c.
int(* readit)(void *, void *, int)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define BYTES_PER_XDR_UNIT
Referenced by get_input_bytes(), and skip_input_bytes().
◆ fix_buf_size()
◆ flush_out()
◆ get_input_bytes()
Definition at line 732 of file xdr_rec.c.
static bool_t fill_input_buf(RECSTREAM *)
#define memmove(s1, s2, n)
struct task_struct * current
GLenum const GLvoid * addr
#define memcpy(s1, s2, n)
Referenced by set_input_fragment(), and xdrrec_getbytes().
◆ realloc_stream()
Definition at line 826 of file xdr_rec.c.
GLenum GLuint GLenum GLsizei const GLchar * buf
__kernel_ptrdiff_t ptrdiff_t
Referenced by __xdrrec_getrec().
◆ set_input_fragment()
◆ skip_input_bytes()
◆ xdrrec_create()
Definition at line 179 of file xdr_rec.c.
static const struct xdr_ops xdrrec_ops
int(* readit)(void *, void *, int)
int(* writeit)(void *, void *, int)
const struct __rpc_xdr::xdr_ops * x_ops
#define mem_free(ptr, bsize)
static u_int fix_buf_size(u_int)
Referenced by clnt_vc_create(), and makefd_xprt().
◆ xdrrec_destroy()
static void xdrrec_destroy |
( |
XDR * |
xdrs | ) |
|
|
static |
Definition at line 469 of file xdr_rec.c.
#define mem_free(ptr, bsize)
◆ xdrrec_endofrecord()
◆ xdrrec_eof()
Definition at line 531 of file xdr_rec.c.
static bool_t skip_input_bytes(RECSTREAM *, u_int)
static bool_t set_input_fragment(RECSTREAM *)
Referenced by svc_vc_stat().
◆ xdrrec_getbytes()
Definition at line 295 of file xdr_rec.c.
static bool_t set_input_fragment(RECSTREAM *)
struct task_struct * current
GLenum const GLvoid * addr
static bool_t get_input_bytes(RECSTREAM *, char *, u_int)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Referenced by xdrrec_getlong().
◆ xdrrec_getlong()
Definition at line 247 of file xdr_rec.c.
static bool_t xdrrec_getbytes(XDR *, char *, u_int)
◆ xdrrec_getoutbase()
◆ xdrrec_getpos()
static u_int xdrrec_getpos |
( |
XDR * |
xdrs | ) |
|
|
static |
◆ xdrrec_inline()
Definition at line 437 of file xdr_rec.c.
GLenum GLuint GLenum GLsizei const GLchar * buf
◆ xdrrec_putbytes()
Definition at line 323 of file xdr_rec.c.
#define memmove(s1, s2, n)
struct task_struct * current
GLenum const GLvoid * addr
static bool_t flush_out(RECSTREAM *, bool_t)
◆ xdrrec_putlong()
Definition at line 271 of file xdr_rec.c.
static bool_t flush_out(RECSTREAM *, bool_t)
◆ xdrrec_setlastfrag()
void xdrrec_setlastfrag |
( |
XDR * |
xdrs | ) |
|
◆ xdrrec_setpos()
Definition at line 376 of file xdr_rec.c.
382 int delta = currpos -
pos;
385 if ((
int)currpos != -1)
386 switch (xdrs->
x_op) {
390 if ((newpos > (
char *)(
void *)(rstrm->
frag_header)) &&
399 if ((delta < (
int)(rstrm->
fbtbc)) &&
403 rstrm->
fbtbc -= delta;
static u_int xdrrec_getpos(XDR *)
◆ xdrrec_skiprecord()
Definition at line 496 of file xdr_rec.c.
static bool_t skip_input_bytes(RECSTREAM *, u_int)
static bool_t set_input_fragment(RECSTREAM *)
bool_t __xdrrec_getrec(XDR *xdrs, enum xprt_stat *statp, bool_t expectdata)
Referenced by clnt_cb_thread(), and svc_vc_recv().
◆ xdrrec_ops
Initial value:= {
}
static bool_t xdrrec_getbytes(XDR *, char *, u_int)
static bool_t xdrrec_putbytes(XDR *, const char *, u_int)
static u_int xdrrec_getpos(XDR *)
static int32_t * xdrrec_inline(XDR *, u_int)
static bool_t xdrrec_setpos(XDR *, u_int)
static void xdrrec_destroy(XDR *)
static bool_t xdrrec_putlong(XDR *, const long *)
static bool_t xdrrec_getlong(XDR *, long *)
Definition at line 100 of file xdr_rec.c.
Referenced by xdrrec_create().