Skip to content

Instantly share code, notes, and snippets.

@ncopa
Created December 15, 2014 08:53
Show Gist options
  • Save ncopa/8ee3fa4516e0718300cd to your computer and use it in GitHub Desktop.
Save ncopa/8ee3fa4516e0718300cd to your computer and use it in GitHub Desktop.
#ifdef __cplusplus
extern "C" {
#endif
/* These are defined in /usr/include/rpc/netdb.h */
#if !defined(__GLIBC__)
struct rpcent {
char *r_name; /* name of server for this rpc program */
char **r_aliases; /* alias list */
int r_number; /* rpc program number */
};
/* Old interfaces that return a pointer to a static area; MT-unsafe */
extern struct rpcent *getrpcbyname(const char *);
extern struct rpcent *getrpcbynumber(int);
extern struct rpcent *getrpcent(void);
#endif
extern void setrpcent(int) __THROW;
extern void endrpcent(void) __THROW;
#ifdef __cplusplus
}
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment