コード例 #1
0
ファイル: utmp32.c プロジェクト: chonghw/pemu
/* Append entry UTMP to the wtmp-like file WTMP_FILE.  */
void
updwtmp32 (const char *wtmp_file, const struct utmp32 *utmp)
{
  struct utmp in32;

  utmp_convert32to64 (utmp, &in32);
  __updwtmp (wtmp_file, &in32);
}
コード例 #2
0
ファイル: updwtmpx.c プロジェクト: varialus/DragonFlyDebian
void
updwtmpx (const char *wtmpx_file, const struct utmpx *utmpx)
{
  struct utmp tmp;

  if (__utmpx_to_utmp (utmpx, &tmp) >= 0)
    __updwtmp (wtmpx_file, &tmp);
}
コード例 #3
0
ファイル: updwtmpx.c プロジェクト: mbref/eglibc-microblaze
void
updwtmpx (const char *wtmpx_file, const struct utmpx *utmpx)
{
    __updwtmp (wtmpx_file, (const struct utmp *) utmpx);
}