svn commit: r227260 - head/usr.sbin/snapinfo

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 19:02:43 2011 New Revision: 227260 URL: http://svn.freebsd.org/changeset/base/227260 Log: Mark global functions and/or variables in snapinfo(8) static where possible. This allows compilers and static analyzers to do more thorough analysis. Modified:

svn commit: r227261 - head/usr.sbin/spray

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 19:02:49 2011 New Revision: 227261 URL: http://svn.freebsd.org/changeset/base/227261 Log: Mark global functions and/or variables in spray(8) static where possible. This allows compilers and static analyzers to do more thorough analysis. Modified:

svn commit: r227267 - in head/sys: dev/iscsi/initiator fs/nwfs fs/smbfs sys ufs/ufs

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 20:16:50 2011 New Revision: 227267 URL: http://svn.freebsd.org/changeset/base/227267 Log: Remove MALLOC_DECLAREs of nonexisting malloc-pools. After careful grepping, it seems none of these pools can be found in our source tree. They are not in use, nor are

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

2011-11-06 Thread Ed Schouten
Author: ed Date: Sun Nov 6 20:30:21 2011 New Revision: 227269 URL: http://svn.freebsd.org/changeset/base/227269 Log: Partially revert r227233. The privs.h header is not only used by at(1), it's also used by atrun(8). Just let the code the way it used to be (for now). Reported by:

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

2011-11-06 Thread Ed Schouten
also uses the `*flag' variables, so there's no reason why we can't just use `aflag'. Does this patch look good to you? -- Ed Schouten e...@80386.nl WWW: http://80386.nl/ Index: usr.bin/du/du.c === --- usr.bin/du/du.c (revision

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

2011-11-06 Thread Ed Schouten
Hi Alexander, * Alexander Best arun...@freebsd.org, 2006 23:30: +The +.Fl a, d +and +.Fl s +options are mutually exclusive. +.Pp +The +.Fl H, L +and +.Fl P +options are mutually exclusive. This can already be derived from the SYNOPSIS, right? -- Ed Schouten e...@80386.nl WWW

svn commit: r227293 - in head/sys: arm/arm arm/xscale/pxa cam cam/ata cam/scsi cddl/dev/cyclic cddl/dev/fbt compat/linux dev/aac dev/acpi_support dev/acpica dev/acpica/Osd dev/ahci dev/amr dev/ath ...

2011-11-06 Thread Ed Schouten
Author: ed Date: Mon Nov 7 06:44:47 2011 New Revision: 227293 URL: http://svn.freebsd.org/changeset/base/227293 Log: Mark MALLOC_DEFINEs static that have no corresponding MALLOC_DECLAREs. This means that their use is restricted to a single C file. Modified:

svn commit: r227294 - head/sys/sys

2011-11-06 Thread Ed Schouten
Author: ed Date: Mon Nov 7 07:09:38 2011 New Revision: 227294 URL: http://svn.freebsd.org/changeset/base/227294 Log: SDT's struct sdt_argtype can be marked static everywhere. It is only passed to SYSINIT/SYSUNINIT. Modified: head/sys/sys/sdt.h Modified: head/sys/sys/sdt.h

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

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

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

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

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: 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

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

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: 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

Re: svn commit: r226785 - head

