svn commit: r227192 - head/usr.bin/unexpand

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:18:05 2011 New Revision: 227192 URL: http://svn.freebsd.org/changeset/base/227192 Log: Add missing static keywords to unexpand(1) Modified: head/usr.bin/unexpand/unexpand.c Modified: head/usr.bin/unexpand/unexpand.c =

svn commit: r227191 - head/usr.bin/uname

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:17:59 2011 New Revision: 227191 URL: http://svn.freebsd.org/changeset/base/227191 Log: Add missing static keywords to uname(1) Modified: head/usr.bin/uname/uname.c Modified: head/usr.bin/uname/uname.c

svn commit: r227188 - head/usr.bin/tr

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:17:42 2011 New Revision: 227188 URL: http://svn.freebsd.org/changeset/base/227188 Log: Add missing static keywords to tr(1) Modified: head/usr.bin/tr/tr.c Modified: head/usr.bin/tr/tr.c ===

svn commit: r227186 - head/usr.bin/tcopy

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:17:29 2011 New Revision: 227186 URL: http://svn.freebsd.org/changeset/base/227186 Log: Add missing static keywords to tcopy(1) Modified: head/usr.bin/tcopy/tcopy.c Modified: head/usr.bin/tcopy/tcopy.c

svn commit: r227183 - head/usr.bin/split

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:17:11 2011 New Revision: 227183 URL: http://svn.freebsd.org/changeset/base/227183 Log: Add missing static keywords to split(1) Modified: head/usr.bin/split/split.c Modified: head/usr.bin/split/split.c

svn commit: r227182 - head/usr.bin/seq

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:17:05 2011 New Revision: 227182 URL: http://svn.freebsd.org/changeset/base/227182 Log: Add missing static keywords to seq(1) Modified: head/usr.bin/seq/seq.c Modified: head/usr.bin/seq/seq.c ==

svn commit: r227181 - head/usr.bin/rwho

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:16:59 2011 New Revision: 227181 URL: http://svn.freebsd.org/changeset/base/227181 Log: Add missing static keywords to rwho(1) Modified: head/usr.bin/rwho/rwho.c Modified: head/usr.bin/rwho/rwho.c =

svn commit: r227180 - head/usr.bin/rwall

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:16:53 2011 New Revision: 227180 URL: http://svn.freebsd.org/changeset/base/227180 Log: Add missing static keywords to rwall(1) Modified: head/usr.bin/rwall/rwall.c Modified: head/usr.bin/rwall/rwall.c

svn commit: r227179 - head/usr.bin/rusers

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:16:47 2011 New Revision: 227179 URL: http://svn.freebsd.org/changeset/base/227179 Log: Add missing static keywords to rusers(1) Modified: head/usr.bin/rusers/rusers.c Modified: head/usr.bin/rusers/rusers.c ===

svn commit: r227178 - head/usr.bin/ruptime

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:16:41 2011 New Revision: 227178 URL: http://svn.freebsd.org/changeset/base/227178 Log: Add missing static keywords to ruptime(1) Modified: head/usr.bin/ruptime/ruptime.c Modified: head/usr.bin/ruptime/ruptime.c ==

svn commit: r227177 - head/usr.bin/rs

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:16:35 2011 New Revision: 227177 URL: http://svn.freebsd.org/changeset/base/227177 Log: Add missing static keywords to rs(1) Modified: head/usr.bin/rs/rs.c Modified: head/usr.bin/rs/rs.c ===

svn commit: r227176 - head/usr.bin/quota

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:16:29 2011 New Revision: 227176 URL: http://svn.freebsd.org/changeset/base/227176 Log: Add missing static keywords to quota(1) Modified: head/usr.bin/quota/quota.c Modified: head/usr.bin/quota/quota.c

svn commit: r227202 - head/usr.bin/xinstall

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:19:07 2011 New Revision: 227202 URL: http://svn.freebsd.org/changeset/base/227202 Log: Add missing static keywords to xinstall(1) Modified: head/usr.bin/xinstall/xinstall.c Modified: head/usr.bin/xinstall/xinstall.c =

svn commit: r227190 - head/usr.bin/ul

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:17:53 2011 New Revision: 227190 URL: http://svn.freebsd.org/changeset/base/227190 Log: Add missing static keywords to ul(1) Modified: head/usr.bin/ul/ul.c Modified: head/usr.bin/ul/ul.c ===

svn commit: r227189 - head/usr.bin/tsort

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:17:47 2011 New Revision: 227189 URL: http://svn.freebsd.org/changeset/base/227189 Log: Add missing static keywords to tsort(1) Modified: head/usr.bin/tsort/tsort.c Modified: head/usr.bin/tsort/tsort.c

