Back to index

glibc  2.9
Functions
utmp.h File Reference
#include <login/utmp.h>

Go to the source code of this file.

Functions

void __updwtmp (__const char *__wtmp_file, __const struct utmp *__utmp)
int __utmpname (__const char *__file)
struct utmp__getutent (void)
void __setutent (void)
void __endutent (void)
struct utmp__getutid (__const struct utmp *__id)
struct utmp__getutline (__const struct utmp *__line)
struct utmp__pututline (__const struct utmp *__utmp_ptr)
int __getutent_r (struct utmp *__buffer, struct utmp **__result)
int __getutid_r (__const struct utmp *__id, struct utmp *__buffer, struct utmp **__result)
int __getutline_r (__const struct utmp *__line, struct utmp *__buffer, struct utmp **__result)

Function Documentation

void __endutent ( void  )

Here is the caller graph for this function:

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:

int __getutent_r ( struct utmp __buffer,
struct utmp **  __result 
)

Here is the caller graph for this function:

struct utmp* __getutid ( __const struct utmp __id) [read]

Here is the caller graph for this function:

int __getutid_r ( __const struct utmp __id,
struct utmp __buffer,
struct utmp **  __result 
)

Here is the caller graph for this function:

struct utmp* __getutline ( __const struct utmp __line) [read]

Here is the caller graph for this function:

int __getutline_r ( __const struct utmp __line,
struct utmp __buffer,
struct utmp **  __result 
)

Here is the caller graph for this function:

struct utmp* __pututline ( __const struct utmp __utmp_ptr) [read]

Here is the caller graph for this function:

void __setutent ( void  )

Definition at line 131 of file getutent_r.c.

{
  __libc_lock_lock (__libc_utmp_lock);

  (*__libc_utmp_jump_table->setutent) ();

  __libc_lock_unlock (__libc_utmp_lock);
}

Here is the caller graph for this function:

void __updwtmp ( __const char *  __wtmp_file,
__const struct utmp __utmp 
)

Here is the caller graph for this function:

int __utmpname ( __const char *  __file)

Here is the caller graph for this function: