Back to index

glibc  2.9
Defines | Functions
utmpx32.c File Reference
#include <sys/types.h>
#include <utmp.h>
#include <errno.h>
#include <libc-symbols.h>
#include "utmp32.h"
#include "utmp-convert.h"
#include "utmpx32.h"
#include "utmpx-convert.h"

Go to the source code of this file.

Defines

#define ALLOCATE_UTMPX32_OUT(OUT)
#define ACCESS_UTMPX_ENTRY(FUNC, FIELD)

Functions

struct utmpx32getutxent32 (void)
 symbol_version (getutxent32, getutxent, GLIBC_2.1)
struct utmpx32getutxid32 (const struct utmpx32 *id)
 symbol_version (getutxid32, getutxid, GLIBC_2.1)
struct utmpx32getutxline32 (const struct utmpx32 *line)
 symbol_version (getutxline32, getutxline, GLIBC_2.1)
struct utmpx32pututxline32 (const struct utmpx32 *utmpx)
 symbol_version (pututxline32, pututxline, GLIBC_2.1)
void updwtmpx32 (const char *wtmpx_file, const struct utmpx32 *utmpx)
 symbol_version (updwtmpx32, updwtmpx, GLIBC_2.1)
void getutmp32 (const struct utmpx32 *utmpx, struct utmp32 *utmp)
 symbol_version (getutmp32, getutmp, GLIBC_2.1.1)
void getutmpx32 (const struct utmp32 *utmp, struct utmpx32 *utmpx)
 symbol_version (getutmpx32, getutmpx, GLIBC_2.1.1)

Define Documentation

#define ACCESS_UTMPX_ENTRY (   FUNC,
  FIELD 
)
Value:
struct utmpx in64;                               \
  struct utmpx *out64;                                  \
  ALLOCATE_UTMPX32_OUT (out32);                         \
							\
  utmpx_convert32to64 (FIELD, &in64);                   \
  out64 = FUNC (&in64);                                 \
                                                 \
  if (out64 == NULL)                             \
    return NULL;                                 \
							\
  utmpx_convert64to32 (out64, out32);                   \
                                                 \
  return out32;

Definition at line 48 of file utmpx32.c.

#define ALLOCATE_UTMPX32_OUT (   OUT)
Value:
static struct utmpx32 *OUT = NULL;               \
                                                 \
  if (OUT == NULL)                               \
    {                                            \
      OUT = malloc (sizeof (struct utmpx32));           \
      if (OUT == NULL)                                  \
       return NULL;                              \
    }

Definition at line 35 of file utmpx32.c.


Function Documentation

void getutmp32 ( const struct utmpx32 utmpx,
struct utmp32 utmp 
)

Definition at line 118 of file utmpx32.c.

{
  struct utmpx in64;
  struct utmp out64;

  utmpx_convert32to64 (utmpx, &in64);
  getutmp (&in64, &out64);
  utmp_convert64to32 (&out64, utmp);
}

Here is the call graph for this function:

void getutmpx32 ( const struct utmp32 utmp,
struct utmpx32 utmpx 
)

Definition at line 131 of file utmpx32.c.

{
  struct utmp in64;
  struct utmpx out64;

  utmp_convert32to64 (utmp, &in64);
  getutmpx (&in64, &out64);
  utmpx_convert64to32 (&out64, utmpx);
}

Here is the call graph for this function:

struct utmpx32* getutxent32 ( void  ) [read]

Definition at line 66 of file utmpx32.c.

{
  struct utmpx *out64;
  ALLOCATE_UTMPX32_OUT (out32);

  out64 = getutxent ();
  if (!out64)
    return NULL;

  utmpx_convert64to32 (out64, out32);
  return out32;

}

Here is the call graph for this function:

struct utmpx32* getutxid32 ( const struct utmpx32 id) [read]

Definition at line 83 of file utmpx32.c.

struct utmpx32* getutxline32 ( const struct utmpx32 line) [read]

Definition at line 91 of file utmpx32.c.

struct utmpx32* pututxline32 ( const struct utmpx32 utmpx) [read]

Definition at line 99 of file utmpx32.c.

symbol_version ( getutxent32  ,
getutxent  ,
GLIBC_2.  1 
)
symbol_version ( getutxid32  ,
getutxid  ,
GLIBC_2.  1 
)
symbol_version ( getutxline32  ,
getutxline  ,
GLIBC_2.  1 
)
symbol_version ( pututxline32  ,
pututxline  ,
GLIBC_2.  1 
)
symbol_version ( updwtmpx32  ,
updwtmpx  ,
GLIBC_2.  1 
)
symbol_version ( getutmp32  ,
getutmp  ,
GLIBC_2.1.  1 
)
symbol_version ( getutmpx32  ,
getutmpx  ,
GLIBC_2.1.  1 
)
void updwtmpx32 ( const char *  wtmpx_file,
const struct utmpx32 utmpx 
)

Definition at line 107 of file utmpx32.c.

{
  struct utmpx in64;

  utmpx_convert32to64 (utmpx, &in64);
  updwtmpx (wtmpx_file, &in64);
}

Here is the call graph for this function: