From owner-cvs-src-old@FreeBSD.ORG Sun Jan 17 21:40:24 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A131E106566B for ; Sun, 17 Jan 2010 21:40:24 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 8FAC88FC16 for ; Sun, 17 Jan 2010 21:40:24 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o0HLeOne027554 for ; Sun, 17 Jan 2010 21:40:24 GMT (envelope-from ed@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o0HLeO8S027553 for cvs-src-old@freebsd.org; Sun, 17 Jan 2010 21:40:24 GMT (envelope-from ed@repoman.freebsd.org) Message-Id: <201001172140.o0HLeO8S027553@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to ed@repoman.freebsd.org using -f From: Ed Schouten Date: Sun, 17 Jan 2010 21:40:05 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libc/gen getutxent.3 getutxent.c pututxline.c utxdb.c utxdb.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jan 2010 21:40:24 -0000 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