From owner-cvs-src-old@FreeBSD.ORG Thu Dec 3 15:51:55 2009 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 72D9E106566C for ; Thu, 3 Dec 2009 15:51:55 +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 580208FC2C for ; Thu, 3 Dec 2009 15:51:55 +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 nB3FptUm047671 for ; Thu, 3 Dec 2009 15:51:55 GMT (envelope-from ed@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id nB3Fpts0047670 for cvs-src-old@freebsd.org; Thu, 3 Dec 2009 15:51:55 GMT (envelope-from ed@repoman.freebsd.org) Message-Id: <200912031551.nB3Fpts0047670@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to ed@repoman.freebsd.org using -f From: Ed Schouten Date: Thu, 3 Dec 2009 15:48:24 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/contrib/groff/tmac doc-syms src/lib Makefile src/lib/libulog Makefile Symbol.map ulog.h ulog_getutxent.3 ulog_getutxent.c ulog_internal.h ulog_login.3 ulog_login.c ulog_login_pseudo.c src/libexec Makefile src/libexec/ulog-helper ... 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: Thu, 03 Dec 2009 15:51:55 -0000 ed 2009-12-03 15:48:24 UTC FreeBSD src repository Modified files: contrib/groff/tmac doc-syms lib Makefile libexec Makefile share/mk bsd.libnames.mk Added files: lib/libulog Makefile Symbol.map ulog.h ulog_getutxent.3 ulog_getutxent.c ulog_internal.h ulog_login.3 ulog_login.c ulog_login_pseudo.c libexec/ulog-helper Makefile ulog-helper.c Log: SVN rev 200062 on 2009-12-03 15:48:24Z by ed Add a new library: libulog. One of the things I really want to do, is to get rid of the limitations of our current utmp(5) mechanism: - It only allows 8 byte TTY device names. - The hostname only allows 16 bytes of storage. I'm not a big fan of , but I think we should at least try to add parts of it. Unfortunately we cannot implement , because we miss various fields, such as ut_id, ut_pid, etc. The API provided by libulog shares some similarities with , so it shouldn't be too hard to port these applications eventually. In most simple cases, it should just be a matter of removing the ulog_ prefix everywhere. As a bonus, it also implements a function called ulog_login_pseudo(), which allows unprivileged applications to write log entries, provided they have a valid file descriptor to a pseudo-terminal master device. libulog will allow a smoother transition to a new file format by adding a library interface to deal with utmp/wtmp/lastlog files. I initially thought about adding the functionality to libutil, but because I'm not planning on keeping this library around forever, we'd better keep it separated. Next items on the todo list: 1. Port applications in the base system (and ports) to libulog, instead of letting them use . 2. Remove , implement and reimplement this library on top. 3. Port as many applications as possible back to . Revision Changes Path 1.52 +1 -0 src/contrib/groff/tmac/doc-syms 1.239 +2 -2 src/lib/Makefile 1.1 +21 -0 src/lib/libulog/Makefile (new) 1.1 +13 -0 src/lib/libulog/Symbol.map (new) 1.1 +87 -0 src/lib/libulog/ulog.h (new) 1.1 +98 -0 src/lib/libulog/ulog_getutxent.3 (new) 1.1 +84 -0 src/lib/libulog/ulog_getutxent.c (new) 1.1 +58 -0 src/lib/libulog/ulog_internal.h (new) 1.1 +102 -0 src/lib/libulog/ulog_login.3 (new) 1.1 +135 -0 src/lib/libulog/ulog_login.c (new) 1.1 +93 -0 src/lib/libulog/ulog_login_pseudo.c (new) 1.83 +1 -0 src/libexec/Makefile 1.1 +13 -0 src/libexec/ulog-helper/Makefile (new) 1.1 +81 -0 src/libexec/ulog-helper/ulog-helper.c (new) 1.112 +1 -0 src/share/mk/bsd.libnames.mk