svn commit: r227187 - head/usr.bin/tee

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:17:35 2011 New Revision: 227187 URL: http://svn.freebsd.org/changeset/base/227187 Log: Add missing static keywords to tee(1) Modified: head/usr.bin/tee/tee.c Modified: head/usr.bin/tee/tee.c ==

svn commit: r227184 - head/usr.bin/tail

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:17:17 2011 New Revision: 227184 URL: http://svn.freebsd.org/changeset/base/227184 Log: Add missing static keywords to tail(1) Modified: head/usr.bin/tail/forward.c head/usr.bin/tail/tail.c Modified: head/usr.bin/tail/forward.c

svn commit: r227185 - head/usr.bin/talk

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:17:23 2011 New Revision: 227185 URL: http://svn.freebsd.org/changeset/base/227185 Log: Add missing static keywords to talk(1) Modified: head/usr.bin/talk/ctl.c head/usr.bin/talk/init_disp.c head/usr.bin/talk/invite.c head/usr.bin/talk/talk.h Modified: hea

svn commit: r227174 - head/usr.bin/mt

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:16:18 2011 New Revision: 227174 URL: http://svn.freebsd.org/changeset/base/227174 Log: Add missing static keywords to mt(1) Modified: head/usr.bin/mt/mt.c Modified: head/usr.bin/mt/mt.c ===

svn commit: r227173 - head/usr.bin/ministat

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:16:11 2011 New Revision: 227173 URL: http://svn.freebsd.org/changeset/base/227173 Log: Add missing static keywords to ministat(1) Modified: head/usr.bin/ministat/ministat.c Modified: head/usr.bin/ministat/ministat.c =

svn commit: r227172 - head/usr.bin/make

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:16:06 2011 New Revision: 227172 URL: http://svn.freebsd.org/changeset/base/227172 Log: Add missing static keywords to make(1) Modified: head/usr.bin/make/globals.h Modified: head/usr.bin/make/globals.h ===

svn commit: r227171 - head/usr.bin/look

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:15:59 2011 New Revision: 227171 URL: http://svn.freebsd.org/changeset/base/227171 Log: Add missing static keywords to look(1) Modified: head/usr.bin/look/look.c Modified: head/usr.bin/look/look.c =

svn commit: r227170 - head/usr.bin/logger

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:15:53 2011 New Revision: 227170 URL: http://svn.freebsd.org/changeset/base/227170 Log: Add missing static keywords to logger(1) Modified: head/usr.bin/logger/logger.c Modified: head/usr.bin/logger/logger.c ===

svn commit: r227169 - head/usr.bin/lock

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:15:48 2011 New Revision: 227169 URL: http://svn.freebsd.org/changeset/base/227169 Log: Add missing static keywords to lock(1) Modified: head/usr.bin/lock/lock.c Modified: head/usr.bin/lock/lock.c =

svn commit: r227168 - head/usr.bin/last

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:15:41 2011 New Revision: 227168 URL: http://svn.freebsd.org/changeset/base/227168 Log: Add missing static keywords to last(1) Modified: head/usr.bin/last/last.c Modified: head/usr.bin/last/last.c =

svn commit: r227165 - head/usr.bin/fold

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:15:23 2011 New Revision: 227165 URL: http://svn.freebsd.org/changeset/base/227165 Log: Add missing static keywords to fold(1) Modified: head/usr.bin/fold/fold.c Modified: head/usr.bin/fold/fold.c =

svn commit: r227175 - head/usr.bin/pr

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:16:24 2011 New Revision: 227175 URL: http://svn.freebsd.org/changeset/base/227175 Log: Add missing static keywords to pr(1) Modified: head/usr.bin/pr/extern.h head/usr.bin/pr/pr.c Modified: head/usr.bin/pr/extern.h

svn commit: r227167 - head/usr.bin/join

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:15:35 2011 New Revision: 227167 URL: http://svn.freebsd.org/changeset/base/227167 Log: Add missing static keywords to join(1) Modified: head/usr.bin/join/join.c Modified: head/usr.bin/join/join.c =

svn commit: r227166 - head/usr.bin/id

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:15:30 2011 New Revision: 227166 URL: http://svn.freebsd.org/changeset/base/227166 Log: Add missing static keywords to id(1) Modified: head/usr.bin/id/id.c Modified: head/usr.bin/id/id.c ===

svn commit: r227164 - head/usr.bin/du

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:15:17 2011 New Revision: 227164 URL: http://svn.freebsd.org/changeset/base/227164 Log: Add missing static keywords to du(1) Modified: head/usr.bin/du/du.c Modified: head/usr.bin/du/du.c ===

