Back to index

glibc  2.9
Defines | Functions
getnetgrent.c File Reference
#include <errno.h>
#include <netdb.h>
#include <stdlib.h>
#include <bits/libc-lock.h>

Go to the source code of this file.


#define BUFSIZE   1024


 libc_freeres_ptr (static char *buffer)
static void allocate (void)
int getnetgrent (char **hostp, char **userp, char **domainp)

Define Documentation

#define BUFSIZE   1024

Definition at line 27 of file getnetgrent.c.

Function Documentation

static void allocate ( void  ) [static]

Definition at line 32 of file getnetgrent.c.

  buffer = (char *) malloc (BUFSIZE);

Here is the caller graph for this function:

int getnetgrent ( char **  hostp,
char **  userp,
char **  domainp 

Definition at line 38 of file getnetgrent.c.

  __libc_once_define (static, once);
  __libc_once (once, allocate);

  if (buffer == NULL)
      __set_errno (ENOMEM);
      return -1;

  return __getnetgrent_r (hostp, userp, domainp, buffer, BUFSIZE);

Here is the call graph for this function:

Here is the caller graph for this function:

libc_freeres_ptr ( static char *  buffer)