RTEMS CPU Kit with SuperCore  4.11.2
Macros | Typedefs | Functions
pmap_rmt.c File Reference
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <net/if.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <assert.h>
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <rpc/rpc.h>
#include <rpc/pmap_prot.h>
#include <rpc/pmap_clnt.h>
#include <rpc/pmap_rmt.h>
#include <stdlib.h>
#include <sys/select.h>
Include dependency graph for pmap_rmt.c:

Macros

#define MAX_BROADCAST_SIZE   1400
 
#define max(a, b)   (a > b ? a : b)
 
#define size(p)   max((p).sa_len, sizeof(p))
 

Typedefs

typedef bool_t(* resultproc_t) (caddr_t, struct sockaddr_in *)
 

Functions

enum clnt_stat pmap_rmtcall (struct sockaddr_in *addr, u_long prog, u_long vers, u_long proc, xdrproc_t xdrargs, caddr_t argsp, xdrproc_t xdrres, caddr_t resp, struct timeval tout, u_long *port_ptr)
 
bool_t xdr_rmtcall_args (XDR *xdrs, struct rmtcallargs *cap)
 
bool_t xdr_rmtcallres (XDR *xdrs, struct rmtcallres *crp)
 
enum clnt_stat clnt_broadcast (u_long prog, u_long vers, u_long proc, xdrproc_t xargs, caddr_t argsp, xdrproc_t xresults, caddr_t resultsp, resultproc_t eachresult)