version 1.6, 2003/06/04 16:24:45 |
version 1.7, 2003/06/10 22:20:45 |
|
|
* return NULL. |
* return NULL. |
*/ |
*/ |
static char * |
static char * |
igetcap(buf, cap, type) |
igetcap(char *buf, char *cap, int type) |
char *buf, *cap; |
|
int type; |
|
{ |
{ |
char *bp, *cp; |
char *bp, *cp; |
|
|
|
|
* MAX_RECURSION. |
* MAX_RECURSION. |
*/ |
*/ |
static int |
static int |
getent(cap, len, db_array, fd, name, depth) |
getent(char **cap, u_int *len, char **db_array, int fd, char *name, int depth) |
char **cap, **db_array, *name; |
|
u_int *len; |
|
int fd, depth; |
|
{ |
{ |
char *r_end, *rp, **db_p; |
char *r_end, *rp, **db_p; |
int myfd, eof, foundit; |
int myfd, eof, foundit; |
|
|
* record buf, -1 if not. |
* record buf, -1 if not. |
*/ |
*/ |
static int |
static int |
igetmatch(buf, name) |
igetmatch(char *buf, char *name) |
char *buf, *name; |
|
{ |
{ |
char *np, *bp; |
char *np, *bp; |
|
|
|
|
static char **dbp; |
static char **dbp; |
|
|
static int |
static int |
igetclose() |
igetclose(void) |
{ |
{ |
if (pfp != NULL) { |
if (pfp != NULL) { |
(void)fclose(pfp); |
(void)fclose(pfp); |
|
|
* upon returning an entry with more remaining, and -1 if an error occurs. |
* upon returning an entry with more remaining, and -1 if an error occurs. |
*/ |
*/ |
int |
int |
igetnext(bp, db_array) |
igetnext(char **bp, char **db_array) |
char **bp; |
|
char **db_array; |
|
{ |
{ |
size_t len; |
size_t len; |
int status, done; |
int status, done; |