|
Coda Distributed File System
|
#include <stdio.h>#include <string.h>#include <sys/file.h>#include <sys/types.h>#include <sys/time.h>#include <sys/socket.h>#include <netinet/in.h>#include <errno.h>#include <stdarg.h>#include <stdlib.h>#include <assert.h>#include <rpc2/multi.h>#include <rpc2/se.h>#include "rpc2.private.h"
Macros | |
| #define | _ROUND(n, a) (n) = (void *)((((intptr_t)n) + ((a) - 1)) & ~((a) - 1)) |
| #define | _INCR(n, a) (n) = (void *)((intptr_t)(n) + a) |
| #define | _PAD(n) (((n) + 3) & ~3) |
| #define | _PADWORD(n) (((n) + 1) & ~1) |
| #define | _PADLONG(n) _PAD(n) |
| #define | CHECK(size) |
Functions | |
| long | MRPC_UnpackMulti (int HowMany, RPC2_Handle ConnHandleList[], ARG_INFO *ArgInfo, RPC2_PacketBuffer *rspbuffer, long rpcval, long offset) |
| int | get_len (ARG **a_types, PARM **args, MODE mode) |
| void | pack (ARG *a_types, PARM **args, unsigned char **_ptr) |
| void | pack_struct (ARG *a_types, PARM **args, unsigned char **ptr) |
| int | unpack_struct (ARG *a_types, PARM **args, unsigned char **_ptr, char *_end, long offset) |
| long | MRPC_MakeMulti (int ServerOp, ARG ArgTypes[], RPC2_Integer HowMany, RPC2_Handle CIDList[], RPC2_Integer RCList[], RPC2_Multicast *MCast, RPC2_HandleResult_func *HandleResult, struct timeval *Timeout,...) |
| int | struct_len (ARG **a_types, PARM **args) |
| int | unpack (ARG *a_types, PARM *args, unsigned char **_ptr, char *_end, long offset) |
| #define _INCR | ( | n, | |
| a | |||
| ) | (n) = (void *)((intptr_t)(n) + a) |
| #define _PAD | ( | n | ) | (((n) + 3) & ~3) |
| #define _PADWORD | ( | n | ) | (((n) + 1) & ~1) |
| #define _ROUND | ( | n, | |
| a | |||
| ) | (n) = (void *)((((intptr_t)n) + ((a) - 1)) & ~((a) - 1)) |
| #define CHECK | ( | size | ) |
| long MRPC_MakeMulti | ( | int | ServerOp, |
| ARG | ArgTypes[], | ||
| RPC2_Integer | HowMany, | ||
| RPC2_Handle | CIDList[], | ||
| RPC2_Integer | RCList[], | ||
| RPC2_Multicast * | MCast, | ||
| RPC2_HandleResult_func * | HandleResult, | ||
| struct timeval * | Timeout, | ||
| ... | |||
| ) |
| long MRPC_UnpackMulti | ( | int | HowMany, |
| RPC2_Handle | ConnHandleList[], | ||
| ARG_INFO * | ArgInfo, | ||
| RPC2_PacketBuffer * | rspbuffer, | ||
| long | rpcval, | ||
| long | offset | ||
| ) |