svn commit: r227163 - head/usr.bin/dc

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:14:57 2011 New Revision: 227163 URL: http://svn.freebsd.org/changeset/base/227163 Log: Add missing static keywords to dc(1) Modified: head/usr.bin/dc/dc.c Modified: head/usr.bin/dc/dc.c ===

svn commit: r227162 - head/usr.bin/cut

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:14:51 2011 New Revision: 227162 URL: http://svn.freebsd.org/changeset/base/227162 Log: Add missing static keywords to cut(1) Modified: head/usr.bin/cut/cut.c Modified: head/usr.bin/cut/cut.c ==

svn commit: r227160 - head/usr.bin/cpuset

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:14:40 2011 New Revision: 227160 URL: http://svn.freebsd.org/changeset/base/227160 Log: Add missing static keywords to cpuset(1) Modified: head/usr.bin/cpuset/cpuset.c Modified: head/usr.bin/cpuset/cpuset.c ===

svn commit: r227156 - head/usr.bin/cmp

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:14:16 2011 New Revision: 227156 URL: http://svn.freebsd.org/changeset/base/227156 Log: Add missing static keywords to cmp(1) Modified: head/usr.bin/cmp/extern.h Modified: head/usr.bin/cmp/extern.h

svn commit: r227155 - head/usr.bin/catman

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:14:09 2011 New Revision: 227155 URL: http://svn.freebsd.org/changeset/base/227155 Log: Add missing static keywords to catman(1) Modified: head/usr.bin/catman/catman.c Modified: head/usr.bin/catman/catman.c ===

svn commit: r227161 - head/usr.bin/csplit

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:14:45 2011 New Revision: 227161 URL: http://svn.freebsd.org/changeset/base/227161 Log: Add missing static keywords to csplit(1) Modified: head/usr.bin/csplit/csplit.c Modified: head/usr.bin/csplit/csplit.c ===

svn commit: r227159 - head/usr.bin/column

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:14:34 2011 New Revision: 227159 URL: http://svn.freebsd.org/changeset/base/227159 Log: Add missing static keywords to column(1) Modified: head/usr.bin/column/column.c Modified: head/usr.bin/column/column.c ===

svn commit: r227158 - head/usr.bin/colcrt

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:14:28 2011 New Revision: 227158 URL: http://svn.freebsd.org/changeset/base/227158 Log: Add missing static keywords to colcrt(1) Modified: head/usr.bin/colcrt/colcrt.c Modified: head/usr.bin/colcrt/colcrt.c ===

svn commit: r227157 - head/usr.bin/col

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:14:22 2011 New Revision: 227157 URL: http://svn.freebsd.org/changeset/base/227157 Log: Add missing static keywords to col(1) Modified: head/usr.bin/col/col.c Modified: head/usr.bin/col/col.c ==

svn commit: r227154 - head/usr.bin/cap_mkdb

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:14:03 2011 New Revision: 227154 URL: http://svn.freebsd.org/changeset/base/227154 Log: Add missing static keywords to cap_mkdb(1) Modified: head/usr.bin/cap_mkdb/cap_mkdb.c Modified: head/usr.bin/cap_mkdb/cap_mkdb.c =

svn commit: r227153 - head/usr.bin/c99

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:13:58 2011 New Revision: 227153 URL: http://svn.freebsd.org/changeset/base/227153 Log: Add missing static keywords to c99(1) Modified: head/usr.bin/c99/c99.c Modified: head/usr.bin/c99/c99.c ==

svn commit: r227152 - head/usr.bin/banner

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 08:13:51 2011 New Revision: 227152 URL: http://svn.freebsd.org/changeset/base/227152 Log: Add missing static keywords to banner(1) Modified: head/usr.bin/banner/banner.c Modified: head/usr.bin/banner/banner.c ===

svn commit: r227203 - head/usr.bin/id

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 09:09:45 2011 New Revision: 227203 URL: http://svn.freebsd.org/changeset/base/227203 Log: Correct the change made in r227166. This function is only compiled in when building WITH_AUDIT. Modified: head/usr.bin/id/id.c Modified: head/usr.bin/id/id.c ===

svn commit: r227105 - head/lib/libpam/modules/pam_unix

2011-11-05 Thread Ed Schouten
Author: ed Date: Sat Nov 5 10:00:29 2011 New Revision: 227105 URL: http://svn.freebsd.org/changeset/base/227105 Log: Remove an unused variable from pam_unix. This variable was added in r82352 back in 2001, but even then it didn't have any use. Because it's not marked static, the C compil

svn commit: r227101 - in head/games: bcd caesar fortune/fortune fortune/unstr grdc morse number

