File: getutent.h

package info (click to toggle)
orville-write 2.55-2.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 528 kB
  • ctags: 317
  • sloc: ansic: 3,494; sh: 2,860; makefile: 155
file content (21 lines) | stat: -rw-r--r-- 412 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* Header file for utmp reading routines */

#ifndef GETUTENT_H
#define GETUTENT_H

#ifdef HAVE_PATHS_H
# include <paths.h>
#endif
#ifndef _PATH_UTMP
# define _PATH_UTMP "/etc/utmp"
#endif

#ifndef HAVE_GETUTENT
int utmpname(const char *file);
void endutent(void);
void setutent(void);
struct utmp *getutent(void);
struct utmp *getutline(const struct utmp *ut);
#endif /*HAVE_GETUTENT*/

#endif /* GETUTENT_H */