Date: Sun, 17 Jan 2010 21:40:05 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/lib/libc/gen getutxent.3 getutxent.c pututxline.c utxdb.c utxdb.h Message-ID: <201001172140.o0HLeO8S027553@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
ed 2010-01-17 21:40:05 UTC
FreeBSD src repository
Modified files:
lib/libc/gen getutxent.3 getutxent.c pututxline.c
utxdb.c utxdb.h
Log:
SVN rev 202530 on 2010-01-17 21:40:05Z by ed
Perform several small cleanups to the utmpx code.
- Massively reduce BSS usage. Let futx_to_utx() dynamically allocate the
structure. There is only a very small amount of applications out there
that needs to use the utmpx database. Wasting 1 KB on unused
structures makes little sense.
- Just let getutxid() search for matching ut_id's for any *PROCESS-type.
This makes the code a bit more future-proof.
- Fix a POSIX-mistake: when reading POSIX and the OpenSolaris
implementation, getutxline() must return USER_PROCESS and
LOGIN_PROCESS records whose ut_lines match. When reading POSIX, it
seems LOGIN_PROCESS should not use ut_line at the first place. I have
reported this issue.
Revision Changes Path
1.3 +3 -1 src/lib/libc/gen/getutxent.3
1.3 +40 -51 src/lib/libc/gen/getutxent.c
1.4 +1 -3 src/lib/libc/gen/pututxline.c
1.2 +17 -4 src/lib/libc/gen/utxdb.c
1.2 +1 -1 src/lib/libc/gen/utxdb.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001172140.o0HLeO8S027553>