2011-10-26 Thread Ed Schouten
the `RESCUE' 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, -- Ed Schouten e...@80386.nl WWW: http

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 net/if.h header uses

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: 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 == ---

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

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: 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:

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

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: 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:

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: 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:

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

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:

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

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 sys/types.h #include

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

2011-10-16 Thread Ed Schouten
) + 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 e...@80386.nl WWW: http://80386.nl/ pgpDMtGuMMZXo.pgp Description: PGP signature

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: 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: 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: 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: 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: 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.

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: 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: 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-10 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 arun...@freebsd.org, 20111009 03:11: is this what you had in mind? Yes, exactly. :-) -- Ed Schouten e...@80386.nl WWW: http://80386.nl/ pgpZPhIcb06Wi.pgp Description: PGP signature

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:

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

2011-10-08 Thread Ed Schouten
-- Ed Schouten e...@80386.nl WWW: http://80386.nl/ pgphY7Yz6uF7f.pgp Description: PGP signature

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

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

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

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

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

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:

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

2011-10-01 Thread Ed Schouten
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 e...@freebsd.org + * All rights reserved

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

2011-10-01 Thread Ed Schouten
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 e...@80386.nl WWW: http://80386.nl/ pgpg9Q2tEW5eh.pgp Description: PGP signature

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

2011-10-01 Thread Ed Schouten
* Garrett Cooper yaneg...@gmail.com, 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 e...@80386.nl WWW: http://80386.nl/ pgpI2Dg6pLMCm.pgp Description

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

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

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

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

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

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 e...@80386.nl WWW: http://80386.nl/ pgpx7LrajIhTa.pgp

Re: svn commit: r223715 - head/contrib/gcc

2011-07-05 Thread Ed Schouten
* Ed Schouten e...@80386.nl, 20110704 13:49: I could do another run at WARNS=1 if you like. Done. Everything still builds. -- Ed Schouten e...@80386.nl WWW: http://80386.nl/ pgprjQMHevEZR.pgp Description: PGP signature

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

Re: svn commit: r223715 - head/contrib/gcc

2011-07-04 Thread Ed Schouten
. I've run a `make universe' and it can be added to WARNS = 2 without breaking the build. Maybe we should add it after we have MFCd this commit back to 8? -- Ed Schouten e...@80386.nl WWW: http://80386.nl/ pgp21cJQzf4Wz.pgp Description: PGP signature

Re: svn commit: r223715 - head/contrib/gcc

2011-07-04 Thread Ed Schouten
Hi Ulrich, * Ulrich Spoerlein u...@freebsd.org, 20110704 13:43: Which WARNS2 parts of our tree would trigger that warning, btw? I have no idea. I just picked WARNS=2, because levels lower than 2 are often used for horrible code anyway. I could do another run at WARNS=1 if you like. -- Ed

svn commit: r223744 - head/usr.sbin/config

2011-07-03 Thread Ed Schouten
Author: ed Date: Sun Jul 3 20:59:57 2011 New Revision: 223744 URL: http://svn.freebsd.org/changeset/base/223744 Log: Improve portability of config(8). - Use strlen(dp-d_name) instead of the unportable dp-d_namlen. Rename i to len to make it slightly more descriptive and prevent

svn commit: r223722 - in head/sys: kern sys

2011-07-02 Thread Ed Schouten
Author: ed Date: Sat Jul 2 13:54:20 2011 New Revision: 223722 URL: http://svn.freebsd.org/changeset/base/223722 Log: Reintroduce the cioctl() hook in the TTY layer for digi(4). The cioctl() hook can be used by drivers to add ioctls to the *.init and *.lock devices. This commit breaks

svn commit: r223574 - in head/sys/teken: . demo libteken

2011-06-26 Thread Ed Schouten
Jun 26 17:54:11 2011(r223573) +++ head/sys/teken/gensequences Sun Jun 26 18:25:10 2011(r223574) @@ -3,7 +3,7 @@ #- # Copyright (c) 2008-2009 Ed Schouten e...@freebsd.org # All rights reserved. -# +# # Redistribution and use in source and binary forms, with or without

svn commit: r223575 - in head/sys: dev/pty dev/snp dev/syscons kern

2011-06-26 Thread Ed Schouten
Author: ed Date: Sun Jun 26 18:26:20 2011 New Revision: 223575 URL: http://svn.freebsd.org/changeset/base/223575 Log: Fix whitespace inconsistencies in the TTY layer and its drivers owned by me. Modified: head/sys/dev/pty/pty.c head/sys/dev/snp/snp.c head/sys/dev/syscons/scterm-teken.c

svn commit: r223576 - in head/lib/libc: gen stdlib

2011-06-26 Thread Ed Schouten
Author: ed Date: Sun Jun 26 18:27:17 2011 New Revision: 223576 URL: http://svn.freebsd.org/changeset/base/223576 Log: Fix whitespace inconsistencies in libc in files copyrighted by me. Modified: head/lib/libc/gen/getutxent.3 head/lib/libc/gen/posix_spawn.3 head/lib/libc/gen/posix_spawn.c

svn commit: r223367 - head/libexec/ulog-helper

