]>
git.ipfire.org Git - thirdparty/glibc.git/blob - sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h
863d7b6ab270afa11d5be357fceb28b92ac1dd02
1 /* The `struct utmp' type, describing entries in the utmp file. GNU version.
2 Copyright (C) 1993, 1996, 1997, 1998, 1999, 2002, 2008, 2010, 2012
3 Free Software Foundation, Inc.
4 This file is part of the GNU C Library.
6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
11 The GNU C Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
25 #include <sys/types.h>
26 #include <bits/wordsize.h>
29 /* The structure describing an entry in the user accounting database. */
32 short int ut_type
; /* Type of login. */
33 __pid_t ut_pid
; /* Process ID of login process. */
34 char ut_line
[__UT_LINESIZE
]; /* Devicename. */
35 char ut_id
[4]; /* Inittab ID. */
36 char ut_user
[__UT_NAMESIZE
]; /* Username. */
37 char ut_host
[__UT_HOSTSIZE
]; /* Hostname for remote login. */
38 struct __exit_status ut_exit
; /* Exit status of a process marked
40 __int64_t ut_session
; /* Session ID, used for windowing. */
43 __int64_t tv_sec
; /* Seconds. */
44 __int64_t tv_usec
; /* Microseconds. */
45 } ut_tv
; /* Time entry was made. */
47 __int32_t ut_addr_v6
[4]; /* Internet address of remote host. */
48 char __unused
[20]; /* Reserved for future use. */
51 /* The internal interface needed by the compat wrapper functions. */
52 extern struct utmpx
*__getutxent (void);
53 extern struct utmpx
*__getutxid (const struct utmpx
*__id
);
54 extern struct utmpx
*__getutxline (const struct utmpx
*__line
);
55 extern struct utmpx
*__pututxline (const struct utmpx
*__utmpx
);
56 extern void __updwtmpx (const char *__wtmpx_file
, const struct utmpx
*__utmpx
);
57 extern void __getutmp (const struct utmpx
*__utmpx
, struct utmp
*__utmp
);
58 extern void __getutmpx (const struct utmp
*__utmp
, struct utmpx
*__utmpx
);
60 #endif /* utmpx32.h */