Back to index

glibc  2.9
Functions
getutid.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__getutid (const struct utmp *id)

Function Documentation

struct utmp* __getutid ( const struct utmp id) [read]

Definition at line 28 of file getutid.c.

{
  struct utmp *result;

  if (buffer == NULL)
    {
      buffer = (struct utmp *) malloc (sizeof (struct utmp));
      if (buffer == NULL)
        return NULL;
    }
  if (__getutid_r (id, buffer, &result) < 0)
    return NULL;

  return result;
}

Here is the call graph for this function:

libc_freeres_ptr ( static struct utmp buffer)