Back to index

glibc  2.9
Defines | Functions | Variables
nscd_proto.h File Reference
#include <grp.h>
#include <netdb.h>
#include <pwd.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define NSS_NSCD_RETRY   100

Functions

int __nscd_getpwnam_r (const char *name, struct passwd *resultbuf, char *buffer, size_t buflen, struct passwd **result)
int __nscd_getpwuid_r (uid_t uid, struct passwd *resultbuf, char *buffer, size_t buflen, struct passwd **result)
int __nscd_getgrnam_r (const char *name, struct group *resultbuf, char *buffer, size_t buflen, struct group **result)
int __nscd_getgrgid_r (gid_t gid, struct group *resultbuf, char *buffer, size_t buflen, struct group **result)
int __nscd_gethostbyname_r (const char *name, struct hostent *resultbuf, char *buffer, size_t buflen, struct hostent **result, int *h_errnop)
int __nscd_gethostbyname2_r (const char *name, int af, struct hostent *resultbuf, char *buffer, size_t buflen, struct hostent **result, int *h_errnop)
int __nscd_gethostbyaddr_r (const void *addr, socklen_t len, int type, struct hostent *resultbuf, char *buffer, size_t buflen, struct hostent **result, int *h_errnop)
int __nscd_getai (const char *key, struct nscd_ai_result **result, int *h_errnop)
int __nscd_getgrouplist (const char *user, gid_t group, long int *size, gid_t **groupsp, long int limit)
int __nscd_getservbyname_r (const char *name, const char *proto, struct servent *result_buf, char *buf, size_t buflen, struct servent **result)
int __nscd_getservbyport_r (int port, const char *proto, struct servent *result_buf, char *buf, size_t buflen, struct servent **result)

Variables

int __nss_not_use_nscd_passwd attribute_hidden

Define Documentation

#define NSS_NSCD_RETRY   100

Definition at line 28 of file nscd_proto.h.


Function Documentation

int __nscd_getai ( const char *  key,
struct nscd_ai_result **  result,
int h_errnop 
)

Here is the caller graph for this function:

int __nscd_getgrgid_r ( gid_t  gid,
struct group resultbuf,
char *  buffer,
size_t  buflen,
struct group **  result 
)

Definition at line 58 of file nscd_getgr_r.c.

{
  char buf[3 * sizeof (gid_t)];
  buf[sizeof (buf) - 1] = '\0';
  char *cp = _itoa_word (gid, buf + sizeof (buf) - 1, 10, 0);

  return nscd_getgr_r (cp, buf + sizeof (buf) - cp, GETGRBYGID, resultbuf,
                     buffer, buflen, result);
}

Here is the call graph for this function:

int __nscd_getgrnam_r ( const char *  name,
struct group resultbuf,
char *  buffer,
size_t  buflen,
struct group **  result 
)

Definition at line 49 of file nscd_getgr_r.c.

{
  return nscd_getgr_r (name, strlen (name) + 1, GETGRBYNAME, resultbuf,
                     buffer, buflen, result);
}

Here is the call graph for this function:

int __nscd_getgrouplist ( const char *  user,
gid_t  group,
long int size,
gid_t **  groupsp,
long int  limit 
)

Here is the caller graph for this function:

int __nscd_gethostbyaddr_r ( const void *  addr,
socklen_t  len,
int  type,
struct hostent resultbuf,
char *  buffer,
size_t  buflen,
struct hostent **  result,
int h_errnop 
)

Definition at line 67 of file nscd_gethst_r.c.

{
  request_type reqtype;

  if (!((len == INADDRSZ && type == AF_INET)
       || (len == IN6ADDRSZ && type == AF_INET6)))
    /* LEN and TYPE do not match.  */
    return -1;

  reqtype = type == AF_INET6 ? GETHOSTBYADDRv6 : GETHOSTBYADDR;

  return nscd_gethst_r (addr, len, reqtype, resultbuf, buffer, buflen, result,
                     h_errnop);
}

Here is the call graph for this function:

int __nscd_gethostbyname2_r ( const char *  name,
int  af,
struct hostent resultbuf,
char *  buffer,
size_t  buflen,
struct hostent **  result,
int h_errnop 
)

Definition at line 53 of file nscd_gethst_r.c.

{
  request_type reqtype;

  reqtype = af == AF_INET6 ? GETHOSTBYNAMEv6 : GETHOSTBYNAME;

  return nscd_gethst_r (name, strlen (name) + 1, reqtype, resultbuf,
                     buffer, buflen, result, h_errnop);
}

Here is the call graph for this function:

int __nscd_gethostbyname_r ( const char *  name,
struct hostent resultbuf,
char *  buffer,
size_t  buflen,
struct hostent **  result,
int h_errnop 
)

Definition at line 39 of file nscd_gethst_r.c.

{
  request_type reqtype;

  reqtype = (_res.options & RES_USE_INET6) ? GETHOSTBYNAMEv6 : GETHOSTBYNAME;

  return nscd_gethst_r (name, strlen (name) + 1, reqtype, resultbuf,
                     buffer, buflen, result, h_errnop);
}

Here is the call graph for this function:

int __nscd_getpwnam_r ( const char *  name,
struct passwd resultbuf,
char *  buffer,
size_t  buflen,
struct passwd **  result 
)

Definition at line 47 of file nscd_getpw_r.c.

{
  if (name == NULL)
    return -1;

  return nscd_getpw_r (name, strlen (name) + 1, GETPWBYNAME, resultbuf,
                     buffer, buflen, result);
}

Here is the call graph for this function:

int __nscd_getpwuid_r ( uid_t  uid,
struct passwd resultbuf,
char *  buffer,
size_t  buflen,
struct passwd **  result 
)

Definition at line 58 of file nscd_getpw_r.c.

{
  char buf[3 * sizeof (uid_t)];
  buf[sizeof (buf) - 1] = '\0';
  char *cp = _itoa_word (uid, buf + sizeof (buf) - 1, 10, 0);

  return nscd_getpw_r (cp, buf + sizeof (buf) - cp, GETPWBYUID, resultbuf,
                     buffer, buflen, result);
}

Here is the call graph for this function:

int __nscd_getservbyname_r ( const char *  name,
const char *  proto,
struct servent result_buf,
char *  buf,
size_t  buflen,
struct servent **  result 
)

Definition at line 38 of file nscd_getserv_r.c.

{
  return nscd_getserv_r (name, strlen (name), proto, GETSERVBYNAME, result_buf,
                      buf, buflen, result);
}

Here is the call graph for this function:

int __nscd_getservbyport_r ( int  port,
const char *  proto,
struct servent result_buf,
char *  buf,
size_t  buflen,
struct servent **  result 
)

Definition at line 48 of file nscd_getserv_r.c.

{
  char portstr[3 * sizeof (int) + 2];
  portstr[sizeof (portstr) - 1] = '\0';
  char *cp = _itoa_word (port, portstr + sizeof (portstr) - 1, 10, 0);

  return nscd_getserv_r (cp, portstr + sizeof (portstr) - cp, proto,
                      GETSERVBYPORT, result_buf, buf, buflen, result);
}

Here is the call graph for this function:


Variable Documentation

Definition at line 36 of file nscd_proto.h.