Back to index

glibc  2.9
Classes | Defines | Functions
files-proto.c File Reference
#include <netdb.h>
#include "files-parse.c"

Go to the source code of this file.

Classes

struct  protoent_data

Defines

#define ENTNAME   protoent
#define DATABASE   "protocols"
#define TRAILING_LIST_MEMBER   p_aliases
#define TRAILING_LIST_SEPARATOR_P   isspace

Functions

 LINE_PARSER ("#", STRING_FIELD(result->p_name, isspace, 1);INT_FIELD(result->p_proto, isspace, 1, 10,);)

Class Documentation

struct protoent_data

Definition at line 37 of file hesiod-proto.c.


Define Documentation

#define DATABASE   "protocols"

Definition at line 24 of file files-proto.c.

#define ENTNAME   protoent

Definition at line 23 of file files-proto.c.

#define TRAILING_LIST_MEMBER   p_aliases

Definition at line 28 of file files-proto.c.

Definition at line 29 of file files-proto.c.


Function Documentation

LINE_PARSER ( "#"  ,
STRING_FIELD(result->p_name, isspace, 1);INT_FIELD(result->p_proto, isspace, 1, 10,);   
)

Definition at line 32 of file files-proto.c.

          {
            if (result->p_proto == proto)
              break;
          }, int proto)