aboutsummaryrefslogtreecommitdiff
path: root/include/Makefile
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2010-01-13 17:29:55 +0000
committerEd Schouten <ed@FreeBSD.org>2010-01-13 17:29:55 +0000
commita627ac61ab8d660acfe6c88b01bdca8e8c1590aa (patch)
treecb66a86f625ee4b27233d49a4268bc0331af7295 /include/Makefile
parent5364a38dba0f16a7889430b625984c8a956d48ee (diff)
downloadsrc-a627ac61ab8d660acfe6c88b01bdca8e8c1590aa.tar.gz
src-a627ac61ab8d660acfe6c88b01bdca8e8c1590aa.zip
Implement <utmpx.h>.
The utmpx interface is the standardized interface of the user accounting database. The standard only defines a subset of the functions that were present in System V-like systems. I'd like to highlight some of the traits my implementation has: - The standard allows the on-disk format to be different than the in-memory representation (struct utmpx). Most operating systems don't do this, but we do. This allows us to keep our ABI more stable, while giving us the opportunity to modify the on-disk format. It also allows us to use a common file format across different architectures (i.e. byte ordering). - Our implementation of pututxline() also updates wtmp and lastlog (now called utx.log and utx.lastlogin). This means the databases are more likely to be in sync. - Care must be taken that our implementation discard any fields that are not applicable. For example, our DEAD_PROCESS records do not hold a TTY name. Just a time stamp, a record identifier and a process identifier. It also guarantees that strings (ut_host, ut_line and ut_user) are null terminated. ut_id is obviously not null terminated, because it's not a string. - The API and its behaviour should be conformant to POSIX, but there may be things that slightly deviate from the standard. This implementation uses separate file descriptors when writing to the log files. It also doesn't use getutxid() to search for a field to overwrite. It uses an allocation strategy similar to getutxid(), but prevents DEAD_PROCESS records from accumulating. Make sure libulog doesn't overwrite the manpages shipped with our C library. Also keep the symbol list in Symbol.map sorted. I'll bump __FreeBSD_version later this evening. I first want to convert everything to <utmpx.h> and get rid of <utmp.h>.
Notes
Notes: svn path=/head/; revision=202188
Diffstat (limited to 'include/Makefile')
-rw-r--r--include/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/Makefile b/include/Makefile
index 68a7e8da0354..21cdd563abc0 100644
--- a/include/Makefile
+++ b/include/Makefile
@@ -23,8 +23,8 @@ INCS= a.out.h ar.h assert.h bitstring.h complex.h cpio.h _ctype.h ctype.h \
stdbool.h stddef.h stdio.h stdlib.h string.h stringlist.h \
strings.h sysexits.h tar.h termios.h tgmath.h \
time.h timeconv.h timers.h ttyent.h \
- ulimit.h unistd.h utime.h utmp.h uuid.h varargs.h vis.h wchar.h \
- wctype.h wordexp.h
+ ulimit.h unistd.h utime.h utmp.h utmpx.h uuid.h varargs.h vis.h \
+ wchar.h wctype.h wordexp.h
MHDRS= float.h floatingpoint.h stdarg.h