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

2012-11-14 Thread Ed Schouten
2012/11/14 Baptiste Daroussin b...@freebsd.org: Allow usernames up to 32 chars Thanks! -- Ed Schouten e...@80386.nl ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to svn

svn commit: r242891 - stable/9/usr.sbin/ac

2012-11-11 Thread Ed Schouten
. +/*- + * Copyright (c) 1994 Christopher G. Demetriou + * Copyright (c) 1994 Simon J. Gerraty + * Copyright (c) 2012 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

svn commit: r242892 - in stable/9/sys: kern sys

2012-11-11 Thread Ed Schouten
Author: ed Date: Sun Nov 11 12:12:44 2012 New Revision: 242892 URL: http://svnweb.freebsd.org/changeset/base/242892 Log: MFC r241161: Fix faulty error code handling in read(2) on TTYs. When performing a non-blocking read(2), on a TTY while no data is available, we should

svn commit: r242893 - in stable/9: share/man/man3 sys/sys

2012-11-11 Thread Ed Schouten
Author: ed Date: Sun Nov 11 12:21:51 2012 New Revision: 242893 URL: http://svnweb.freebsd.org/changeset/base/242893 Log: MFC r240422, r240426 and r240450: Implement LIST_PREV(). Regular LISTs have been implemented in such a way that the prev-pointer does not point to the

Re: svn commit: r242624 - in head: . share/mk sys/sys

2012-11-05 Thread Ed Schouten
2012/11/5 Brooks Davis bro...@freebsd.org: After years of hard work by many FreeBSD and LLVM developers, make clang the default compiler on i386 and amd64 systems. Woohoo! -- Ed Schouten e...@80386.nl ___ svn-src-all@freebsd.org mailing list http

svn commit: r242529 - in head/sys: dev/syscons kern sys

2012-11-03 Thread Ed Schouten
Author: ed Date: Sat Nov 3 22:21:37 2012 New Revision: 242529 URL: http://svn.freebsd.org/changeset/base/242529 Log: Add tty_set_winsize(). This removes some of the signalling magic from the Syscons driver and puts it in the TTY layer, where it belongs. Modified:

Re: svn commit: r242080 - in head/contrib/llvm/tools/clang: include/clang/Basic lib/Sema

2012-10-27 Thread Ed Schouten
the problem. -- Ed Schouten e...@80386.nl ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to svn-src-all-unsubscr...@freebsd.org

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

2012-10-25 Thread Ed Schouten
Author: ed Date: Thu Oct 25 09:05:21 2012 New Revision: 242078 URL: http://svn.freebsd.org/changeset/base/242078 Log: Correct SIGTTIN handling. In the old TTY layer, SIGTTIN was correctly handled like this: while (data should be read) { send SIGTTIN if not

svn commit: r242080 - in head/contrib/llvm/tools/clang: include/clang/Basic lib/Sema

2012-10-25 Thread Ed Schouten
Author: ed Date: Thu Oct 25 10:13:58 2012 New Revision: 242080 URL: http://svn.freebsd.org/changeset/base/242080 Log: Pull in r166498 from upstream clang trunk: Add a new warning -Wmissing-variable-declarations, to warn about variables defined without a previous declaration. This is

svn commit: r242091 - in head/usr.sbin/lpr: common_source filters

2012-10-25 Thread Ed Schouten
Author: ed Date: Thu Oct 25 20:16:38 2012 New Revision: 242091 URL: http://svn.freebsd.org/changeset/base/242091 Log: Let lpr build with -Wmissing-variable-declarations. Mark variables static where possible and place the uid/euid variables in lp.h, so that we can compile-time enforce

svn commit: r241914 - head/sys/kern

2012-10-22 Thread Ed Schouten
Author: ed Date: Mon Oct 22 21:14:26 2012 New Revision: 241914 URL: http://svn.freebsd.org/changeset/base/241914 Log: Remove unused `vfslocked' variable. I have no idea what this `vfslocked' thing means. I wonder how it ended up here. Modified: head/sys/kern/vfs_syscalls.c Modified:

Re: svn commit: r241777 - in head: bin/dd libexec/rpc.rusersd libexec/talkd usr.bin/cksum usr.bin/m4 usr.sbin/mtree usr.sbin/newsyslog usr.sbin/services_mkdb

2012-10-21 Thread Ed Schouten
Is this the right fix? [...] Yes! Sorry for the breakage and thanks for fixing/committing it. -- Ed Schouten e...@80386.nl ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to svn-src

svn commit: r241776 - head/usr.sbin/mfiutil

2012-10-20 Thread Ed Schouten
Author: ed Date: Sat Oct 20 10:20:06 2012 New Revision: 241776 URL: http://svn.freebsd.org/changeset/base/241776 Log: Remove redundant code. Both mfi_flash.c and mfi_show.c contain very similar functions to print a list of firmwares. Move these routines into mfiutil.c. Reported by:

svn commit: r241777 - in head: bin/dd libexec/rpc.rusersd libexec/talkd usr.bin/cksum usr.bin/m4 usr.sbin/mtree usr.sbin/newsyslog usr.sbin/services_mkdb

2012-10-20 Thread Ed Schouten
Author: ed Date: Sat Oct 20 10:33:15 2012 New Revision: 241777 URL: http://svn.freebsd.org/changeset/base/241777 Log: More -Wmissing-variable-declarations fixes. In addition to adding missing `static' keywords: - bin/dd: Pull in `extern.h' to guarantee consistency with source file. -

svn commit: r241778 - head/usr.sbin/services_mkdb

2012-10-20 Thread Ed Schouten
Author: ed Date: Sat Oct 20 10:34:55 2012 New Revision: 241778 URL: http://svn.freebsd.org/changeset/base/241778 Log: Move uniq() prototype into extern.h. Modified: head/usr.sbin/services_mkdb/extern.h head/usr.sbin/services_mkdb/services_mkdb.c head/usr.sbin/services_mkdb/uniq.c

svn commit: r241733 - in head/sys/dev: cxgb/ulp/tom cxgbe cxgbe/tom

2012-10-19 Thread Ed Schouten
Author: ed Date: Fri Oct 19 13:26:40 2012 New Revision: 241733 URL: http://svn.freebsd.org/changeset/base/241733 Log: Prefer __containerof() over __member2struct(). The former works better with qualifiers, but also properly type checks the input pointer. Modified:

svn commit: r241736 - in head: sbin/natd usr.bin/logger usr.sbin/syslogd

2012-10-19 Thread Ed Schouten
Author: ed Date: Fri Oct 19 14:29:03 2012 New Revision: 241736 URL: http://svn.freebsd.org/changeset/base/241736 Log: Add missing const keywords. Modified: head/sbin/natd/natd.c head/usr.bin/logger/logger.c head/usr.sbin/syslogd/syslogd.c Modified: head/sbin/natd/natd.c

svn commit: r241737 - in head: bin/date bin/ed libexec/rtld-aout sbin/camcontrol sbin/geom/core usr.bin/at usr.bin/calendar usr.bin/chat usr.bin/ctlstat usr.bin/elfdump usr.bin/fetch usr.bin/finger...

2012-10-19 Thread Ed Schouten
Author: ed Date: Fri Oct 19 14:49:42 2012 New Revision: 241737 URL: http://svn.freebsd.org/changeset/base/241737 Log: More -Wmissing-variable-declarations fixes. In addition to adding `static' where possible: - bin/date: Move `retval' into extern.h to make it visible to date.c. -

Re: svn commit: r241737 - in head: bin/date bin/ed libexec/rtld-aout sbin/camcontrol sbin/geom/core usr.bin/at usr.bin/calendar usr.bin/chat usr.bin/ctlstat usr.bin/elfdump usr.bin/fetch usr.bin/finge

2012-10-19 Thread Ed Schouten
Hi John, 2012/10/19 John Baldwin j...@freebsd.org: The fw_* changes here probably wasn't the right way to fix this. The variables should be static. The problem is that 'scan_firmware()' is duplicated and should probably be reduced to a single copy. Good catch! Will fix! -- Ed Schouten e

svn commit: r241695 - in head: lib/libstdbuf usr.bin/sort

2012-10-18 Thread Ed Schouten
Author: ed Date: Thu Oct 18 15:39:29 2012 New Revision: 241695 URL: http://svn.freebsd.org/changeset/base/241695 Log: Remove WARNS=6 lines. WARNS=6 is already implied at this point. Modified: head/lib/libstdbuf/Makefile head/usr.bin/sort/Makefile Modified: head/lib/libstdbuf/Makefile

svn commit: r241702 - head/sys/fs/fuse

2012-10-18 Thread Ed Schouten
Author: ed Date: Thu Oct 18 19:28:31 2012 New Revision: 241702 URL: http://svn.freebsd.org/changeset/base/241702 Log: Remove unneeded D_NEEDMINOR. This is only needed when using clonelists. This got remove in r238693. Modified: head/sys/fs/fuse/fuse_device.c Modified:

svn commit: r241720 - in head: bin/ed bin/getfacl bin/pax bin/rcp bin/setfacl lib/libdwarf lib/libelf lib/librpcsec_gss lib/libthread_db libexec/tftpd sbin/etherswitchcfg sbin/ggate/ggatec sbin/gga...

2012-10-18 Thread Ed Schouten
Author: ed Date: Fri Oct 19 05:43:38 2012 New Revision: 241720 URL: http://svn.freebsd.org/changeset/base/241720 Log: Fix warnings found by -Wmising-variable-declarations. This self-written compiler warning, which is hopefully going to be committed into LLVM sources soon, warns about

svn commit: r241161 - head/sys/kern

2012-10-03 Thread Ed Schouten
Author: ed Date: Wed Oct 3 13:51:03 2012 New Revision: 241161 URL: http://svn.freebsd.org/changeset/base/241161 Log: Fix faulty error code handling in read(2) on TTYs. When performing a non-blocking read(2), on a TTY while no data is available, we should return EAGAIN. But if there's a

svn commit: r240915 - in vendor/NetBSD/libedit/dist: . TEST readline

2012-09-25 Thread Ed Schouten
Author: ed Date: Tue Sep 25 10:41:30 2012 New Revision: 240915 URL: http://svn.freebsd.org/changeset/base/240915 Log: Vendor import NetBSD's libedit of 2012/09/25 10:41:11 UTC. Obtained from:NetBSD Added: vendor/NetBSD/libedit/dist/TEST/rl1.c

svn commit: r240916 - vendor/NetBSD/libedit/2012-09-25

2012-09-25 Thread Ed Schouten
Author: ed Date: Tue Sep 25 10:42:13 2012 New Revision: 240916 URL: http://svn.freebsd.org/changeset/base/240916 Log: Tag the 2012/09/25 10:41:11 UTC import. Added: vendor/NetBSD/libedit/2012-09-25/ - copied from r240915, vendor/NetBSD/libedit/dist/

svn commit: r240539 - in head/sys: dev/drm2 dev/drm2/i915 fs/devfs mips/mips

2012-09-15 Thread Ed Schouten
Author: ed Date: Sat Sep 15 19:28:54 2012 New Revision: 240539 URL: http://svn.freebsd.org/changeset/base/240539 Log: Prefer __containerof() above member2struct(). The first does proper checking of the argument types, while the latter does not. Modified: head/sys/dev/drm2/drm_gem.c

svn commit: r240450 - head/sys/sys

2012-09-13 Thread Ed Schouten
Author: ed Date: Thu Sep 13 08:13:01 2012 New Revision: 240450 URL: http://svn.freebsd.org/changeset/base/240450 Log: Rename __member2struct() to __containerof(). Compared to __member2struct(), this macro has the following advantages: - It ensures that the type of the pointer is

svn commit: r240422 - in head: share/man/man3 sys/sys

2012-09-12 Thread Ed Schouten
Author: ed Date: Wed Sep 12 21:03:48 2012 New Revision: 240422 URL: http://svn.freebsd.org/changeset/base/240422 Log: Implement LIST_PREV(). Regular LISTs have been implemented in such a way that the prev-pointer does not point to the previous element, but to the next-pointer stored in

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

2012-09-12 Thread Ed Schouten
Author: ed Date: Wed Sep 12 22:16:31 2012 New Revision: 240425 URL: http://svn.freebsd.org/changeset/base/240425 Log: Switch batch to an SLIST. This code requires none of the features of LIST. Modified: head/usr.bin/last/last.c Modified: head/usr.bin/last/last.c

svn commit: r240426 - head/sys/sys

2012-09-12 Thread Ed Schouten
Author: ed Date: Wed Sep 12 22:54:11 2012 New Revision: 240426 URL: http://svn.freebsd.org/changeset/base/240426 Log: Correctness: use __member2struct() on the correct fields. The prev-pointers point to the next-pointers of the previous element -- not the ENTRY structure. The

svn commit: r239973 - head/sys/sys

2012-09-01 Thread Ed Schouten
Author: ed Date: Sat Sep 1 08:45:19 2012 New Revision: 239973 URL: http://svn.freebsd.org/changeset/base/239973 Log: Fix whitespace. MFC after:1 month Modified: head/sys/sys/time.h Modified: head/sys/sys/time.h

svn commit: r239938 - head/usr.sbin/ac

2012-08-31 Thread Ed Schouten
Author: ed Date: Fri Aug 31 08:48:53 2012 New Revision: 239938 URL: http://svn.freebsd.org/changeset/base/239938 Log: Use better variable naming. MFC after:1 month Modified: head/usr.sbin/ac/ac.c Modified: head/usr.sbin/ac/ac.c

svn commit: r239910 - head/usr.sbin/ac

2012-08-30 Thread Ed Schouten
Author: ed Date: Thu Aug 30 16:45:27 2012 New Revision: 239910 URL: http://svn.freebsd.org/changeset/base/239910 Log: Massively refactor ac(8). - Use queue(3) -- not some homegrown implementation of linked lists. - Rename structures to _entry, as they are entries in the linked list --

svn commit: r239855 - head/usr.sbin/ac

2012-08-29 Thread Ed Schouten
Author: ed Date: Wed Aug 29 16:15:22 2012 New Revision: 239855 URL: http://svn.freebsd.org/changeset/base/239855 Log: Fix whitespace. Modified: head/usr.sbin/ac/ac.c Modified: head/usr.sbin/ac/ac.c == ---

svn commit: r239790 - in head/sys/geom: . bde part uncompress uzip

2012-08-28 Thread Ed Schouten
Author: ed Date: Tue Aug 28 19:28:31 2012 New Revision: 239790 URL: http://svn.freebsd.org/changeset/base/239790 Log: Remove unneeded G_PF_CANDELETE flag. This flag is only used by GEOM so it can be propagated to the character device's SI_CANDELETE. Unfortunately, SI_CANDELETE seems to

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

2012-08-28 Thread Ed Schouten
Author: ed Date: Tue Aug 28 19:30:29 2012 New Revision: 239791 URL: http://svn.freebsd.org/changeset/base/239791 Log: Remove unused SI_* flags. The SI_DEVOPEN, SI_CONSOPEN and SI_CANDELETE flags are not used by any piece of code in the tree. Modified: head/sys/kern/kern_conf.c

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

2012-08-11 Thread Ed Schouten
Author: ed Date: Sat Aug 11 12:07:24 2012 New Revision: 239193 URL: http://svn.freebsd.org/changeset/base/239193 Log: Rename aux.c to auxv.c. On Windows, AUX is the auxiliary device, usually pointing to COM1. Therefore it is forbidden to create a file named aux.c. To make it a bit

svn commit: r236629 - head/include

2012-06-05 Thread Ed Schouten
Author: ed Date: Tue Jun 5 19:42:57 2012 New Revision: 236629 URL: http://svn.freebsd.org/changeset/base/236629 Log: Fix a small typo. Fireware - firmware. MFC after:2 weeks Modified: head/include/fmtmsg.h Modified: head/include/fmtmsg.h

svn commit: r236441 - head/lib/libc/sys

2012-06-02 Thread Ed Schouten
Author: ed Date: Sat Jun 2 10:50:25 2012 New Revision: 236441 URL: http://svn.freebsd.org/changeset/base/236441 Log: Remove invalid remark about pipes. The stat structures returned on pipes seems to contain all the information required by POSIX. Especially the wording and thus to a

svn commit: r236140 - head/sys/fs/ntfs

2012-05-27 Thread Ed Schouten
Author: ed Date: Sun May 27 09:34:47 2012 New Revision: 236140 URL: http://svn.freebsd.org/changeset/base/236140 Log: Fix style and consistency: - Use tabs, not spaces. - Add tab after #define. - Don't mix the use of BSD and ISO C unsigned integer types. Prefer the ISO C ones.

svn commit: r236026 - in head/sys: amd64/linux32 compat/freebsd32 kern

2012-05-25 Thread Ed Schouten
Author: ed Date: Fri May 25 21:50:48 2012 New Revision: 236026 URL: http://svn.freebsd.org/changeset/base/236026 Log: Remove use of non-ISO-C integer types from system call tables. These files already use ISO-C-style integer types, so make them less inconsistent by preferring the

svn commit: r236027 - in head/sys: amd64/linux32 compat/freebsd32 kern sys

2012-05-25 Thread Ed Schouten
Author: ed Date: Fri May 25 21:52:57 2012 New Revision: 236027 URL: http://svn.freebsd.org/changeset/base/236027 Log: Regenerate system call tables. Modified: head/sys/amd64/linux32/linux32_proto.h head/sys/amd64/linux32/linux32_syscall.h head/sys/amd64/linux32/linux32_syscalls.c

svn commit: r234462 - head/lib/libulog

2012-04-19 Thread Ed Schouten
Author: ed Date: Thu Apr 19 15:28:15 2012 New Revision: 234462 URL: http://svn.freebsd.org/changeset/base/234462 Log: Properly use SHA1_Final() instead of SHA_Final(). In this case it doesn't really matter, as long as we turn a TTY name into a set of shuffled bytes. Still, for

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

2012-04-19 Thread Ed Schouten
Author: ed Date: Thu Apr 19 21:12:08 2012 New Revision: 234469 URL: http://svn.freebsd.org/changeset/base/234469 Log: Do a better job at determining the username of the login session. When multiple users share the same UID, the old code will simply pick an arbitrary username to attach to

svn commit: r233942 - in stable/9/lib/libc: compat-43 sys

2012-04-06 Thread Ed Schouten
Author: ed Date: Fri Apr 6 11:06:47 2012 New Revision: 233942 URL: http://svn.freebsd.org/changeset/base/233942 Log: MFC r233002, r233003 and r233012: Remove impossible error condition from the man page. On FreeBSD, all processes have a process group, so it is impossible for

svn commit: r233943 - stable/9/etc

2012-04-06 Thread Ed Schouten
Author: ed Date: Fri Apr 6 11:07:44 2012 New Revision: 233943 URL: http://svn.freebsd.org/changeset/base/233943 Log: MFC r232976: Hide stty(1) errors. If rc(8) is executed without using a TTY, this error appears at the beginning: stty: stdin isn't a terminal

svn commit: r233944 - stable/9/sbin/init

2012-04-06 Thread Ed Schouten
Author: ed Date: Fri Apr 6 11:09:49 2012 New Revision: 233944 URL: http://svn.freebsd.org/changeset/base/233944 Log: MFC r232841: Fix whitespace. Modified: stable/9/sbin/init/init.c Directory Properties: stable/9/sbin/init/ (props changed) Modified: stable/9/sbin/init/init.c

svn commit: r233945 - head/sbin/init

2012-04-06 Thread Ed Schouten
Author: ed Date: Fri Apr 6 13:06:01 2012 New Revision: 233945 URL: http://svn.freebsd.org/changeset/base/233945 Log: Properly clear the O_NONBLOCK flag after opening the TTY. Though we should open the TTY with O_NONBLOCK to prevent rc(8) execution from potentially stalling, we must not

Re: svn commit: r233661 - in head/sys: dev/syscons sys

2012-03-29 Thread Ed Schouten
add a wrapper to syscons.c. -- Ed Schouten e...@80386.nl WWW: http://80386.nl/ pgpicjlRAoaL6.pgp Description: PGP signature

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

2012-03-23 Thread Ed Schouten
Author: ed Date: Fri Mar 23 08:26:31 2012 New Revision: 233345 URL: http://svn.freebsd.org/changeset/base/233345 Log: Make utmpx(3) thread safe if we support TLS. Because the utmpx interface is generally not required to be thread-safe, but it is nice to have, if easy to do so. Therefore

Re: svn commit: r233271 - in head/sys: amd64/conf arm/conf i386/conf ia64/conf mips/conf pc98/conf powerpc/conf sparc64/conf

2012-03-21 Thread Ed Schouten
message, you probably need to load pty(4). Thanks, -- Ed Schouten e...@80386.nl WWW: http://80386.nl/ pgpNlY7kMsH6M.pgp Description: PGP signature

svn commit: r233108 - stable/9/sys/sys

2012-03-18 Thread Ed Schouten
Author: ed Date: Sun Mar 18 09:19:40 2012 New Revision: 233108 URL: http://svn.freebsd.org/changeset/base/233108 Log: MFC r228322,228330,228477,228495,228562,228564,228859,228897,229574,230277: Bring sys/cdefs.h in sync with FreeBSD HEAD: - Add an __alignof() for non-GCC and GCC

svn commit: r233083 - stable/9/usr.sbin/watch

2012-03-17 Thread Ed Schouten
Author: ed Date: Sat Mar 17 09:10:43 2012 New Revision: 233083 URL: http://svn.freebsd.org/changeset/base/233083 Log: MFC r232780 and r232781: Fix whitespace. Modified: stable/9/usr.sbin/watch/watch.c Directory Properties: stable/9/usr.sbin/watch/ (props changed) Modified:

svn commit: r233002 - head/lib/libc/sys

2012-03-15 Thread Ed Schouten
Author: ed Date: Thu Mar 15 11:49:26 2012 New Revision: 233002 URL: http://svn.freebsd.org/changeset/base/233002 Log: Remove impossible error condition from the man page. On FreeBSD, all processes have a process group, so it is impossible for kill(2) to fail this way. POSIX also doesn't

svn commit: r233003 - head/lib/libc/sys

2012-03-15 Thread Ed Schouten
Author: ed Date: Thu Mar 15 12:12:39 2012 New Revision: 233003 URL: http://svn.freebsd.org/changeset/base/233003 Log: Extend the description for ESRCH a bit. This errno can also be returned if the passed process identifier doesn't correspond with a process group. Discussed on: arch@

svn commit: r233012 - head/lib/libc/compat-43

2012-03-15 Thread Ed Schouten
Author: ed Date: Thu Mar 15 21:19:50 2012 New Revision: 233012 URL: http://svn.freebsd.org/changeset/base/233012 Log: Remove non-existing error condition. Just like kill(2), it is impossible for killpg(0, ...) to fail with ESRCH, as a process always has a process group. Discussed

svn commit: r232976 - head/etc

2012-03-14 Thread Ed Schouten
Author: ed Date: Wed Mar 14 16:10:39 2012 New Revision: 232976 URL: http://svn.freebsd.org/changeset/base/232976 Log: Hide stty(1) errors. If rc(8) is executed without using a TTY, this error appears at the beginning: stty: stdin isn't a terminal Because this is to be

svn commit: r232977 - in head: etc sbin/init

2012-03-14 Thread Ed Schouten
Author: ed Date: Wed Mar 14 16:22:09 2012 New Revision: 232977 URL: http://svn.freebsd.org/changeset/base/232977 Log: Make init(8) slightly more robust when /dev/console is missing. If the environment doesn't offer a working /dev/console, the existing version of init(8) will simply

svn commit: r232841 - head/sbin/init

2012-03-11 Thread Ed Schouten
Author: ed Date: Sun Mar 11 22:30:06 2012 New Revision: 232841 URL: http://svn.freebsd.org/changeset/base/232841 Log: Fix whitespace. MFC after:1 week Modified: head/sbin/init/init.c Modified: head/sbin/init/init.c

svn commit: r232780 - head/usr.sbin/watch

2012-03-10 Thread Ed Schouten
Author: ed Date: Sat Mar 10 14:35:09 2012 New Revision: 232780 URL: http://svn.freebsd.org/changeset/base/232780 Log: Fix whitespace. MFC after:1 week Modified: head/usr.sbin/watch/watch.c Modified: head/usr.sbin/watch/watch.c

svn commit: r232781 - head/usr.sbin/watch

2012-03-10 Thread Ed Schouten
Author: ed Date: Sat Mar 10 14:38:34 2012 New Revision: 232781 URL: http://svn.freebsd.org/changeset/base/232781 Log: Perform even more style changes. - Remove unneeded whitespace for function calls. - Add empty line at the top of functions without local variables. - Change while (1)

Re: svn commit: r232721 - head/sys/x86/include

2012-03-09 Thread Ed Schouten
Tijl, * Tijl Coosemans t...@freebsd.org, 20120309 12:48: Clean up x86 endian.h: Wouldn't it be possible to simply place these macros in sys/endian.h and only let machine/endian.h define the assembly versions for the non-constant cases? Thanks, -- Ed Schouten e...@80386.nl WWW: http

svn commit: r232404 - stable/9/share/man/man9

2012-03-02 Thread Ed Schouten
Author: ed Date: Fri Mar 2 21:17:24 2012 New Revision: 232404 URL: http://svn.freebsd.org/changeset/base/232404 Log: MFC r231376: Remove outdated piece of information. devtoname() always returns a pathname to the device. It will never return a #major/minor string. Modified:

svn commit: r232405 - in stable/9/sys: compat/linux dev/iscsi/initiator dev/sound/pcm dev/usb netgraph security/mac_biba security/mac_lomac security/mac_mls vm

2012-03-02 Thread Ed Schouten
Author: ed Date: Fri Mar 2 21:29:57 2012 New Revision: 232405 URL: http://svn.freebsd.org/changeset/base/232405 Log: MFC r231378: Remove direct access to si_name. Code should just use the devtoname() function to obtain the name of a character device. Also add const keywords

svn commit: r232406 - stable/9/usr.sbin/vipw

2012-03-02 Thread Ed Schouten
Author: ed Date: Fri Mar 2 21:36:24 2012 New Revision: 232406 URL: http://svn.freebsd.org/changeset/base/232406 Log: MFC r231383, r231385 and r231648: Detect file modification properly by using tv_nsec. POSIX 2008 standardizes st_mtim, meaning we can simply use nanosecond

svn commit: r232408 - stable/9/lib/libc/gen

2012-03-02 Thread Ed Schouten
Author: ed Date: Fri Mar 2 21:38:27 2012 New Revision: 232408 URL: http://svn.freebsd.org/changeset/base/232408 Log: MFC r231514: Set read buffer size to multiple of sizeof(struct futx). If the utmpx database gets updated while an application is reading it, there is a chance

Re: svn commit: r232183 - head/sys/kern

2012-02-26 Thread Ed Schouten
separate struct fileops here? -- Ed Schouten e...@80386.nl WWW: http://80386.nl/ pgpU0wCEM8Cww.pgp Description: PGP signature

Re: svn commit: r231978 - head/sys/conf

2012-02-22 Thread Ed Schouten
* Dimitry Andric d...@freebsd.org, 20120221 21:55: These warnings are tricky to fix without a lot of overhaul, and they are harmless, so disable them for now. What about marking it const? It seems to be never written to. -- Ed Schouten e...@80386.nl WWW: http://80386.nl

svn commit: r231648 - head/usr.sbin/vipw

2012-02-14 Thread Ed Schouten
Author: ed Date: Tue Feb 14 09:29:37 2012 New Revision: 231648 URL: http://svn.freebsd.org/changeset/base/231648 Log: Restore message in man page on VFS timestamp precision. Requested by: bde, jhb Modified: head/usr.sbin/vipw/vipw.8 Modified: head/usr.sbin/vipw/vipw.8

svn commit: r231584 - head/crypto/openssh

2012-02-13 Thread Ed Schouten
Author: ed Date: Mon Feb 13 11:59:59 2012 New Revision: 231584 URL: http://svn.freebsd.org/changeset/base/231584 Log: Polish diff against upstream. - Revert unneeded whitespace changes. - Revert modifications to loginrec.c, as the upstream version already does the right thing. -

Re: svn commit: r231383 - in head: lib/libutil usr.sbin/vipw

2012-02-13 Thread Ed Schouten
the BUG back as your change didn't remove it. I'll re-add it tomorrow. I do think I will extend the message a bit, stating that this is only a problem if your file system doesn't do fine-grained timestamps. -- Ed Schouten e...@80386.nl WWW: http://80386.nl/ pgpE0jtuf854Y.pgp Description: PGP

svn commit: r231564 - in head: lib/libc/db/man lib/libc/gen lib/libc/net lib/libc/rpc lib/libc/sys lib/libcam lib/libdevstat lib/libradius sbin/bsdlabel sbin/newfs_msdos share/man/man4 share/man/ma...

2012-02-12 Thread Ed Schouten
Author: ed Date: Sun Feb 12 18:29:56 2012 New Revision: 231564 URL: http://svn.freebsd.org/changeset/base/231564 Log: Globally replace u_int*_t from (non-contributed) man pages. The reasoning behind this, is that if we are consistent in our documentation about the uint*_t stuff, people

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

2012-02-11 Thread Ed Schouten
Author: ed Date: Sat Feb 11 11:11:13 2012 New Revision: 231514 URL: http://svn.freebsd.org/changeset/base/231514 Log: Set read buffer size to multiple of sizeof(struct futx). If the utmpx database gets updated while an application is reading it, there is a chance the reading application

svn commit: r231530 - in head: lib/libc/gen tools/build/mk tools/build/options usr.sbin usr.sbin/utx usr.sbin/utxrm

2012-02-11 Thread Ed Schouten
) == --- head/usr.sbin/utxrm/utxrm.8 Sat Feb 11 11:11:13 2012(r231514, copy source) +++ head/usr.sbin/utx/utx.8 Sat Feb 11 20:28:42 2012(r231530) @@ -1,4 +1,4 @@ -.\ Copyright (c) 2011 Ed Schouten e...@freebsd.org +.\ Copyright (c) 2011-2012

svn commit: r231534 - in head: etc/rc.d sbin/init

2012-02-11 Thread Ed Schouten
Author: ed Date: Sat Feb 11 20:47:16 2012 New Revision: 231534 URL: http://svn.freebsd.org/changeset/base/231534 Log: Move utmpx handling out of init(8). This has the following advantages: - During boot, the BOOT_TIME record is now written right after the file systems become

svn commit: r231536 - head/usr.bin/who

2012-02-11 Thread Ed Schouten
Author: ed Date: Sat Feb 11 21:49:23 2012 New Revision: 231536 URL: http://svn.freebsd.org/changeset/base/231536 Log: Attempt to implement who -a. According to POSIX, -a is equal to -bdlprtTu. It seems this is not true in practice, as -b normally restricts the output to BOOT_TIME

svn commit: r231537 - head/usr.bin/who

2012-02-11 Thread Ed Schouten
Author: ed Date: Sat Feb 11 21:50:44 2012 New Revision: 231537 URL: http://svn.freebsd.org/changeset/base/231537 Log: And of course, I forgot to add -a to the usage. Modified: head/usr.bin/who/who.c Modified: head/usr.bin/who/who.c

Re: svn commit: r231534 - in head: etc/rc.d sbin/init

2012-02-11 Thread Ed Schouten
to ensure user services such as xdm, # inetd, cron and kerberos are started after everything else, in case %%% -- Ed Schouten e...@80386.nl WWW: http://80386.nl/ pgpQltUZ39mPm.pgp Description: PGP signature

svn commit: r231549 - head/etc/rc.d

2012-02-11 Thread Ed Schouten
Author: ed Date: Sun Feb 12 07:45:48 2012 New Revision: 231549 URL: http://svn.freebsd.org/changeset/base/231549 Log: Avoid using BEFORE in the utx rc script. Requested by: dougb Modified: head/etc/rc.d/LOGIN head/etc/rc.d/utx Modified: head/etc/rc.d/LOGIN

svn commit: r231376 - head/share/man/man9

2012-02-10 Thread Ed Schouten
Author: ed Date: Fri Feb 10 11:20:13 2012 New Revision: 231376 URL: http://svn.freebsd.org/changeset/base/231376 Log: Remove outdated piece of information. devtoname() always returns a pathname to the device. It will never return a #major/minor string. MFC after:2 weeks

svn commit: r231378 - in head/sys: compat/linux dev/iscsi/initiator dev/sound/pcm dev/usb dev/wtap netgraph security/mac_biba security/mac_lomac security/mac_mls vm

2012-02-10 Thread Ed Schouten
Author: ed Date: Fri Feb 10 12:35:57 2012 New Revision: 231378 URL: http://svn.freebsd.org/changeset/base/231378 Log: Remove direct access to si_name. Code should just use the devtoname() function to obtain the name of a character device. Also add const keywords to pieces of code that

svn commit: r231379 - in head/sys: fs/devfs kern sys

2012-02-10 Thread Ed Schouten
Author: ed Date: Fri Feb 10 12:40:50 2012 New Revision: 231379 URL: http://svn.freebsd.org/changeset/base/231379 Log: Merge si_name and __si_namebuf. The si_name pointer always points to the __si_namebuf member inside the same object. Remove it and rename __si_namebuf to si_name.

svn commit: r231383 - in head: lib/libutil usr.sbin/vipw

2012-02-10 Thread Ed Schouten
Author: ed Date: Fri Feb 10 13:40:32 2012 New Revision: 231383 URL: http://svn.freebsd.org/changeset/base/231383 Log: Detect file modification properly by using tv_nsec. POSIX 2008 standardizes st_mtim, meaning we can simply use nanosecond precision to detect file modification. MFC

svn commit: r231384 - head/lib/libprocstat

2012-02-10 Thread Ed Schouten
Author: ed Date: Fri Feb 10 13:47:40 2012 New Revision: 231384 URL: http://svn.freebsd.org/changeset/base/231384 Log: Unbreak build. libprocstat still uses __si_namebuf. Modified: head/lib/libprocstat/common_kvm.c Modified: head/lib/libprocstat/common_kvm.c

svn commit: r231385 - head/usr.sbin/vipw

2012-02-10 Thread Ed Schouten
Author: ed Date: Fri Feb 10 13:51:02 2012 New Revision: 231385 URL: http://svn.freebsd.org/changeset/base/231385 Log: Correct date. It seems to be 2012. Modified: head/usr.sbin/vipw/vipw.8 Modified: head/usr.sbin/vipw/vipw.8

svn commit: r231386 - head/sys/kern

2012-02-10 Thread Ed Schouten
Author: ed Date: Fri Feb 10 14:55:47 2012 New Revision: 231386 URL: http://svn.freebsd.org/changeset/base/231386 Log: Remove unneeded newline. It fits in 80 columns now. Pointed out by: jh Modified: head/sys/kern/kern_conf.c Modified: head/sys/kern/kern_conf.c

svn commit: r231279 - stable/9/usr.bin/systat

2012-02-09 Thread Ed Schouten
Author: ed Date: Thu Feb 9 15:21:54 2012 New Revision: 231279 URL: http://svn.freebsd.org/changeset/base/231279 Log: MFC r226396: Fix whitespace inconsistencies in systat(1). According to md5(1), the resulting binary is the same. Modified: stable/9/usr.bin/systat/cmds.c

svn commit: r231280 - stable/9/usr.bin/systat

2012-02-09 Thread Ed Schouten
Author: ed Date: Thu Feb 9 15:23:39 2012 New Revision: 231280 URL: http://svn.freebsd.org/changeset/base/231280 Log: MFC r226424: Use integer to store the result of getch(). We need to use an integer to make the comparison against ERR work. Modified:

svn commit: r231281 - stable/9/usr.sbin/bsnmpd/tools/libbsnmptools

2012-02-09 Thread Ed Schouten
Author: ed Date: Thu Feb 9 15:26:47 2012 New Revision: 231281 URL: http://svn.freebsd.org/changeset/base/231281 Log: MFC r229385 Fix subtle typo: compare against idx -- not index. In this context, index refers to the index(3) function. In this case it doesn't really harm, as

svn commit: r231282 - stable/9/include

2012-02-09 Thread Ed Schouten
Author: ed Date: Thu Feb 9 15:28:28 2012 New Revision: 231282 URL: http://svn.freebsd.org/changeset/base/231282 Log: MFC r229590 manually: It turns out our GCC has quite an interesting bug: typeof(1.0fi) != float _Complex typeof((float _Complex)1.0fi) != float

svn commit: r231289 - in stable/9/contrib/gcclibs/libcpp: . include

2012-02-09 Thread Ed Schouten
Author: ed Date: Thu Feb 9 16:55:20 2012 New Revision: 231289 URL: http://svn.freebsd.org/changeset/base/231289 Log: MFC r228474: Add support for __COUNTER__. __COUNTER__ allows one to obtain incrementing (read: unique) numbers from the C preprocesor. This is useful when

svn commit: r231294 - stable/9/share/man/man9

2012-02-09 Thread Ed Schouten
Author: ed Date: Thu Feb 9 16:58:06 2012 New Revision: 231294 URL: http://svn.freebsd.org/changeset/base/231294 Log: MFC r230330: Remove remnants of dev_t. These functions take a `struct cdev *' -- not a dev_t. Inside the kernel, dev_t has the same use as in userspace, namely

svn commit: r231071 - head/tools/tools/fixwhite

2012-02-06 Thread Ed Schouten
(r231071) @@ -0,0 +1,46 @@ +.\ Copyright (c) 2012 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

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

2012-02-06 Thread Ed Schouten
Author: ed Date: Mon Feb 6 18:15:46 2012 New Revision: 231095 URL: http://svn.freebsd.org/changeset/base/231095 Log: Fix whitespace inconsistencies in TTY code. Modified: head/sys/kern/tty.c head/sys/kern/tty_info.c head/sys/kern/tty_ttydisc.c head/sys/sys/ttycom.h

svn commit: r231098 - head/tools/tools/fixwhite

2012-02-06 Thread Ed Schouten
from ever line of text. Multiple successive empty lines are merged together. +If the whitespace at the beginning of a sentence is exactly a multiple +of eight spaces, the whitespace is replaced by tabs. Also, spaces preceeding tabs will be merged into the tab character. .Sh AUTHORS .An Ed

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

2012-02-05 Thread Ed Schouten
Author: ed Date: Sun Feb 5 09:17:49 2012 New Revision: 231011 URL: http://svn.freebsd.org/changeset/base/231011 Log: Whitespace fixes. - Remove redundant empty lines. - Replace ^L by \014. This allows you to safely cat/grep/etc this file without causing confusion. Modified:

svn commit: r230951 - stable/9

2012-02-03 Thread Ed Schouten
Author: ed Date: Fri Feb 3 17:36:32 2012 New Revision: 230951 URL: http://svn.freebsd.org/changeset/base/230951 Log: MFC r226785: Attempt to fix build logic for gensnmptree. There are two problems with the existing logic. It builds gensnmptree on 700018, even if WITHOUT_BSNMP

svn commit: r230952 - stable/9/lib/libpam/modules/pam_lastlog

2012-02-03 Thread Ed Schouten
Author: ed Date: Fri Feb 3 17:50:39 2012 New Revision: 230952 URL: http://svn.freebsd.org/changeset/base/230952 Log: MFC r227314: Ensure pam_lastlog removes the /dev/ component of the TTY name. Some consumers of PAM remove the /dev/ component (i.e. login), while others don't

svn commit: r230953 - in stable/9/sys: net netinet

2012-02-03 Thread Ed Schouten
Author: ed Date: Fri Feb 3 18:48:40 2012 New Revision: 230953 URL: http://svn.freebsd.org/changeset/base/230953 Log: MFC r226610: Add missing #includes. According to POSIX, these two header files should be able to be included by themselves, not depending on other headers. The

Re: svn commit: r230482 - head/release

2012-01-23 Thread Ed Schouten
Hi Nathan, * Nathan Whitehorn nwhiteh...@freebsd.org, 20120123 16:44: TERM=xterm This code is also used on pc98, right? I think on pc98 we still need to use TERM=cons25w, to support Japanese character sets and keyboard input. -- Ed Schouten e...@80386.nl WWW: http://80386.nl

<    2   3   4   5   6   7   8   9   10   11   >