2011-11-05 Thread Ed Schouten
Author: ed Date: Sat Nov 5 07:18:53 2011 New Revision: 227101 URL: http://svn.freebsd.org/changeset/base/227101 Log: Add static keywords to variables and functions where possible in games/. This allows us to detect unused functions and variables and allows the compiler to do a better job

svn commit: r227090 - head/lib/libc/stdlib

2011-11-04 Thread Ed Schouten
Author: ed Date: Fri Nov 4 19:56:34 2011 New Revision: 227090 URL: http://svn.freebsd.org/changeset/base/227090 Log: Fix a warning emitted by Clang. The size passed to strlcat() must depend on the input length, not the output length. Because the input and output buffers are equal in size

svn commit: r227081 - in head/sbin: atm/atmconfig badsect camcontrol ccdconfig devfs dmesg dumpfs fdisk ffsinfo fsck fsck_msdosfs fsirand growfs init mount mount_cd9660 mount_nullfs mount_udf natd ...

2011-11-04 Thread Ed Schouten
Author: ed Date: Fri Nov 4 13:36:02 2011 New Revision: 227081 URL: http://svn.freebsd.org/changeset/base/227081 Log: Add missing static keywords for global variables to tools in sbin/. These tools declare global variables without using the static keyword, even though their use is limited

svn commit: r226961 - in head/bin: cat ln mkdir mv rm test

2011-10-31 Thread Ed Schouten
Author: ed Date: Mon Oct 31 08:59:17 2011 New Revision: 226961 URL: http://svn.freebsd.org/changeset/base/226961 Log: Put some static keywords in the source code. For these simple utilities, it doesn't harm to make all global variables static. In fact, this allows the compiler to perform

svn commit: r226847 - head/lib/libc/gen

2011-10-27 Thread Ed Schouten
Author: ed Date: Thu Oct 27 17:21:41 2011 New Revision: 226847 URL: http://svn.freebsd.org/changeset/base/226847 Log: Don't forget to kick the man page date. Modified: head/lib/libc/gen/getutxent.3 Modified: head/lib/libc/gen/getutxent.3 ==

svn commit: r226846 - head/lib/libc/gen

2011-10-27 Thread Ed Schouten
Author: ed Date: Thu Oct 27 17:05:18 2011 New Revision: 226846 URL: http://svn.freebsd.org/changeset/base/226846 Log: Make our utmpx more like System V. When booting the system, truncate the utx.active file, but do write the BOOT_TIME record into it afterwards. This allows one to obtain t

svn commit: r226841 - head/usr.bin/getent

2011-10-27 Thread Ed Schouten
Author: ed Date: Thu Oct 27 16:20:29 2011 New Revision: 226841 URL: http://svn.freebsd.org/changeset/base/226841 Log: Print INIT_PROCESS and LOGIN_PROCESS entries as well. Even though our implementation of utmpx never emits these types of records, they are part of POSIX. Do print them whe

Re: svn commit: r226785 - head

2011-10-26 Thread Ed Schouten
' bits from the atmconfig source code itself and add something like this to the Makefile: .if !defined(RESCUE) && ${MK_BNSMP} != "no" CFLAGS+= -DWITH_BSNMP .endif That way you can simply use `#ifdef WITH_BSNMP' throughout the source files. Thanks, --

svn commit: r226785 - head

2011-10-26 Thread Ed Schouten
Author: ed Date: Wed Oct 26 07:49:47 2011 New Revision: 226785 URL: http://svn.freebsd.org/changeset/base/226785 Log: Attempt to fix build logic for gensnmptree. There are two problems with the existing logic. It builds gensnmptree on <700018, even if WITHOUT_BSNMP is set, but more import

svn commit: r226742 - head/sbin/swapon

2011-10-25 Thread Ed Schouten
Author: ed Date: Tue Oct 25 17:10:15 2011 New Revision: 226742 URL: http://svn.freebsd.org/changeset/base/226742 Log: Build swapon with WARNS=6. Don't use a variable called stat, because it collides with stat(2). Modified: head/sbin/swapon/Makefile head/sbin/swapon/swapon.c Modified:

svn commit: r226610 - in head/sys: net netinet

2011-10-21 Thread Ed Schouten
Author: ed Date: Fri Oct 21 12:58:34 2011 New Revision: 226610 URL: http://svn.freebsd.org/changeset/base/226610 Log: Add missing #includes. According to POSIX, these two header files should be able to be included by themselves, not depending on other headers. The header uses struct so

svn commit: r226500 - in head/sys: dev/gpio dev/ksyms dev/vkbd net security/audit sys

2011-10-18 Thread Ed Schouten
Author: ed Date: Tue Oct 18 08:09:44 2011 New Revision: 226500 URL: http://svn.freebsd.org/changeset/base/226500 Log: Get rid of D_PSEUDO. It seems the D_PSEUDO flag was meant to allow make_dev() to return NULL. Nowadays we have a different interface for that; make_dev_p(). There's no n

