ReactOS 0.4.15-dev-8096-ga0eec98
rpcent.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  rpcent
 

Functions

__BEGIN_DECLS void setrpcent (int) __THROW
 
void endrpcent (void) __THROW
 

Function Documentation

◆ endrpcent()

void endrpcent ( void  )

Definition at line 188 of file getrpcent.c.

189{
190 struct rpcdata *d = _rpcdata();
191
192 if (d == 0)
193 return;
194#ifdef YP
195 if (!__yp_nomap && _yp_check(NULL)) {
196 if (d->current && !d->stayopen)
197 free(d->current);
198 d->current = NULL;
199 d->currentlen = 0;
200 return;
201 }
202 __yp_nomap = 0;
203#endif /* YP */
204 if (d->rpcf && !d->stayopen) {
205 fclose(d->rpcf);
206 d->rpcf = NULL;
207 }
208}
#define free
Definition: debug_ros.c:5
#define NULL
Definition: types.h:112
static struct rpcdata * _rpcdata(void)
Definition: getrpcent.c:80
_Check_return_opt_ _CRTIMP int __cdecl fclose(_Inout_ FILE *_File)
#define d
Definition: ke_i.h:81

◆ setrpcent()

__BEGIN_DECLS void setrpcent ( int  f)

Definition at line 163 of file getrpcent.c.

165{
166 struct rpcdata *d = _rpcdata();
167
168 if (d == 0)
169 return;
170#ifdef YP
171 if (!__yp_nomap && _yp_check(NULL)) {
172 if (d->current)
173 free(d->current);
174 d->current = NULL;
175 d->currentlen = 0;
176 return;
177 }
178 __yp_nomap = 0;
179#endif /* YP */
180 if (d->rpcf == NULL)
181 d->rpcf = fopen(RPCDB, "r");
182 else
183 rewind(d->rpcf);
184 d->stayopen |= f;
185}
#define RPCDB
Definition: getrpcent.c:75
_CRTIMP void __cdecl rewind(_Inout_ FILE *_File)
_Check_return_ _CRTIMP FILE *__cdecl fopen(_In_z_ const char *_Filename, _In_z_ const char *_Mode)
#define f
Definition: ke_i.h:83