96 {
"local", AF_LOCAL, 0 }
101static char *strlocase(
char *);
122 if (getrlimit(RLIMIT_NOFILE, &rl) == 0) {
123 return (tbsize = (
int)rl.rlim_max);
143 int maxsize, defsize;
145 maxsize = 256 * 1024;
148 defsize = 1024 * 1024;
216 if ((nettype ==
NULL) || (nettype[0] == 0)) {
221 nettype = strlocase(nettype);
239 char *netid_tcp = (
char *)
NULL;
240 char *netid_udp = (
char *)
NULL;
259 if (!netid_udp && !netid_tcp) {
286 if (
strcmp(nettype,
"udp") == 0)
288 else if (
strcmp(nettype,
"tcp") == 0)
293 if ((netid ==
NULL) || (netid[0] == 0)) {
456 return ((
void *) clnt);
489 int proto_info_size =
sizeof(proto_info);
496 len = proto_info.iMaxSockAddr;
516 if (
ss.ss_family != AF_LOCAL) {
652 if (text_addr &&
dst) {
683 if (nbuf->
len <
sizeof(*
sin)) {
688 if (
inet_ntop(af, &
sin->sin_addr, namebuf,
sizeof namebuf)
699 if (nbuf->
len <
sizeof(*sin6)) {
738 unsigned short port, portlo, porthi;
761 if (*addrstr !=
'/') {
773 port = (porthi << 8) | portlo;
807 memset(sin6, 0,
sizeof *sin6);
816 ret->maxlen =
ret->len =
sizeof *sin6;
825 memset(sun, 0,
sizeof *sun);
890 sa_new = (
struct sockaddr *)
new->buf;
925 switch (
ss.ss_family) {
927 memcpy(&u_addr.sin, &
ss,
sizeof(u_addr.sin));
928 return (u_addr.sin.sin_port != 0);
931 memcpy(&u_addr.sin6, &
ss,
sizeof(u_addr.sin6));
932 return (u_addr.sin6.sin6_port != 0);
937 memcpy(&u_addr.usin, &
ss,
sizeof(u_addr.usin));
938 return (u_addr.usin.sun_path[0] != 0);
_STLP_DECLSPEC complex< float > _STLP_CALL sin(const complex< float > &)
int strcmp(const char *String1, const char *String2)
char * strncpy(char *DstString, const char *SrcString, ACPI_SIZE Count)
CHAR FAR *WSAAPI inet_ntoa(IN IN_ADDR in)
ULONG WSAAPI inet_addr(IN CONST CHAR FAR *cp)
INT WSAAPI inet_pton(_In_ INT Family, _In_ PCSTR pszAddrString, _Out_writes_bytes_(sizeof(IN_ADDR6)) PVOID pAddrBuf)
int asprintf(char **str, const char *fmt,...)
#define clnt_call(rh, proc, xargs, argsp, xres, resp, secs)
#define mem_free(ptr, bsize)
DWORD WINAPI TlsAlloc(VOID)
void freenetconfigent(struct netconfig *netconfigp)
int endnetconfig(void *handlep)
struct netconfig * getnetconfigent(char *netid) const
struct netconfig * getnetconfig(void *handlep)
struct netconfig * getnetpath(void *handlep)
int endnetpath(void *handlep)
GLuint GLuint GLsizei GLenum type
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
_Check_return_ int __cdecl atoi(_In_z_ const char *_Str)
#define IN6_IS_ADDR_LINKLOCAL(a)
#define IN6_IS_ADDR_SITELOCAL(a)
#define memcpy(s1, s2, n)
static unsigned(__cdecl *hash_bstr)(bstr_t s)
#define thr_setspecific(k, p)
#define thr_getspecific(k)
int __rpc_fixup_addr(struct netbuf *new, const struct netbuf *svc)
struct netconfig * __rpcgettp(SOCKET fd)
void * __rpc_setconf(char *nettype) const
static const struct netid_af na_cvt[]
u_int __rpc_get_t_size(int af, int proto, int size)
char * taddr2uaddr(const struct netconfig *nconf, const struct netbuf *nbuf)
int __rpc_sockinfo2netid(struct __rpc_sockinfo *sip, const char **netid)
void freenetbuf(struct netbuf *nbuf)
static int getnettype(const char *)
struct netbuf * __rpc_set_netbuf(struct netbuf *nb, const void *ptr, size_t len)
struct netconfig * __rpc_getconf(void *vhandle)
struct netbuf * __rpc_uaddr2taddr_af(int af, const char *uaddr)
int __rpc_fd2sockinfo(SOCKET fd, struct __rpc_sockinfo *sip)
int __rpc_seman2socktype(int semantics)
char * __rpc_taddr2uaddr_af(int af, const struct netbuf *nbuf)
static const struct _rpcnettype _rpctypelist[]
void freeuaddr(char *uaddr)
int __rpc_socktype2seman(int socktype)
void __rpc_endconf(void *vhandle)
u_int __rpc_get_a_size(int af)
void * rpc_nullproc(CLIENT *clnt)
struct netconfig * __rpc_getconfip(char *nettype) const
int __rpc_nconf2sockinfo(const struct netconfig *nconf, struct __rpc_sockinfo *sip)
int __rpc_sockisbound(SOCKET fd)
SOCKET __rpc_nconf2fd(const struct netconfig *nconf)
struct netbuf * uaddr2taddr(const struct netconfig *nconf, const char *uaddr)
#define offsetof(TYPE, MEMBER)
_Check_return_ _CRTIMP char *__cdecl strdup(_In_opt_z_ const char *_Src)
_CRT_RESTORE_GCC_WARNINGS _CRT_DISABLE_GCC_WARNINGS _Check_return_ _CRTIMP _CONST_RETURN char *__cdecl strrchr(_In_z_ const char *_Str, _In_ int _Ch)
INT WSAAPI getsockname(IN SOCKET s, OUT LPSOCKADDR name, IN OUT INT FAR *namelen)
INT WSAAPI setsockopt(IN SOCKET s, IN INT level, IN INT optname, IN CONST CHAR FAR *optval, IN INT optlen)
INT WSAAPI getsockopt(IN SOCKET s, IN INT level, IN INT optname, OUT CHAR FAR *optval, IN OUT INT FAR *optlen)
SOCKET WSAAPI socket(IN INT af, IN INT type, IN INT protocol)
unsigned long nc_semantics
ADDRESS_FAMILY sin6_family
#define new(TYPE, numElems)
const char *WSAAPI inet_ntop(int af, const void *src, char *dst, size_t cnt)
int PASCAL FAR WSAGetLastError(void)
#define WINSOCK_HANDLE_HASH_SIZE
bool_t(* xdrproc_t)(XDR *,...)