Consolidate Linux truncate implementations
[glibc.git] / include / utmp.h
blob6b2e262362d7fb1b3025ffbc5638e81ba9ec32c1
1 #ifndef _UTMP_H
2 #include <login/utmp.h>
4 # ifndef _ISOMAC
6 /* Now define the internal interfaces. */
7 extern void __updwtmp (const char *__wtmp_file, const struct utmp *__utmp);
8 extern int __utmpname (const char *__file);
9 extern struct utmp *__getutent (void);
10 extern void __setutent (void);
11 extern void __endutent (void);
12 extern struct utmp *__getutid (const struct utmp *__id);
13 extern struct utmp *__getutline (const struct utmp *__line);
14 extern struct utmp *__pututline (const struct utmp *__utmp_ptr);
15 extern int __getutent_r (struct utmp *__buffer, struct utmp **__result);
16 extern int __getutid_r (const struct utmp *__id, struct utmp *__buffer,
17 struct utmp **__result);
18 extern int __getutline_r (const struct utmp *__line,
19 struct utmp *__buffer, struct utmp **__result);
21 libutil_hidden_proto (login_tty)
23 # endif /* !_ISOMAC */
24 #endif