1 /* Copyright (C) 1997, 1998 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3 Contributed by Mark Kettenis <kettenis@phys.uva.nl>, 1997.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public License as
7 published by the Free Software Foundation; either version 2 of the
8 License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public
16 License along with the GNU C Library; see the file COPYING.LIB. If not,
17 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. */
27 /* Get system dependent values and data structures. */
28 #include <bits/utmpx.h>
31 /* Compatibility names for the strings of the canonical file names. */
32 # define UTMPX_FILE _PATH_UTMPX
33 # define UTMPX_FILENAME _PATH_UTMPX
34 # define WTMPX_FILE _PATH_WTMPX
35 # define WTMPX_FILENAME _PATH_WTMPX
38 /* Open user accounting database. */
39 extern void setutxent
__P ((void));
41 /* Close user accounting database. */
42 extern void endutxent
__P ((void));
44 /* Get the next entry from the user accounting database. */
45 extern struct utmpx
*getutxent
__P ((void));
47 /* Get the user accounting database entry corresponding to ID. */
48 extern struct utmpx
*getutxid
__P ((const struct utmpx
*__id
));
50 /* Get the user accounting database entry corresponding to LINE. */
51 extern struct utmpx
*getutxline
__P ((const struct utmpx
*__line
));
53 /* Write the entry UTMPX into the user accounting database. */
54 extern struct utmpx
*pututxline
__P ((const struct utmpx
*__utmpx
));
57 /* Change name of the utmpx file to be examined. */
58 extern int utmpxname
__P ((__const
char *__file
));
60 /* Append entry UTMP to the wtmpx-like file WTMPX_FILE. */
61 extern void updwtmpx
__P ((__const
char *__wtmpx_file
,
62 __const
struct utmpx
*__utmpx
));