Back to index

glibc  2.9
Functions | Variables
svc.h File Reference
#include <sunrpc/rpc/svc.h>

Go to the source code of this file.

Functions

 libc_hidden_proto (xprt_register) libc_hidden_proto(xprt_unregister) libc_hidden_proto(svc_register) libc_hidden_proto(svc_unregister) libc_hidden_proto(svcerr_auth) libc_hidden_proto(svcerr_noprog) libc_hidden_proto(svcerr_progvers) extern int registerrpc(u_long prognum
SVCXPRTsvcfd_create (int fd, u_int sendsize, u_int recvsize)
int svcudp_enablecache (SVCXPRT *transp, u_long size)
SVCXPRTsvcunixfd_create (int fd, u_int sendsize, u_int recvsize)
bool_t svc_sendreply_internal (SVCXPRT *xprt, xdrproc_t __xdr_results, caddr_t __xdr_location) attribute_hidden
void svcerr_decode_internal (SVCXPRT *__xprt) attribute_hidden
void svc_getreq_internal (int __rdfds) attribute_hidden
void svc_getreq_common_internal (const int __fd) attribute_hidden
void svc_getreqset_internal (fd_set *__readfds) attribute_hidden
void svc_getreq_poll_internal (struct pollfd *, const int) attribute_hidden
SVCXPRTsvcudp_create_internal (int __sock) attribute_hidden
SVCXPRTsvcudp_bufcreate_internal (int __sock, u_int __sendsz, u_int __recvsz) attribute_hidden

Variables

u_long versnum
u_long u_long procnum
u_long u_long char *(* progname )(char *)
u_long u_long char *(*) xdrproc_ inproc )
u_long u_long char
*(*) xdrproc_t xdrproc_ 
outproc )

Function Documentation

void svc_getreq_internal ( int  __rdfds)
void svc_getreq_poll_internal ( struct pollfd ,
const int   
)
void svc_getreqset_internal ( fd_set __readfds)
bool_t svc_sendreply_internal ( SVCXPRT xprt,
xdrproc_t  __xdr_results,
caddr_t  __xdr_location 
)
void svcerr_decode_internal ( SVCXPRT __xprt)
SVCXPRT* svcfd_create ( int  fd,
u_int  sendsize,
u_int  recvsize 
)

Definition at line 201 of file svc_tcp.c.

{
  return makefd_xprt (fd, sendsize, recvsize);
}
SVCXPRT* svcudp_bufcreate_internal ( int  __sock,
u_int  __sendsz,
u_int  __recvsz 
)
int svcudp_enablecache ( SVCXPRT transp,
u_long  size 
)

Definition at line 468 of file svc_udp.c.

{
  struct svcudp_data *su = su_data (transp);
  struct udp_cache *uc;

  if (su->su_cache != NULL)
    {
      CACHE_PERROR (_("enablecache: cache already enabled"));
      return 0;
    }
  uc = ALLOC (struct udp_cache, 1);
  if (uc == NULL)
    {
      CACHE_PERROR (_("enablecache: could not allocate cache"));
      return 0;
    }
  uc->uc_size = size;
  uc->uc_nextvictim = 0;
  uc->uc_entries = CALLOC (cache_ptr, size * SPARSENESS);
  if (uc->uc_entries == NULL)
    {
      mem_free (uc, sizeof (struct udp_cache));
      CACHE_PERROR (_("enablecache: could not allocate cache data"));
      return 0;
    }
  uc->uc_fifo = CALLOC (cache_ptr, size);
  if (uc->uc_fifo == NULL)
    {
      mem_free (uc->uc_entries, size * SPARSENESS);
      mem_free (uc, sizeof (struct udp_cache));
      CACHE_PERROR (_("enablecache: could not allocate cache fifo"));
      return 0;
    }
  su->su_cache = (char *) uc;
  return 1;
}
SVCXPRT* svcunixfd_create ( int  fd,
u_int  sendsize,
u_int  recvsize 
)

Definition at line 198 of file svc_unix.c.

{
  return makefd_xprt (fd, sendsize, recvsize);
}

Here is the call graph for this function:


Variable Documentation

u_long u_long char*(*) xdrproc_ inproc)

Definition at line 14 of file svc.h.

u_long u_long char*(*) xdrproc_t xdrproc_ outproc)

Definition at line 14 of file svc.h.

Definition at line 13 of file svc.h.

u_long u_long char*(* progname)(char *)

Definition at line 14 of file svc.h.

Definition at line 13 of file svc.h.