getprotoent.c File Reference

#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>

Include dependency graph for getprotoent.c:

Go to the source code of this file.

Defines

#define MAXALIASES   35

Functions

void setprotoent (int f)
void endprotoent ()
protoentgetprotoent ()
static char * any (char *cp, char *match)

Variables

static FILEprotof = NULL
static char line [BUFSIZ+1]
static struct protoent proto
static char * proto_aliases [MAXALIASES]
int _proto_stayopen


Define Documentation

#define MAXALIASES   35
 

Definition at line 34 of file getprotoent.c.


Function Documentation

static char* any char *  cp,
char *  match
[static]
 

Definition at line 111 of file getprotoent.c.

References c, and mp.

void endprotoent  ) 
 

Definition at line 54 of file getprotoent.c.

References fclose(), NULL, and protof.

Referenced by getprotobyname(), and getprotobynumber().

struct protoent* getprotoent  ) 
 

Definition at line 64 of file getprotoent.c.

References _PATH_PROTOCOLS, any(), atoi, BUFSIZ, cp, fgets(), fopen(), MAXALIASES, NULL, p, proto, and protof.

Referenced by getprotobyname(), and getprotobynumber().

void setprotoent int  f  ) 
 

Definition at line 43 of file getprotoent.c.

References _PATH_PROTOCOLS, fopen(), NULL, protof, and rewind().

Referenced by getprotobyname(), and getprotobynumber().


Variable Documentation

int _proto_stayopen
 

Definition at line 40 of file getprotoent.c.

char line[BUFSIZ+1] [static]
 

Definition at line 37 of file getprotoent.c.

struct protoent proto [static]
 

Definition at line 38 of file getprotoent.c.

char* proto_aliases[MAXALIASES] [static]
 

Definition at line 39 of file getprotoent.c.

FILE* protof = NULL [static]
 

Definition at line 36 of file getprotoent.c.

Referenced by endprotoent(), getprotoent(), and setprotoent().


Generated on Fri Apr 14 23:16:48 2006 for minix by  doxygen 1.4.6