#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}
int CDECL fclose(FILE *file)
static struct rpcdata * _rpcdata(void)
◆ 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}
static WCHAR reason[MAX_STRING_RESOURCE_LEN]
char *CDECL fgets(char *s, int size, FILE *file)
FILE *CDECL fopen(const char *path, const char *mode)
_ACRTIMP size_t __cdecl strlen(const char *)
static struct rpcent * interpret(char *val, size_t len)
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}
_ACRTIMP int __cdecl atoi(const char *)
_ACRTIMP char *__cdecl strpbrk(const char *, const char *)
struct rpcent * getrpcent()
GLdouble GLdouble GLdouble GLdouble q
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}
void CDECL rewind(FILE *file)
◆ rpcdata