2011-06-21 Thread Ed Schouten
Author: ed Date: Tue Jun 21 17:59:51 2011 New Revision: 223367 URL: http://svn.freebsd.org/changeset/base/223367 Log: Minor cleanups to ulog-helper: - Remove unneeded linking against libmd. libulog depends on this library, but the ulog-helper tool itself does not. - Change the

svn commit: r223201 - in head: etc/periodic/monthly tools/build/mk tools/build/options usr.sbin

2011-06-17 Thread Ed Schouten
Author: ed Date: Fri Jun 17 20:47:44 2011 New Revision: 223201 URL: http://svn.freebsd.org/changeset/base/223201 Log: Don't omit ac(8) as part of WITHOUT_ACCT. The WITHOUT_ACCT switch is supposed to omit tools related to process accounting, namely accton and sa. ac(8) is just a simple

svn commit: r223202 - head/share/man/man5

2011-06-17 Thread Ed Schouten
Author: ed Date: Fri Jun 17 20:49:30 2011 New Revision: 223202 URL: http://svn.freebsd.org/changeset/base/223202 Log: Update manpage. Modified: head/share/man/man5/src.conf.5 Modified: head/share/man/man5/src.conf.5

svn commit: r223208 - head/tools/build/mk

2011-06-17 Thread Ed Schouten
Author: ed Date: Fri Jun 17 21:20:41 2011 New Revision: 223208 URL: http://svn.freebsd.org/changeset/base/223208 Log: Don't remove the periodic script for ac(8) when setting WITHOUT_ACCT. Modified: head/tools/build/mk/OptionalObsoleteFiles.inc Modified:

svn commit: r223209 - in head: etc/periodic/monthly share/mk tools/build/mk tools/build/options usr.bin usr.sbin

2011-06-17 Thread Ed Schouten
Author: ed Date: Fri Jun 17 21:30:21 2011 New Revision: 223209 URL: http://svn.freebsd.org/changeset/base/223209 Log: Add WITHOUT_UTMPX switch to the build system. This knob removes the tools that are exclusively used to view and maintain the databases maintained by utmpx, namely last,

svn commit: r223210 - head/share/man/man5

2011-06-17 Thread Ed Schouten
Author: ed Date: Fri Jun 17 21:31:13 2011 New Revision: 223210 URL: http://svn.freebsd.org/changeset/base/223210 Log: Regenerate src.conf.5. Modified: head/share/man/man5/src.conf.5 Modified: head/share/man/man5/src.conf.5

svn commit: r222767 - head/usr.sbin/lastlogin

2011-06-06 Thread Ed Schouten
Author: ed Date: Mon Jun 6 18:40:01 2011 New Revision: 222767 URL: http://svn.freebsd.org/changeset/base/222767 Log: Allow custom files to be opened and allow sorting by timestamp. While implementing a tool to import lastlog entries into utmpx, I noticed lastlogin doesn't allow custom

svn commit: r222772 - in head: lib/libiconv sbin/geom/class/sched usr.bin/grep usr.bin/iconv usr.bin/rctl usr.sbin/bluetooth/ath3kfw usr.sbin/bsnmpd/modules/snmp_wlan usr.sbin/rtsold

2011-06-06 Thread Ed Schouten
Author: ed Date: Mon Jun 6 20:24:17 2011 New Revision: 222772 URL: http://svn.freebsd.org/changeset/base/222772 Log: Remove redundant assignments to WARNS. For these directories, WARNS is already implied to be 6. Modified: head/lib/libiconv/Makefile

svn commit: r222656 - in head: contrib/compiler-rt contrib/compiler-rt/lib contrib/compiler-rt/lib/arm contrib/compiler-rt/lib/i386 contrib/compiler-rt/lib/ppc contrib/compiler-rt/lib/x86_64 lib/li...

2011-06-03 Thread Ed Schouten
Author: ed Date: Fri Jun 3 17:49:16 2011 New Revision: 222656 URL: http://svn.freebsd.org/changeset/base/222656 Log: Upgrade libcompiler_rt from revision 117047 to 132478. It seems there have only been a small amount to the compiler-rt source code in the mean time. I'd rather have the

svn commit: r221698 - in head/sys/teken: . demo libteken stress

2011-05-09 Thread Ed Schouten
/libteken/teken.3 Mon May 9 16:27:39 2011 (r221698) @@ -0,0 +1,220 @@ +.\ Copyright (c) 2011 Ed Schouten e...@freebsd.org +.\ All rights reserved. +.\ +.\ Redistribution and use in source and binary forms, with or without +.\ modification, are permitted provided that the following conditions

