#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.
585{
589
596 }
600 }
606 }
609 if (fraglen == 0 || fraglen > rstrm->
in_maxrec ||
613 }
621 }
622 }
623
624 do {
628
629
630
631 if (
n == -1)
continue;
632
636 }
637
641 }
642
654 }
655 }
656 } while (1);
657
660}
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
int(* readit)(void *, void *, int)
ActualNumberDriverObjects * sizeof(PDRIVER_OBJECT)) PDRIVER_OBJECT *DriverObjectList
static bool_t realloc_stream(RECSTREAM *, u_int)
Referenced by svc_vc_recv(), and xdrrec_skiprecord().
◆ __xdrrec_setblock()
◆ __xdrrec_setnonblock()
◆ fill_input_buf()
Definition at line 709 of file xdr_rec.c.
711{
712 char *where;
715
718
729}
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.
736{
738
745 }
746
753 continue;
754 }
760 }
762}
GLenum const GLvoid * addr
#define memcpy(s1, s2, n)
#define memmove(s1, s2, n)
struct task_struct * current
static bool_t fill_input_buf(RECSTREAM *)
Referenced by set_input_fragment(), and xdrrec_getbytes().
◆ realloc_stream()
Definition at line 826 of file xdr_rec.c.
829{
832
843 }
844
846}
__kernel_ptrdiff_t ptrdiff_t
GLenum GLuint GLenum GLsizei const GLchar * buf
Referenced by __xdrrec_getrec().
◆ set_input_fragment()
◆ skip_input_bytes()
◆ xdrrec_create()
Definition at line 179 of file xdr_rec.c.
188{
190
192
193
194
195
196
197 return;
198 }
202
204 return;
205 }
209
212 return;
213 }
214
215
216
238}
#define mem_free(ptr, bsize)
const struct __rpc_xdr::xdr_ops * x_ops
static u_int fix_buf_size(u_int)
static const struct xdr_ops xdrrec_ops
Referenced by clnt_vc_create(), and makefd_xprt().
◆ xdrrec_destroy()
static void xdrrec_destroy |
( |
XDR * |
xdrs | ) |
|
|
static |
◆ xdrrec_endofrecord()
◆ xdrrec_eof()
Definition at line 531 of file xdr_rec.c.
533{
535
542 }
546}
static bool_t set_input_fragment(RECSTREAM *)
static bool_t skip_input_bytes(RECSTREAM *, u_int)
Referenced by svc_vc_stat().
◆ xdrrec_getbytes()
◆ xdrrec_getlong()
Definition at line 247 of file xdr_rec.c.
250{
254
255
261 } else {
266 }
268}
static bool_t xdrrec_getbytes(XDR *, char *, u_int)
◆ xdrrec_getoutbase()
◆ xdrrec_getpos()
static u_int xdrrec_getpos |
( |
XDR * |
xdrs | ) |
|
|
static |
Definition at line 349 of file xdr_rec.c.
351{
354
355
356
358 switch (xdrs->
x_op) {
359
362 break;
363
366 break;
367
368 default:
370 break;
371 }
373}
Referenced by xdrrec_setpos().
◆ xdrrec_inline()
Definition at line 437 of file xdr_rec.c.
440{
443
445
450 }
451 break;
452
454 if ((len <= rstrm->fbtbc) &&
459 }
460 break;
461
463 break;
464 }
466}
◆ xdrrec_putbytes()
Definition at line 323 of file xdr_rec.c.
327{
330
343 }
344 }
346}
◆ xdrrec_putlong()
Definition at line 271 of file xdr_rec.c.
274{
277
279
280
281
282
289 }
292}
◆ xdrrec_setlastfrag()
void xdrrec_setlastfrag |
( |
XDR * |
xdrs | ) |
|
◆ xdrrec_setpos()
Definition at line 376 of file xdr_rec.c.
379{
382 int delta = currpos -
pos;
383 char *newpos;
384
385 if ((int)currpos != -1)
386 switch (xdrs->
x_op) {
387
390 if ((newpos > (
char *)(
void *)(rstrm->
frag_header)) &&
394 }
395 break;
396
399 if ((delta < (
int)(rstrm->
fbtbc)) &&
403 rstrm->
fbtbc -= delta;
405 }
406 break;
407
409 break;
410 }
412}
static u_int xdrrec_getpos(XDR *)
◆ xdrrec_skiprecord()
Definition at line 496 of file xdr_rec.c.
498{
501
505
510 }
512 }
513
520 }
523}
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_getlong(XDR *, long *)
static void xdrrec_destroy(XDR *)
static int32_t * xdrrec_inline(XDR *, u_int)
static bool_t xdrrec_putlong(XDR *, const long *)
static bool_t xdrrec_putbytes(XDR *, const char *, u_int)
static bool_t xdrrec_setpos(XDR *, u_int)
Definition at line 100 of file xdr_rec.c.
Referenced by xdrrec_create().