Back to index

glibc  2.9
Classes | Defines | Functions | Variables
files-service.c File Reference
#include <netinet/in.h>
#include <netdb.h>
#include "files-parse.c"

Go to the source code of this file.

Classes

struct  servent_data

Defines

#define ENTNAME   servent
#define DATABASE   "services"
#define TRAILING_LIST_MEMBER   s_aliases
#define TRAILING_LIST_SEPARATOR_P   isspace
#define ISSLASH(c)   ((c) == '/')

Functions

 LINE_PARSER ("#", STRING_FIELD(result->s_name, isspace, 1);INT_FIELD(result->s_port, ISSLASH, 10, 0, htons);STRING_FIELD(result->s_proto, isspace, 1);)

Variables

const char * name

Class Documentation

struct servent_data

Definition at line 36 of file hesiod-service.c.


Define Documentation

#define DATABASE   "services"

Definition at line 25 of file files-service.c.

#define ENTNAME   servent

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

#define ISSLASH (   c)    ((c) == '/')

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

#define TRAILING_LIST_MEMBER   s_aliases

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

Definition at line 30 of file files-service.c.


Function Documentation

LINE_PARSER ( "#"  ,
STRING_FIELD(result->s_name, isspace, 1);INT_FIELD(result->s_port, ISSLASH, 10, 0, htons);STRING_FIELD(result->s_proto, isspace, 1);   
)

Definition at line 34 of file files-service.c.

                                                                   : 0),
          (".%s/%s", name, proto ?: ""),
          {
            /* Must match both protocol (if specified) and name.  */
            if (proto != NULL && strcmp (result->s_proto, proto))
              continue;
            LOOKUP_NAME (s_name, s_aliases)
          },

Variable Documentation

const char* name

Definition at line 49 of file files-service.c.