Re: svn commit: r221419 - head/release

2011-05-04 Thread Ed Schouten
$2 /bin/sh -c cd /usr/src/release make install DESTDIR=/R || exit 1 Wouldn't it be a bit more elegant to do something like this? chroot $2 make -C /usr/src/release obj Also, if you enable set -e, the script terminates upon error. Greetings, -- Ed Schouten e...@80386.nl WWW: http

Re: svn commit: r221053 - head/usr.bin/rlogin

2011-04-28 Thread Ed Schouten
-L 'completed on' _.* About bumping WARNS -- it's pretty hard to remove any WARNS-lines without modifying the code. I think I added most of them by first building all of world with WARNS=6 and selectively lowering them. -- Ed Schouten e...@80386.nl WWW: http://80386.nl/ pgp1SYdz850Qr.pgp

svn commit: r220154 - in head/etc: etc.amd64 etc.arm etc.i386 etc.ia64 etc.mips etc.pc98 etc.powerpc etc.sparc64

2011-03-30 Thread Ed Schouten
Author: ed Date: Wed Mar 30 08:22:29 2011 New Revision: 220154 URL: http://svn.freebsd.org/changeset/base/220154 Log: Remove the reference to pseudo-terminals from the description. Pseudo-terminals are no longer listed in this file, since the utmpx implementation doesn't depend on

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

2011-02-25 Thread Ed Schouten
Author: ed Date: Fri Feb 25 23:05:35 2011 New Revision: 219045 URL: http://svn.freebsd.org/changeset/base/219045 Log: Fix style(9) issues in pututxline(3). Also, make sure to initialize the `ret' variable properly. Reported by: Cedric Jonas cedric c84 eu Patch by: Garrett

svn commit: r218844 - head/share/termcap

2011-02-19 Thread Ed Schouten
Author: ed Date: Sat Feb 19 11:06:00 2011 New Revision: 218844 URL: http://svn.freebsd.org/changeset/base/218844 Log: Improve 256 color support. - Add screen-256color, - Improve rxvt-256color to set pa and op properly. - Add rxvt-unicode-256color as an alias to rxvt-256color. PR:

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

2011-02-19 Thread Ed Schouten
Author: ed Date: Sat Feb 19 11:31:56 2011 New Revision: 218846 URL: http://svn.freebsd.org/changeset/base/218846 Log: Properly styleify utmpx code and document error codes in man page. Submitted by: Garrett Cooper Modified: head/lib/libc/gen/getutxent.3 head/lib/libc/gen/getutxent.c

svn commit: r218847 - in head: lib/libc/gen usr.sbin usr.sbin/utxrm

2011-02-19 Thread Ed Schouten
@@ +.\ Copyright (c) 2011 Ed Schouten e...@freebsd.org +.\ All rights reserved. +.\ +.\ Redistribution and use in source and binary forms, with or without +.\ modification, are permitted provided that the following conditions +.\ are met: +.\ 1. Redistributions of source code must retain the above

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

2011-02-15 Thread Ed Schouten
Author: ed Date: Tue Feb 15 20:04:13 2011 New Revision: 218711 URL: http://svn.freebsd.org/changeset/base/218711 Log: Remove dead reference to regexp(3). Use regex(3) instead. PR: docs/149950 Submitted by: arundel@ Modified: head/lib/libc/gen/glob.3 Modified:

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

2011-02-15 Thread Ed Schouten
Author: ed Date: Tue Feb 15 20:07:35 2011 New Revision: 218712 URL: http://svn.freebsd.org/changeset/base/218712 Log: Don't forget to bump man page date for r218711. Modified: head/lib/libc/gen/glob.3 Modified: head/lib/libc/gen/glob.3

svn commit: r217207 - head/include

2011-01-09 Thread Ed Schouten
Author: ed Date: Sun Jan 9 21:39:46 2011 New Revision: 217207 URL: http://svn.freebsd.org/changeset/base/217207 Log: Add missing __dead2 to __assert(). __assert() is called when an assertion fails. After printing an error message, it will call abort(). abort() never returns, hence it

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

