Back to index

glibc  2.9
Defines | Functions | Variables
getXXent_r.c File Reference
#include <errno.h>
#include <bits/libc-lock.h>
#include "nsswitch.h"
#include <shlib-compat.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define REENTRANT_GETNAME   APPEND_R (GETFUNC_NAME)
#define APPEND_R(Name)   CONCAT2_2 (Name, _r)
#define INTERNAL(Name)   CONCAT2_2 (__, Name)
#define CONCAT2_1(Pre, Post)   CONCAT2_2 (Pre, Post)
#define CONCAT2_2(Pre, Post)   Pre##Post
#define NEW(name)   NEW1 (name)
#define NEW1(name)   __new_##name
#define SETFUNC_NAME_STRING   STRINGIZE (SETFUNC_NAME)
#define GETFUNC_NAME_STRING   STRINGIZE (REENTRANT_GETNAME)
#define ENDFUNC_NAME_STRING   STRINGIZE (ENDFUNC_NAME)
#define DATABASE_NAME_STRING   STRINGIZE (DATABASE_NAME)
#define STRINGIZE(Name)   STRINGIZE1 (Name)
#define STRINGIZE1(Name)   #Name
#define DB_LOOKUP_FCT   CONCAT3_1 (__nss_, DATABASE_NAME, _lookup2)
#define CONCAT3_1(Pre, Name, Post)   CONCAT3_2 (Pre, Name, Post)
#define CONCAT3_2(Pre, Name, Post)   Pre##Name##Post
#define H_ERRNO_PARM
#define H_ERRNO_VAR
#define H_ERRNO_VAR_P   NULL
#define STAYOPEN   void
#define STAYOPEN_VAR   0
#define STAYOPEN_TMPVAR   NULL
#define NEED__RES   0
#define do_default_symbol_version(real, name, version)   versioned_symbol (libc, real, name, version)

Functions

 __libc_lock_define_initialized (static, lock)
void ENDFUNC_NAME (void)
int INTERNAL() REENTRANT_GETNAME (LOOKUP_TYPE *resbuf, char *buffer, size_t buflen, LOOKUP_TYPE **result H_ERRNO_PARM)
 strong_alias (INTERNAL(REENTRANT_GETNAME), NEW(REENTRANT_GETNAME))
 do_default_symbol_version (NEW(REENTRANT_GETNAME), REENTRANT_GETNAME, GLIBC_2_1_2)

Variables

static service_usernip
static service_userlast_nip
static service_userstartp

Define Documentation

#define APPEND_R (   Name)    CONCAT2_2 (Name, _r)

Definition at line 52 of file getXXent_r.c.

#define CONCAT2_1 (   Pre,
  Post 
)    CONCAT2_2 (Pre, Post)

Definition at line 54 of file getXXent_r.c.

#define CONCAT2_2 (   Pre,
  Post 
)    Pre##Post

Definition at line 55 of file getXXent_r.c.

#define CONCAT3_1 (   Pre,
  Name,
  Post 
)    CONCAT3_2 (Pre, Name, Post)

Definition at line 68 of file getXXent_r.c.

#define CONCAT3_2 (   Pre,
  Name,
  Post 
)    Pre##Name##Post

Definition at line 69 of file getXXent_r.c.

Definition at line 62 of file getXXent_r.c.

#define DB_LOOKUP_FCT   CONCAT3_1 (__nss_, DATABASE_NAME, _lookup2)

Definition at line 67 of file getXXent_r.c.

#define do_default_symbol_version (   real,
  name,
  version 
)    versioned_symbol (libc, real, name, version)

Definition at line 202 of file getXXent_r.c.

Definition at line 61 of file getXXent_r.c.

Definition at line 60 of file getXXent_r.c.

#define H_ERRNO_PARM

Definition at line 78 of file getXXent_r.c.

#define H_ERRNO_VAR

Definition at line 79 of file getXXent_r.c.

#define H_ERRNO_VAR_P   NULL

Definition at line 80 of file getXXent_r.c.

#define INTERNAL (   Name)    CONCAT2_2 (__, Name)

Definition at line 53 of file getXXent_r.c.

#define NEED__RES   0

Definition at line 94 of file getXXent_r.c.

#define NEW (   name)    NEW1 (name)

Definition at line 56 of file getXXent_r.c.

#define NEW1 (   name)    __new_##name

Definition at line 57 of file getXXent_r.c.

Definition at line 51 of file getXXent_r.c.

Definition at line 59 of file getXXent_r.c.

#define STAYOPEN   void

Definition at line 88 of file getXXent_r.c.

#define STAYOPEN_TMPVAR   NULL

Definition at line 90 of file getXXent_r.c.

#define STAYOPEN_VAR   0

Definition at line 89 of file getXXent_r.c.

#define STRINGIZE (   Name)    STRINGIZE1 (Name)

Definition at line 63 of file getXXent_r.c.

#define STRINGIZE1 (   Name)    #Name

Definition at line 64 of file getXXent_r.c.


Function Documentation

__libc_lock_define_initialized ( static  ,
lock   
)

Definition at line 113 of file getXXent_r.c.

Here is the call graph for this function:

void ENDFUNC_NAME ( void  )

Definition at line 137 of file getXXent_r.c.

{
  int save;

  /* If the service has not been used before do not do anything.  */
  if (startp != NULL)
    {
      __libc_lock_lock (lock);
      __nss_endent (ENDFUNC_NAME_STRING, DB_LOOKUP_FCT, &nip, &startp,
                  &last_nip, NEED__RES);
      save = errno;
      __libc_lock_unlock (lock);
      __set_errno (save);
    }
}

Here is the call graph for this function:

int INTERNAL() REENTRANT_GETNAME ( LOOKUP_TYPE resbuf,
char *  buffer,
size_t  buflen,
LOOKUP_TYPE **result  H_ERRNO_PARM 
)

Definition at line 155 of file getXXent_r.c.

Here is the call graph for this function:


Variable Documentation

Definition at line 101 of file getXXent_r.c.

service_user* nip [static]

Definition at line 99 of file getXXent_r.c.

service_user* startp [static]

Definition at line 103 of file getXXent_r.c.