/usr/include/bits
NameSizeModeActions
a.out.h2990644editdlrm
byteswap.h53960644editdlrm
cmathcalls.h48810644editdlrm
confname.h238180644editdlrm
dirent.h16090644editdlrm
dlfcn.h25930644editdlrm
elfclass.h4260644editdlrm
endian.h1700644editdlrm
environments.h36510644editdlrm
errno.h21710644editdlrm
error.h27620644editdlrm
fcntl.h104260644editdlrm
fcntl2.h56070644editdlrm
fenv.h30640644editdlrm
fenvinline.h1900644editdlrm
huge_val.h19410644editdlrm
huge_valf.h19010644editdlrm
huge_vall.h11830644editdlrm
in.h77130644editdlrm
inf.h11230644editdlrm
initspin.h250644editdlrm
ioctl-types.h25350644editdlrm
ioctls.h45570644editdlrm
ipc.h21270644editdlrm
ipctypes.h12250644editdlrm
libc-lock.h128440644editdlrm
libio-ldbl.h10810644editdlrm
link.h36200644editdlrm
locale.h13780644editdlrm
local_lim.h32730644editdlrm
mathcalls.h115700644editdlrm
mathdef.h20110644editdlrm
mathinline.h20350644editdlrm
mman.h48250644editdlrm
monetary-ldbl.h11080644editdlrm
mqueue.h12370644editdlrm
mqueue2.h21860644editdlrm
msq.h26230644editdlrm
nan.h16410644editdlrm
netdb.h13490644editdlrm
poll.h21550644editdlrm
posix1_lim.h49460644editdlrm
posix2_lim.h29520644editdlrm
posix_opt.h58530644editdlrm
printf-ldbl.h10530644editdlrm
pthreadtypes.h57630644editdlrm
resource.h71820644editdlrm
sched.h74910644editdlrm
select.h21660644editdlrm
sem.h26240644editdlrm
semaphore.h13050644editdlrm
setjmp.h12910644editdlrm
setjmp2.h17520644editdlrm
shm.h36010644editdlrm
sigaction.h29190644editdlrm
sigcontext.h36990644editdlrm
siginfo.h91250644editdlrm
signum.h34840644editdlrm
sigset.h46520644editdlrm
sigstack.h15950644editdlrm
sigthread.h17470644editdlrm
sockaddr.h16010644editdlrm
socket.h142070644editdlrm
socket2.h31010644editdlrm
stab.def91010644editdlrm
stat.h77900644editdlrm
statfs.h20260644editdlrm
statvfs.h34390644editdlrm
stdio-ldbl.h31960644editdlrm
stdio-lock.h22620644editdlrm
stdio.h56540644editdlrm
stdio2.h126520644editdlrm
stdio_lim.h14400644editdlrm
stdlib-ldbl.h14620644editdlrm
stdlib.h57700644editdlrm
string.h11850644editdlrm
string2.h477340644editdlrm
string3.h46290644editdlrm
syscall.h145730644editdlrm
syslog-ldbl.h12690644editdlrm
syslog-path.h11220644editdlrm
syslog.h17730644editdlrm
sys_errlist.h12840644editdlrm
termios.h53960644editdlrm
time.h28660644editdlrm
types.h76010644editdlrm
typesizes.h25380644editdlrm
uio.h18320644editdlrm
unistd.h135170644editdlrm
ustat.h11570644editdlrm
utmp.h40980644editdlrm
utmpx.h35640644editdlrm
utsname.h12860644editdlrm
waitflags.h17150644editdlrm
waitstatus.h36390644editdlrm
wchar-ldbl.h25830644editdlrm
wchar.h10330644editdlrm
wchar2.h207950644editdlrm
wordsize.h1750644editdlrm
xopen_lim.h38370644editdlrm
Edit: /usr/include/bits/utmp.h (4098B)
/* The `struct utmp' type, describing entries in the utmp file. GNU version. Copyright (C) 1993, 1996, 1997, 1998, 1999, 2002 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ #ifndef _UTMP_H # error "Never include directly; use instead." #endif #include #include #include #include #define UT_LINESIZE 32 #define UT_NAMESIZE 32 #define UT_HOSTSIZE 256 /* The structure describing an entry in the database of previous logins. */ struct lastlog { #if __WORDSIZE == 64 && defined __WORDSIZE_COMPAT32 int32_t ll_time; #else __time_t ll_time; #endif char ll_line[UT_LINESIZE]; char ll_host[UT_HOSTSIZE]; }; /* The structure describing the status of a terminated process. This type is used in `struct utmp' below. */ struct exit_status { short int e_termination; /* Process termination status. */ short int e_exit; /* Process exit status. */ }; /* The structure describing an entry in the user accounting database. */ struct utmp { short int ut_type; /* Type of login. */ pid_t ut_pid; /* Process ID of login process. */ char ut_line[UT_LINESIZE]; /* Devicename. */ char ut_id[4]; /* Inittab ID. */ char ut_user[UT_NAMESIZE]; /* Username. */ char ut_host[UT_HOSTSIZE]; /* Hostname for remote login. */ struct exit_status ut_exit; /* Exit status of a process marked as DEAD_PROCESS. */ /* The ut_session and ut_tv fields must be the same size when compiled 32- and 64-bit. This allows data files and shared memory to be shared between 32- and 64-bit applications. */ #if __WORDSIZE == 64 && defined __WORDSIZE_COMPAT32 int32_t ut_session; /* Session ID, used for windowing. */ struct { int32_t tv_sec; /* Seconds. */ int32_t tv_usec; /* Microseconds. */ } ut_tv; /* Time entry was made. */ #else long int ut_session; /* Session ID, used for windowing. */ struct timeval ut_tv; /* Time entry was made. */ #endif int32_t ut_addr_v6[4]; /* Internet address of remote host. */ char __unused[20]; /* Reserved for future use. */ }; /* Backwards compatibility hacks. */ #define ut_name ut_user #ifndef _NO_UT_TIME /* We have a problem here: `ut_time' is also used otherwise. Define _NO_UT_TIME if the compiler complains. */ # define ut_time ut_tv.tv_sec #endif #define ut_xtime ut_tv.tv_sec #define ut_addr ut_addr_v6[0] /* Values for the `ut_type' field of a `struct utmp'. */ #define EMPTY 0 /* No valid user accounting information. */ #define RUN_LVL 1 /* The system's runlevel. */ #define BOOT_TIME 2 /* Time of system boot. */ #define NEW_TIME 3 /* Time after system clock changed. */ #define OLD_TIME 4 /* Time when system clock changed. */ #define INIT_PROCESS 5 /* Process spawned by the init process. */ #define LOGIN_PROCESS 6 /* Session leader of a logged in user. */ #define USER_PROCESS 7 /* Normal process. */ #define DEAD_PROCESS 8 /* Terminated process. */ #define ACCOUNTING 9 /* Old Linux name for the EMPTY type. */ #define UT_UNKNOWN EMPTY /* Tell the user that we have a modern system with UT_HOST, UT_PID, UT_TYPE, UT_ID and UT_TV fields. */ #define _HAVE_UT_TYPE 1 #define _HAVE_UT_PID 1 #define _HAVE_UT_ID 1 #define _HAVE_UT_TV 1 #define _HAVE_UT_HOST 1