Go to the source code of this file.
|
__BEGIN_DECLS u_int | __rpc_get_a_size (int) |
|
int | __rpc_dtbsize (void) |
|
int | _rpc_dtablesize (void) |
|
struct netconfig * | __rpcgettp (int) |
|
int | __rpc_get_default_domain (char **) |
|
char * | __rpc_taddr2uaddr_af (int, const struct netbuf *) |
|
struct netbuf * | __rpc_uaddr2taddr_af (int, const char *) |
|
int | __rpc_fixup_addr (struct netbuf *, const struct netbuf *) |
|
int | __rpc_sockinfo2netid (struct __rpc_sockinfo *, const char **) |
|
int | __rpc_seman2socktype (int) |
|
int | __rpc_socktype2seman (int) |
|
void * | rpc_nullproc (CLIENT *) |
|
int | __rpc_sockisbound (SOCKET) |
|
struct netbuf * | __rpcb_findaddr (rpcprog_t, rpcvers_t, const struct netconfig *, const char *, CLIENT **) |
|
bool_t | rpc_control (int, void *) |
|
char * | _get_next_token (char *, int) |
|
◆ __RPC_GETXID
◆ RPC_MAXADDRSIZE
◆ RPC_MAXDATASIZE
◆ __rpc_dtbsize()
Definition at line 110 of file rpc_generic.c.
111{
112#ifdef _WIN32
114#else
115
116 static int tbsize;
117 struct rlimit rl;
118
119 if (tbsize) {
120 return (tbsize);
121 }
122 if (getrlimit(RLIMIT_NOFILE, &rl) == 0) {
123 return (tbsize = (int)rl.rlim_max);
124 }
125
126
127
128
129 return (32);
130#endif
131}
#define WINSOCK_HANDLE_HASH_SIZE
◆ __rpc_fixup_addr()
Definition at line 883 of file rpc_generic.c.
884{
885#ifdef INET6
888
890 sa_new = (
struct sockaddr *)
new->buf;
891
896
902 }
903 }
904#endif
905 return 1;
906}
#define IN6_IS_ADDR_LINKLOCAL(a)
#define IN6_IS_ADDR_SITELOCAL(a)
#define new(TYPE, numElems)
◆ __rpc_get_a_size()
Definition at line 172 of file rpc_generic.c.
174{
175 switch (af) {
178#ifdef INET6
181#endif
182#ifdef AF_LOCAL
183 case AF_LOCAL:
185#endif
186 default:
187 break;
188 }
190}
Referenced by __rpc_nconf2sockinfo().
◆ __rpc_get_default_domain()
int __rpc_get_default_domain |
( |
char ** |
domain | ) |
|
Definition at line 72 of file rpcdname.c.
74{
76 return (0);
77 return (-1);
78}
static char * get_default_domain()
◆ __rpc_seman2socktype()
int __rpc_seman2socktype |
( |
int |
semantics | ) |
|
◆ __rpc_sockinfo2netid()
Definition at line 580 of file rpc_generic.c.
581{
584
586
591 if (netid)
592 *netid = "unix";
593 } else {
594 if (netid)
596 }
599 return 1;
600 }
601 }
604
605 return 0;
606}
int strcmp(const char *String1, const char *String2)
void freenetconfigent(struct netconfig *netconfigp)
struct netconfig * getnetconfigent(char *netid) const
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
static const struct netid_af na_cvt[]
Referenced by __rpcgettp().
◆ __rpc_sockisbound()
Definition at line 909 of file rpc_generic.c.
910{
912 union {
915#ifdef AF_LOCAL
917#endif
918 } u_addr;
920
923 return 0;
924
925 switch (
ss.ss_family) {
927 memcpy(&u_addr.sin, &
ss,
sizeof(u_addr.sin));
928 return (u_addr.sin.sin_port != 0);
929#ifdef INET6
931 memcpy(&u_addr.sin6, &
ss,
sizeof(u_addr.sin6));
932 return (u_addr.sin6.sin6_port != 0);
933#endif
934#ifdef AF_LOCAL
935 case AF_LOCAL:
936
937 memcpy(&u_addr.usin, &
ss,
sizeof(u_addr.usin));
938 return (u_addr.usin.sun_path[0] != 0);
939#endif
940 default:
941 break;
942 }
943
944 return 0;
945}
_STLP_DECLSPEC complex< float > _STLP_CALL sin(const complex< float > &)
#define memcpy(s1, s2, n)
INT WSAAPI getsockname(IN SOCKET s, OUT LPSOCKADDR name, IN OUT INT FAR *namelen)
◆ __rpc_socktype2seman()
int __rpc_socktype2seman |
( |
int |
socktype | ) |
|
Definition at line 859 of file rpc_generic.c.
860{
861 switch (socktype) {
868 default:
869 break;
870 }
871
872 return -1;
873}
◆ __rpc_taddr2uaddr_af()
Definition at line 663 of file rpc_generic.c.
664{
667#ifdef AF_LOCAL
669#endif
671#ifdef INET6
674#endif
676
679
680 switch (af) {
682#ifdef __REACTOS__
683 if (nbuf->
len <
sizeof(*
sin)) {
685 }
686#endif
688 if (
inet_ntop(af, &
sin->sin_addr, namebuf,
sizeof namebuf)
695 break;
696#ifdef INET6
698#ifdef __REACTOS__
699 if (nbuf->
len <
sizeof(*sin6)) {
701 }
702#endif
711 break;
712#endif
713#ifdef AF_LOCAL
714 case AF_LOCAL:
716
717
718
722
724 break;
725#endif
726 default:
728 }
729
731}
int asprintf(char **str, const char *fmt,...)
#define offsetof(TYPE, MEMBER)
const char *WSAAPI inet_ntop(int af, const void *src, char *dst, size_t cnt)
Referenced by taddr2uaddr().
◆ __rpc_uaddr2taddr_af()
Definition at line 734 of file rpc_generic.c.
735{
738 unsigned short port, portlo, porthi;
740#ifdef INET6
742#endif
743#ifdef AF_LOCAL
745#endif
746
749#ifdef __REACTOS__
752#endif
756
757
758
759
760
761 if (*addrstr != '/') {
767
773 port = (porthi << 8) | portlo;
774 }
775
779
780 switch (af) {
788#ifndef __REACTOS__
790#else
793#endif
798 }
801 break;
802#ifdef INET6
807 memset(sin6, 0,
sizeof *sin6);
815 }
816 ret->maxlen =
ret->len =
sizeof *sin6;
818 break;
819#endif
820#ifdef AF_LOCAL
821 case AF_LOCAL:
825 memset(sun, 0,
sizeof *sun);
831 break;
832#endif
833 default:
834 break;
835 }
839}
char * strncpy(char *DstString, const char *SrcString, ACPI_SIZE Count)
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)
_Check_return_ int __cdecl atoi(_In_z_ const char *_Str)
static unsigned(__cdecl *hash_bstr)(bstr_t s)
_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)
ADDRESS_FAMILY sin6_family
Referenced by uaddr2taddr().
◆ __rpcb_findaddr()
◆ __rpcgettp()
◆ _get_next_token()
Definition at line 228 of file getnetpath.c.
231{
233 char *np;
234 char *ep;
235
238 }
239
240
241
242 if ((
cp > npp) && (
cp[-1] ==
'\\')) {
243
244 if ((
cp > npp + 1) && (
cp[-2] !=
'\\')) {
245
247
248
249
250
252 }
253 }
254
256
257 ep = npp;
258 while ((np =
strchr(ep,
'\\')) != 0) {
259 if (np[1] == '\\')
260 np++;
261 strcpy(np, (ep = &np[1]));
262 }
264}
char * strcpy(char *DstString, const char *SrcString)
char * strchr(const char *String, int ch)
char * _get_next_token(char *, int)
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 token
Referenced by _get_next_token(), getnetpath(), and parse_ncp().
◆ _rpc_dtablesize()
◆ rpc_control()
Definition at line 784 of file svc.c.
785{
787
788 switch (what)
789 {
799 default:
800 break;
801 }
803}
#define RPC_SVC_CONNMAXREC_SET
#define RPC_SVC_CONNMAXREC_GET
◆ rpc_nullproc()
Definition at line 447 of file rpc_generic.c.
449{
451
455 }
456 return ((void *) clnt);
457}
#define clnt_call(rh, proc, xargs, argsp, xres, resp, secs)
bool_t(* xdrproc_t)(XDR *,...)