svn commit: r226477 - head/sys/sys

2011-10-17 Thread Ed Schouten
Author: ed Date: Mon Oct 17 19:40:26 2011 New Revision: 226477 URL: http://svn.freebsd.org/changeset/base/226477 Log: Fix whitespace. Modified: head/sys/sys/conf.h Modified: head/sys/sys/conf.h == --- head/sys/sys/co

svn commit: r226468 - head/usr.bin/look

2011-10-17 Thread Ed Schouten
Author: ed Date: Mon Oct 17 13:54:55 2011 New Revision: 226468 URL: http://svn.freebsd.org/changeset/base/226468 Log: Sort header file names. Spotted by: des Modified: head/usr.bin/look/look.c Modified: head/usr.bin/look/look.c =

svn commit: r226445 - head/usr.bin/look

2011-10-16 Thread Ed Schouten
Author: ed Date: Sun Oct 16 19:23:43 2011 New Revision: 226445 URL: http://svn.freebsd.org/changeset/base/226445 Log: Add missing #include. Note to myself: don't write patches while watching a movie. Modified: head/usr.bin/look/look.c Modified: head/usr.bin/look/look.c =

svn commit: r226444 - head/usr.bin/look

2011-10-16 Thread Ed Schouten
Author: ed Date: Sun Oct 16 19:15:25 2011 New Revision: 226444 URL: http://svn.freebsd.org/changeset/base/226444 Log: Don't cast SIZE_T_MAX to off_t. I focused so much on the 32-bits case where we have to cast SIZE_T_MAX up in size, that I forgot about the 64-bits case, where off_t and si

Re: svn commit: r226359 - head/usr.bin/look

