diff options
author | ed <ed@FreeBSD.org> | 2009-12-26 22:36:05 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2009-12-26 22:36:05 +0000 |
commit | 2062dc2dbfc1a90fe4ab19dac08bf244edcdd6b9 (patch) | |
tree | 58bea5a34619877eb8346d2fea79c60e9cb0def0 /lib/libulog/ulog.h | |
parent | dfcc7c385f2569bde1e4bd62a5c78a40b557608f (diff) | |
download | FreeBSD-src-2062dc2dbfc1a90fe4ab19dac08bf244edcdd6b9.zip FreeBSD-src-2062dc2dbfc1a90fe4ab19dac08bf244edcdd6b9.tar.gz |
Several refinements to libulog's API.
- Only set the fields in the ulog_utmpx structure that are valid for the
command in question. This means that strings like "shutdown" or "~"
are not visible to the user anymore.
- Rename UTXF_* to UTXI_*, indicating the indexation, instead of using
the `antique' filename. If we ever get rid of utmp, it makes little
sense calling it by its old name.
Diffstat (limited to 'lib/libulog/ulog.h')
-rw-r--r-- | lib/libulog/ulog.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libulog/ulog.h b/lib/libulog/ulog.h index 1e45aed..b57c0e0 100644 --- a/lib/libulog/ulog.h +++ b/lib/libulog/ulog.h @@ -85,9 +85,9 @@ void ulog_setutxent(void); /* Extensions. */ struct ulog_utmpx *ulog_getutxuser(const char *); int ulog_setutxfile(int, const char *); -#define UTXF_UTMP 0 -#define UTXF_WTMP 1 -#define UTXF_LASTLOG 2 +#define UTXI_TTY 0 +#define UTXI_TIME 1 +#define UTXI_USER 2 /* Login/logout utility functions. */ void ulog_login(const char *, const char *, const char *); |