Back to index

glibc  2.9
utmpx32.h
Go to the documentation of this file.
00001 /* The `struct utmp' type, describing entries in the utmp file.  GNU version.
00002    Copyright (C) 1993, 1996, 1997, 1998, 1999, 2002, 2008
00003    Free Software Foundation, Inc.
00004    This file is part of the GNU C Library.
00005 
00006    The GNU C Library is free software; you can redistribute it and/or
00007    modify it under the terms of the GNU Lesser General Public
00008    License as published by the Free Software Foundation; either
00009    version 2.1 of the License, or (at your option) any later version.
00010 
00011    The GNU C Library is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014    Lesser General Public License for more details.
00015 
00016    You should have received a copy of the GNU Lesser General Public
00017    License along with the GNU C Library; if not, write to the Free
00018    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00019    02111-1307 USA.  */
00020 
00021 #ifndef _UTMPX32_H
00022 #define _UTMPX32_H 1
00023 
00024 #include <paths.h>
00025 #include <sys/time.h>
00026 #include <sys/types.h>
00027 #include <bits/wordsize.h>
00028 #include <utmpx.h>
00029 
00030 /* The structure describing an entry in the user accounting database.  */
00031 struct utmpx32
00032 {
00033   short int ut_type;        /* Type of login.  */
00034   __pid_t ut_pid;           /* Process ID of login process.  */
00035   char ut_line[__UT_LINESIZE];     /* Devicename.  */
00036   char ut_id[4];            /* Inittab ID. */
00037   char ut_user[__UT_NAMESIZE];     /* Username.  */
00038   char ut_host[__UT_HOSTSIZE];     /* Hostname for remote login.  */
00039   struct __exit_status ut_exit;    /* Exit status of a process marked
00040                                as DEAD_PROCESS.  */
00041   __int64_t ut_session;            /* Session ID, used for windowing.  */
00042   struct
00043   {
00044     __int64_t tv_sec;              /* Seconds.  */
00045     __int64_t tv_usec;             /* Microseconds.  */
00046   } ut_tv;                  /* Time entry was made.  */
00047 
00048   __int32_t ut_addr_v6[4];  /* Internet address of remote host.  */
00049   char __unused[20];        /* Reserved for future use.  */
00050 };
00051 
00052 #endif /* utmpx32.h */