2011-10-16 Thread Ed Schouten
(off_t)SIZE_T_MAX) + if ((uintmax_t)sb.st_size > (uintmax_t)SIZE_T_MAX) errx(2, "%s: %s", file, strerror(EFBIG)); if (sb.st_size == 0) { close(fd); %%% -- Ed Schouten WWW: http://80386.nl/ pgpDMtGuMMZXo.pgp Description: PGP signature

svn commit: r226431 - head/sys/netinet

2011-10-16 Thread Ed Schouten
Author: ed Date: Sun Oct 16 10:58:00 2011 New Revision: 226431 URL: http://svn.freebsd.org/changeset/base/226431 Log: Forward declare mbuf and inpcb. This fixes a compiler warning at WARNS=6 when including the header files as follows: #include #include #includ

svn commit: r226429 - head/usr.bin/ncplist

2011-10-16 Thread Ed Schouten
Author: ed Date: Sun Oct 16 10:00:28 2011 New Revision: 226429 URL: http://svn.freebsd.org/changeset/base/226429 Log: Fix ncplist to build with WARNS=6. Add some const and static keywords to get it all to build. Also add missing #includes. Modified: head/usr.bin/ncplist/Makefile head

svn commit: r226428 - head/usr.bin/su

2011-10-16 Thread Ed Schouten
Author: ed Date: Sun Oct 16 09:09:33 2011 New Revision: 226428 URL: http://svn.freebsd.org/changeset/base/226428 Log: Undo r226423. It seems su does build without warnings, but it requires a small fix to libbsm headers, which I have not committed to SVN yet. Modified: head/usr.bin/su/M

svn commit: r226427 - head/usr.bin/rwho

2011-10-16 Thread Ed Schouten
Author: ed Date: Sun Oct 16 08:54:41 2011 New Revision: 226427 URL: http://svn.freebsd.org/changeset/base/226427 Log: Build rwho(1) with WARNS=6. The only reason why it didn't build with WARNS=6, is because of some simple to fix string formatting bugs. MFC after:3 months Modifie

svn commit: r226426 - head/lib/libsdp

2011-10-16 Thread Ed Schouten
Author: ed Date: Sun Oct 16 08:45:16 2011 New Revision: 226426 URL: http://svn.freebsd.org/changeset/base/226426 Log: Change the SDP_GET* macros to cast to a const buffer. This fixes a compiler warning when passing a const buffer to them. Modified: head/lib/libsdp/sdp.h Modified: head/l

svn commit: r226425 - in head: lib/libncp sys/netncp

2011-10-16 Thread Ed Schouten
Author: ed Date: Sun Oct 16 08:44:03 2011 New Revision: 226425 URL: http://svn.freebsd.org/changeset/base/226425 Log: Change ncp_scan_bindery_object() to pass a constant search string. The ncp_scan_bindery_object() function does not modify search_string internally, so there is no need to

svn commit: r226424 - head/usr.bin/systat

2011-10-16 Thread Ed Schouten
Author: ed Date: Sun Oct 16 08:36:10 2011 New Revision: 226424 URL: http://svn.freebsd.org/changeset/base/226424 Log: Use integer to store the result of getch(). We need to use an integer to make the comparison against ERR work. MFC after:3 months Modified: head/usr.bin/systat/k

svn commit: r226423 - head/usr.bin/su

2011-10-16 Thread Ed Schouten
Author: ed Date: Sun Oct 16 08:14:12 2011 New Revision: 226423 URL: http://svn.freebsd.org/changeset/base/226423 Log: Remove WARNS line. This tool builds with WARNS=6 properly. Modified: head/usr.bin/su/Makefile Modified: head/usr.bin/su/Makefile =

svn commit: r226422 - head/usr.bin/m4

2011-10-16 Thread Ed Schouten
Author: ed Date: Sun Oct 16 08:09:17 2011 New Revision: 226422 URL: http://svn.freebsd.org/changeset/base/226422 Log: Fix build of m4 with WARNS=6. Change the parser; rename `exp' to `exponent' not to collide with exp(3). Modified: head/usr.bin/m4/Makefile head/usr.bin/m4/expr.c head

svn commit: r226421 - in head/usr.bin: lzmainfo xzdec

2011-10-16 Thread Ed Schouten
Author: ed Date: Sun Oct 16 08:04:43 2011 New Revision: 226421 URL: http://svn.freebsd.org/changeset/base/226421 Log: Remove unneeded WARNS=3 lines. It seems these two tools can be built properly with WARNS=6, even on architectures that are stricter about alignment. Modified: head/usr.

svn commit: r226420 - head/usr.bin/at

2011-10-16 Thread Ed Schouten
Author: ed Date: Sun Oct 16 07:57:01 2011 New Revision: 226420 URL: http://svn.freebsd.org/changeset/base/226420 Log: Build at(1) with NO_WFORMAT instead of WARNS=1. Modified: head/usr.bin/at/Makefile Modified: head/usr.bin/at/Makefile

svn commit: r226419 - head/usr.bin/ruptime

2011-10-16 Thread Ed Schouten
Author: ed Date: Sun Oct 16 07:36:27 2011 New Revision: 226419 URL: http://svn.freebsd.org/changeset/base/226419 Log: Make some internal fixes to ruptime(1): - Prevent possible unaligned access to struct whoent. - Increase uptime column by one, to properly print hosts with an uptime g

svn commit: r226396 - head/usr.bin/systat

2011-10-15 Thread Ed Schouten
Author: ed Date: Sat Oct 15 13:20:36 2011 New Revision: 226396 URL: http://svn.freebsd.org/changeset/base/226396 Log: Fix whitespace inconsistencies in systat(1). According to md5(1), the resulting binary is the same. Modified: head/usr.bin/systat/cmds.c head/usr.bin/systat/cmdtab.c

svn commit: r226363 - head/usr.bin/tr

2011-10-14 Thread Ed Schouten
Author: ed Date: Fri Oct 14 10:43:55 2011 New Revision: 226363 URL: http://svn.freebsd.org/changeset/base/226363 Log: Put parentheses in the right place. Noted by: jilles@ Broken by:me. :-( Modified: head/usr.bin/tr/cset.c Modified: head/usr.bin/tr/cset.c =

svn commit: r226362 - head/usr.bin/nl

2011-10-14 Thread Ed Schouten
Author: ed Date: Fri Oct 14 07:28:39 2011 New Revision: 226362 URL: http://svn.freebsd.org/changeset/base/226362 Log: Make nl(1) build with WARNS=6. Obtained from:NetBSD Modified: head/usr.bin/nl/Makefile head/usr.bin/nl/nl.c Modified: head/usr.bin/nl/Makefile

svn commit: r226361 - in head/usr.bin: last leave

2011-10-14 Thread Ed Schouten
Author: ed Date: Fri Oct 14 07:26:20 2011 New Revision: 226361 URL: http://svn.freebsd.org/changeset/base/226361 Log: Build last(1) and leave(1) with WARNS=6. These ports were only built with WARNS=1, because they use certain format extensions. We can use NO_WFORMAT for that instead. Mod

svn commit: r226360 - head/usr.bin/tr

2011-10-14 Thread Ed Schouten
Author: ed Date: Fri Oct 14 07:25:20 2011 New Revision: 226360 URL: http://svn.freebsd.org/changeset/base/226360 Log: Build tr(1) with WARNS=6. Modified: head/usr.bin/tr/Makefile head/usr.bin/tr/cset.c head/usr.bin/tr/str.c Modified: head/usr.bin/tr/Makefile =

svn commit: r226359 - head/usr.bin/look

2011-10-14 Thread Ed Schouten
Author: ed Date: Fri Oct 14 07:24:48 2011 New Revision: 226359 URL: http://svn.freebsd.org/changeset/base/226359 Log: Build look(1) with WARNS=6. Modified: head/usr.bin/look/Makefile head/usr.bin/look/look.c Modified: head/usr.bin/look/Makefile =

svn commit: r226358 - head/usr.bin/finger

2011-10-14 Thread Ed Schouten
Author: ed Date: Fri Oct 14 07:24:23 2011 New Revision: 226358 URL: http://svn.freebsd.org/changeset/base/226358 Log: Build finger(1) with WARNS=6. Modified: head/usr.bin/finger/Makefile head/usr.bin/finger/lprint.c Modified: head/usr.bin/finger/Makefile ===

svn commit: r226341 - head/sys/teken/demo

2011-10-13 Thread Ed Schouten
Author: ed Date: Thu Oct 13 14:20:27 2011 New Revision: 226341 URL: http://svn.freebsd.org/changeset/base/226341 Log: Link the demo application against ncursesw to make Unicode work. Modified: head/sys/teken/demo/Makefile Modified: head/sys/teken/demo/Makefile ===

svn commit: r226183 - head/sys/teken

2011-10-09 Thread Ed Schouten
Author: ed Date: Mon Oct 10 06:13:27 2011 New Revision: 226183 URL: http://svn.freebsd.org/changeset/base/226183 Log: Properly use the cursor to bound the position for CUP. We must take the origin region into account when clamping the cursor position. MFC after:3 days Modified:

Re: svn commit: r225868 - head/bin/ps

2011-10-09 Thread Ed Schouten
* Alexander Best , 20111009 03:11: > is this what you had in mind? Yes, exactly. :-) -- Ed Schouten WWW: http://80386.nl/ pgpZPhIcb06Wi.pgp Description: PGP signature

