#include <wintirpc.h>
#include <sys/types.h>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <rpc/rpc.h>
#include <libc_private.h>
Go to the source code of this file.
◆ MAXALIASES
◆ RPCDB
◆ _rpcdata()
◆ endrpcent()
Definition at line 188 of file getrpcent.c.
189{
191
193 return;
194#ifdef YP
195 if (!__yp_nomap && _yp_check(
NULL)) {
196 if (
d->current && !
d->stayopen)
200 return;
201 }
202 __yp_nomap = 0;
203#endif
204 if (
d->rpcf && !
d->stayopen) {
207 }
208}
static struct rpcdata * _rpcdata(void)
_Check_return_opt_ _CRTIMP int __cdecl fclose(_Inout_ FILE *_File)
◆ getrpcent()
Definition at line 211 of file getrpcent.c.
212{
214#ifdef YP
218 int vallen;
219#endif
220
223#ifdef YP
224 if (!__yp_nomap && _yp_check(&
d->domain)) {
225 if (
d->current ==
NULL &&
d->currentlen == 0) {
226 reason = yp_first(
d->domain,
"rpc.bynumber",
227 &
d->current, &
d->currentlen,
229 } else {
230 reason = yp_next(
d->domain,
"rpc.bynumber",
231 d->current,
d->currentlen,
232 &
d->current, &
d->currentlen,
234 }
236 case 0:
237 break;
238 case YPERR_MAP:
239 __yp_nomap = 1;
240 goto no_yp;
241 break;
242 default:
243 return(0);
244 break;
245 }
249 return hp;
250 }
251no_yp:
252#endif
255
259}
ACPI_SIZE strlen(const char *String)
static WCHAR reason[MAX_STRING_RESOURCE_LEN]
static struct rpcent * interpret(char *val, size_t len)
_Check_return_ _CRTIMP FILE *__cdecl fopen(_In_z_ const char *_Filename, _In_z_ const char *_Mode)
_Check_return_opt_ _CRTIMP char *__cdecl fgets(_Out_writes_z_(_MaxCount) char *_Buf, _In_ int _MaxCount, _Inout_ FILE *_File)
Referenced by interpret().
◆ interpret()
Definition at line 262 of file getrpcent.c.
265{
269
271
273 return (0);
288
289 d->rpc.r_name =
d->line;
290 while (*
cp ==
' ' || *
cp ==
'\t')
293 q =
d->rpc.r_aliases =
d->rpc_aliases;
298 if (*
cp ==
' ' || *
cp ==
'\t') {
300 continue;
301 }
307 }
310}
char * strncpy(char *DstString, const char *SrcString, ACPI_SIZE Count)
char * strpbrk(const char *String, const char *Delimiters)
struct rpcent * getrpcent()
GLdouble GLdouble GLdouble GLdouble q
_Check_return_ int __cdecl atoi(_In_z_ const char *_Str)
Referenced by getrpcent().
◆ setrpcent()
Definition at line 163 of file getrpcent.c.
165{
167
169 return;
170#ifdef YP
171 if (!__yp_nomap && _yp_check(
NULL)) {
176 return;
177 }
178 __yp_nomap = 0;
179#endif
182 else
185}
_CRTIMP void __cdecl rewind(_Inout_ FILE *_File)
◆ rpcdata