Update.
[glibc/history.git] / login / utmpx.h
blob5873bf9310a8511a9633b4685da3fec91f873eb4
1 /* Copyright (C) 1997 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. */
20 #ifndef _UTMPX_H
21 #define _UTMPX_H 1
23 #include <features.h>
25 __BEGIN_DECLS
27 /* Get system dependent values and data structures. */
28 #include <bits/utmpx.h>
30 /* Open user accounting database. */
31 extern void *setutxent __P ((void));
33 /* Close user accounting database. */
34 extern void endutxent __P ((void));
36 /* Get the next entry from the user accounting database. */
37 extern struct utmpx *getutxent __P ((void));
39 /* Get the user accounting database entry corresponding to ID. */
40 extern struct utmpx *getutxid __P ((const struct utmpx *__id));
42 /* Get the user accounting database entry corresponding to LINE. */
43 extern struct utmpx *getutxline __P ((const struct utmpx *__line));
45 /* Write the entry UTMPX into the user accounting database. */
46 extern struct utmpx *pututxline __P ((const struct utmpx *__utmpx));
48 __END_DECLS
50 #endif /* utmpx.h */