2010-12-27 Thread Ed Schouten
Author: ed Date: Mon Dec 27 15:05:15 2010 New Revision: 216737 URL: http://svn.freebsd.org/changeset/base/216737 Log: Fix style bug introduced in r216696. Additional indentation caused the line to become longer than 80 columns. Modified: head/usr.bin/lock/lock.c Modified:

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

2010-12-25 Thread Ed Schouten
Author: ed Date: Sat Dec 25 11:24:27 2010 New Revision: 216696 URL: http://svn.freebsd.org/changeset/base/216696 Log: Slightly improve output of lock(1). - Remove the /dev/ portion of the TTY name. - In case we use lock -p, print the username that was used to obtain the password

svn commit: r216198 - head/sys/teken

2010-12-05 Thread Ed Schouten
Author: ed Date: Sun Dec 5 10:15:23 2010 New Revision: 216198 URL: http://svn.freebsd.org/changeset/base/216198 Log: Use proper bounds checking on VPA. We must check against tp-t_cursor.tp_row, not row, to figure out whether we must clamp the cursor position. Submitted by: luigi

svn commit: r215299 - in head/sys: geom/eli kern libkern sys

2010-11-14 Thread Ed Schouten
Author: ed Date: Sun Nov 14 14:12:43 2010 New Revision: 215299 URL: http://svn.freebsd.org/changeset/base/215299 Log: Add support for asterisk characters when filling in the GELI password during boot. Change the last argument of gets() to indicate a visibility flag and add definitions

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

2010-11-14 Thread Ed Schouten
Author: ed Date: Sun Nov 14 18:42:39 2010 New Revision: 215310 URL: http://svn.freebsd.org/changeset/base/215310 Log: Always set errno to a sane value when pututxline(3) fails. For example, it will now return ESRCH when trying to replace a nonexistent entry with DEAD_PROCESS. Modified:

svn commit: r215185 - in head: gnu/lib/libgcc lib/libcompiler_rt

2010-11-12 Thread Ed Schouten
Author: ed Date: Fri Nov 12 15:52:27 2010 New Revision: 215185 URL: http://svn.freebsd.org/changeset/base/215185 Log: Revert to libgcc for sparc64. I've had a report of a sparc64 system where cc1 generates illegal instructions. We still have to diagnose this properly, but instead of

svn commit: r215125 - in head: contrib/compiler-rt contrib/compiler-rt/BlocksRuntime contrib/compiler-rt/BlocksRuntime/tests contrib/compiler-rt/cmake contrib/compiler-rt/lib contrib/compiler-rt/li...

2010-11-11 Thread Ed Schouten
Author: ed Date: Thu Nov 11 15:13:11 2010 New Revision: 215125 URL: http://svn.freebsd.org/changeset/base/215125 Log: Import libcompiler_rt into HEAD and add Makefiles. Obtained from:user/ed/compiler-rt Added: head/contrib/compiler-rt/ - copied from r214849,

svn commit: r215126 - head/gnu/lib/libgcc

2010-11-11 Thread Ed Schouten
Author: ed Date: Thu Nov 11 15:24:57 2010 New Revision: 215126 URL: http://svn.freebsd.org/changeset/base/215126 Log: Don't use ${LIB} to obtain the library name. Once we use libcompiler_rt, the LIB-line must go, to prevent libgcc.a from being built. Therefore, just hardcode the name.

svn commit: r215127 - in head: . gnu/lib/libgcc lib sys/sys

2010-11-11 Thread Ed Schouten
Author: ed Date: Thu Nov 11 15:48:27 2010 New Revision: 215127 URL: http://svn.freebsd.org/changeset/base/215127 Log: Replace libgcc.a by libcompiler_rt.a. libcompiler_rt.a is a BSD licensed C language runtime, which implements many routines which are linked into binaries on

svn commit: r215129 - in head: contrib/compiler-rt/lib lib/libcompiler_rt

2010-11-11 Thread Ed Schouten
Author: ed Date: Thu Nov 11 16:53:25 2010 New Revision: 215129 URL: http://svn.freebsd.org/changeset/base/215129 Log: Set symbol visibility to hidden. Not doing so may cause all sorts of random libraries to expose libcompiler_rt's functions, which should of course not be done.

<    4   5   6   7   8   9   10   >