Back to index

glibc  2.9
Functions
getutent.c File Reference
#include <stdlib.h>
#include <utmp.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

 libc_freeres_ptr (static struct utmp *buffer)
struct utmp__getutent (void)

Function Documentation

struct utmp* __getutent ( void  ) [read]

Definition at line 29 of file getutent.c.

{
  struct utmp *result;

  if (buffer == NULL)
    {
      buffer = (struct utmp *) malloc (sizeof (struct utmp));
      if (buffer == NULL)
        return NULL;
    }

  if (__getutent_r (buffer, &result) < 0)
    return NULL;

  return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

libc_freeres_ptr ( static struct utmp buffer)