Re: svn commit: r226162 - head/share/mk

2011-10-08 Thread Ed Schouten
* Chris Rees , 20111008 20:25: > Revert unapproved commit to bsd.port.mk. You're very nice... :-) -- Ed Schouten WWW: http://80386.nl/ pgpFx0Q7LTiI2.pgp Description: PGP signature

Re: svn commit: r226122 - head/share/mk

2011-10-08 Thread Ed Schouten
-e 's|freebsd\[123\]\*)|freebsd[123].*)|g' \ -e 's|freebsd\[\[12\]\]\*)|freebsd[[12]].*)|g' \ -e 's|freebsd\[\[123\]\]\*)|freebsd[[123]].*)|g' \ - {} + || /usr/bin/true + {} + .ORDER: run-auto

svn commit: r226141 - head/usr.bin/calendar

2011-10-08 Thread Ed Schouten
Author: ed Date: Sat Oct 8 07:20:12 2011 New Revision: 226141 URL: http://svn.freebsd.org/changeset/base/226141 Log: Remove extraneous WARNS=7. WARNS above 6 has no use. Also, all of usr.bin is also built with WARNS=6 by default. Discussed with: edwin Modified: head/usr.bin

svn commit: r226111 - in head: lib/libc/mips lib/libc/net lib/libc/sparc64 lib/libgssapi lib/libmp lib/libulog sys/teken/libteken

2011-10-07 Thread Ed Schouten
Author: ed Date: Fri Oct 7 15:05:24 2011 New Revision: 226111 URL: http://svn.freebsd.org/changeset/base/226111 Log: Fix whitespace inconsistencies found in homegrown Symbol.maps. Modified: head/lib/libc/mips/Symbol.map head/lib/libc/net/Symbol.map head/lib/libc/sparc64/Symbol.map head

svn commit: r226100 - head/sys/teken/stress

2011-10-07 Thread Ed Schouten
Author: ed Date: Fri Oct 7 12:42:03 2011 New Revision: 226100 URL: http://svn.freebsd.org/changeset/base/226100 Log: Simply let teken_stress use arc4random. This makes it run quite a bit faster, since it makes system calls less often. Modified: head/sys/teken/stress/teken_stress.c Mo

svn commit: r226099 - head/sys/teken

2011-10-07 Thread Ed Schouten
Author: ed Date: Fri Oct 7 12:21:50 2011 New Revision: 226099 URL: http://svn.freebsd.org/changeset/base/226099 Log: Tab should not blank cells. It seems I was under the impression that a tab differs from a single forward tabulation, namely that it blanks the underlying cells. This see

Re: svn commit: r225868 - head/bin/ps

