From owner-svn-src-all@FreeBSD.ORG Wed Jan 13 18:09:55 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93F731065692; Wed, 13 Jan 2010 18:09:55 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 2EB1A8FC21; Wed, 13 Jan 2010 18:09:55 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o0DI9tFw082738; Wed, 13 Jan 2010 18:09:55 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o0DI9sCS082727; Wed, 13 Jan 2010 18:09:54 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <201001131809.o0DI9sCS082727@svn.freebsd.org> From: Ed Schouten Date: Wed, 13 Jan 2010 18:09:54 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r202200 - in head/usr.bin: systat users wall who write X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jan 2010 18:09:55 -0000 Author: ed Date: Wed Jan 13 18:09:54 2010 New Revision: 202200 URL: http://svn.freebsd.org/changeset/base/202200 Log: Perform all trivial ports to utmpx for usr.bin/. They were already converted to use libulog, so it's easy to convert them to utmpx. Modified: head/usr.bin/systat/Makefile head/usr.bin/systat/vmstat.c head/usr.bin/users/Makefile head/usr.bin/users/users.c head/usr.bin/wall/Makefile head/usr.bin/wall/wall.c head/usr.bin/who/Makefile head/usr.bin/who/who.c head/usr.bin/write/Makefile head/usr.bin/write/write.c Modified: head/usr.bin/systat/Makefile ============================================================================== --- head/usr.bin/systat/Makefile Wed Jan 13 18:09:21 2010 (r202199) +++ head/usr.bin/systat/Makefile Wed Jan 13 18:09:54 2010 (r202200) @@ -16,7 +16,7 @@ CFLAGS+= -DINET6 WARNS?= 0 -DPADD= ${LIBCURSES} ${LIBM} ${LIBDEVSTAT} ${LIBKVM} ${LIBULOG} -LDADD= -lcursesw -lm -ldevstat -lkvm -lulog +DPADD= ${LIBCURSES} ${LIBM} ${LIBDEVSTAT} ${LIBKVM} +LDADD= -lcursesw -lm -ldevstat -lkvm .include Modified: head/usr.bin/systat/vmstat.c ============================================================================== --- head/usr.bin/systat/vmstat.c Wed Jan 13 18:09:21 2010 (r202199) +++ head/usr.bin/systat/vmstat.c Wed Jan 13 18:09:54 2010 (r202200) @@ -65,9 +65,8 @@ static const char sccsid[] = "@(#)vmstat #include #include #include -#define _ULOG_POSIX_NAMES -#include #include +#include #include #include "systat.h" #include "extern.h" Modified: head/usr.bin/users/Makefile ============================================================================== --- head/usr.bin/users/Makefile Wed Jan 13 18:09:21 2010 (r202199) +++ head/usr.bin/users/Makefile Wed Jan 13 18:09:54 2010 (r202200) @@ -3,7 +3,4 @@ PROG= users -DPADD= ${LIBULOG} -LDADD= -lulog - .include Modified: head/usr.bin/users/users.c ============================================================================== --- head/usr.bin/users/users.c Wed Jan 13 18:09:21 2010 (r202199) +++ head/usr.bin/users/users.c Wed Jan 13 18:09:54 2010 (r202200) @@ -51,9 +51,8 @@ static const char rcsid[] = #include #include #include -#define _ULOG_POSIX_NAMES -#include #include +#include typedef char namebuf[MAXLOGNAME]; Modified: head/usr.bin/wall/Makefile ============================================================================== --- head/usr.bin/wall/Makefile Wed Jan 13 18:09:21 2010 (r202199) +++ head/usr.bin/wall/Makefile Wed Jan 13 18:09:54 2010 (r202200) @@ -6,7 +6,4 @@ SRCS= ttymsg.c wall.c BINGRP= tty BINMODE=2555 -DPADD= ${LIBULOG} -LDADD= -lulog - .include Modified: head/usr.bin/wall/wall.c ============================================================================== --- head/usr.bin/wall/wall.c Wed Jan 13 18:09:21 2010 (r202199) +++ head/usr.bin/wall/wall.c Wed Jan 13 18:09:54 2010 (r202200) @@ -64,9 +64,8 @@ static const char sccsid[] = "@(#)wall.c #include #include #include -#define _ULOG_POSIX_NAMES -#include #include +#include #include "ttymsg.h" Modified: head/usr.bin/who/Makefile ============================================================================== --- head/usr.bin/who/Makefile Wed Jan 13 18:09:21 2010 (r202199) +++ head/usr.bin/who/Makefile Wed Jan 13 18:09:54 2010 (r202200) @@ -3,7 +3,4 @@ PROG= who -DPADD= ${LIBULOG} -LDADD= -lulog - .include Modified: head/usr.bin/who/who.c ============================================================================== --- head/usr.bin/who/who.c Wed Jan 13 18:09:21 2010 (r202199) +++ head/usr.bin/who/who.c Wed Jan 13 18:09:54 2010 (r202200) @@ -44,9 +44,8 @@ __FBSDID("$FreeBSD$"); #include #include #include -#define _ULOG_POSIX_NAMES -#include #include +#include static void heading(void); static void process_utmp(void); @@ -109,7 +108,7 @@ main(int argc, char *argv[]) usage(); if (*argv != NULL) { - if (ulog_setutxfile(UTXI_TTY, *argv) != 0) + if (setutxdb(UTXDB_ACTIVE, *argv) != 0) err(1, "%s", *argv); } Modified: head/usr.bin/write/Makefile ============================================================================== --- head/usr.bin/write/Makefile Wed Jan 13 18:09:21 2010 (r202199) +++ head/usr.bin/write/Makefile Wed Jan 13 18:09:54 2010 (r202200) @@ -5,7 +5,4 @@ PROG= write BINMODE=2555 BINGRP= tty -DPADD= ${LIBULOG} -LDADD= -lulog - .include Modified: head/usr.bin/write/write.c ============================================================================== --- head/usr.bin/write/write.c Wed Jan 13 18:09:21 2010 (r202199) +++ head/usr.bin/write/write.c Wed Jan 13 18:09:54 2010 (r202200) @@ -62,9 +62,8 @@ __FBSDID("$FreeBSD$"); #include #include #include -#define _ULOG_POSIX_NAMES -#include #include +#include void done(int); void do_write(char *, char *, uid_t);