2011-10-01 Thread Ed Schouten
* Alexander Best , 20111001 23:10: > i'd like to propose the following patch. any objections? Looks good! Thanks, -- Ed Schouten WWW: http://80386.nl/ pgp1k01qTrnVJ.pgp Description: PGP signature

Re: svn commit: r225897 - head/lib/libc/gen

2011-10-01 Thread Ed Schouten
* Garrett Cooper , 20111001 21:43: > Why not use strlcpy, etc with dlen? Well, I could, but it wouldn't change anything. In both cases, the size of the buffer exceeds the size of _PATH_TTY. -- Ed Schouten WWW: http://80386.nl/ pgpI2Dg6pLMCm.pgp Description: PGP signature

Re: svn commit: r225868 - head/bin/ps

2011-10-01 Thread Ed Schouten
ve never seen the "TT" field > contain an entry larger than 2 chars. Also, it would be better if we replaced the "??" string with "-". When we print "??", it actually means: this process has no controlling terminal, not that we don't know which TTY it is. -- Ed Schouten WWW: http://80386.nl/ pgpg9Q2tEW5eh.pgp Description: PGP signature

svn commit: r225897 - head/lib/libc/gen

2011-10-01 Thread Ed Schouten
Sat Oct 1 11:59:45 2011(r225896) +++ head/lib/libc/gen/ctermid.c Sat Oct 1 12:19:48 2011(r225897) @@ -1,6 +1,6 @@ /*- - * Copyright (c) 1990, 1993 - * The Regents of the University of California. All rights reserved. + * Copyright (c) 2011 Ed Schouten + *

svn commit: r225893 - head/usr.bin/fstat

2011-10-01 Thread Ed Schouten
Author: ed Date: Sat Oct 1 09:16:07 2011 New Revision: 225893 URL: http://svn.freebsd.org/changeset/base/225893 Log: Correct column with for device numbers made in previous change. The device number should be displayed using only five columns -- not eight. Modified: head/usr.bin/fstat/f

svn commit: r225847 - in head: bin/ls bin/ps lib/libc/gen sbin/fsdb usr.bin/find usr.bin/fstat usr.sbin/pstat

2011-09-28 Thread Ed Schouten
Author: ed Date: Wed Sep 28 18:53:36 2011 New Revision: 225847 URL: http://svn.freebsd.org/changeset/base/225847 Log: Get rid of major/minor number distinction. As of FreeBSD 6, devices can only be opened through devfs. These device nodes don't have major and minor numbers anymore. The st

svn commit: r225506 - head/sys/kern

2011-09-12 Thread Ed Schouten
Author: ed Date: Mon Sep 12 10:07:21 2011 New Revision: 225506 URL: http://svn.freebsd.org/changeset/base/225506 Log: Fix error return codes for ioctls on init/lock state devices. In revision 223722 we introduced support for driver ioctls on init/lock state devices. Unfortunately the call

svn commit: r224659 - head/etc

2011-08-05 Thread Ed Schouten
Author: ed Date: Fri Aug 5 17:33:12 2011 New Revision: 224659 URL: http://svn.freebsd.org/changeset/base/224659 Log: Remove NIS entries from /etc/nsswitch.conf for WITHOUT_NIS. We already modify various configuration files in /etc based on build configuration. This is not done for nsswit

svn commit: r224126 - in head/sys: dev/adb dev/atkbdc dev/kbd dev/kbdmux dev/syscons dev/uart dev/usb/input dev/vkbd i386/ibcs2 pc98/cbus sys

2011-07-17 Thread Ed Schouten
Author: ed Date: Sun Jul 17 08:19:19 2011 New Revision: 224126 URL: http://svn.freebsd.org/changeset/base/224126 Log: Restore binary compatibility for GIO_KEYMAP and PIO_KEYMAP. Back in 2009 I changed the ABI of the GIO_KEYMAP and PIO_KEYMAP ioctls to support wide characters. I created a

Re: svn commit: r223884 - head/sys/sys

2011-07-09 Thread Ed Schouten
(uint16_t x) | { | | x = (x & 0x) + ((x >> 1) & 0x); | x = (x & 0x) + ((x >> 2) & 0x); | x *= 0x; | return (x >> 12); | } But some testing revealed it works for all inputs, except 65536. d'oh! -- Ed Schouten WWW: htt

svn commit: r223786 - head/usr.bin/w

2011-07-05 Thread Ed Schouten
Author: ed Date: Tue Jul 5 14:12:48 2011 New Revision: 223786 URL: http://svn.freebsd.org/changeset/base/223786 Log: Only print entries for which ut_host points to a character device. Now that we use utmpx, we more often have entries for which the ut_line is left blank. To prevent us fro

<    4   5   6   7   8   9   10   11   >