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

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

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

2012-01-19 Thread Ed Schouten
Author: ed Date: Thu Jan 19 09:51:07 2012 New Revision: 230330 URL: http://svn.freebsd.org/changeset/base/230330 Log: 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 to store a device

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

2012-01-19 Thread Ed Schouten
stdatomic.h on all supported architectures. The C11 interface allows any operation to be combined with any type of barrier. Maybe we should simply migrate this code to use stdatomic.h then? Greetings, -- Ed Schouten e...@80386.nl WWW: http://80386.nl/ pgpDC3F3wL7nx.pgp Description: PGP signature

Re: svn commit: r230025 - head/contrib/compiler-rt/lib/sparc64

2012-01-17 Thread Ed Schouten
to on sparc64), see machine/asm.h. However, given that these functions only seem to obtain new register window for debugging purposes you probably alternatively could just remove the saves and the corresponding restores completely. Any comments on the attached patch? Thanks, -- Ed Schouten e...@80386.nl

svn commit: r230277 - head/sys/sys

2012-01-17 Thread Ed Schouten
Author: ed Date: Tue Jan 17 20:21:31 2012 New Revision: 230277 URL: http://svn.freebsd.org/changeset/base/230277 Log: Don't expose __generic() when not using C++. According to the GCC documentation, the constructs used to implement tgmath.h are only available in C mode. They only cause

svn commit: r230278 - head/include

2012-01-17 Thread Ed Schouten
Author: ed Date: Tue Jan 17 20:22:10 2012 New Revision: 230278 URL: http://svn.freebsd.org/changeset/base/230278 Log: Only use the static assertion when __generic is available. Reported by: tijl Modified: head/include/complex.h Modified: head/include/complex.h

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

2012-01-17 Thread Ed Schouten
* Ed Schouten e...@freebsd.org, 20120117 21:21: Don't expose __generic() when not using C++. d'oh! I mean the opposite. Don't expose __generic() when using C++. -- Ed Schouten e...@80386.nl WWW: http://80386.nl/ pgpr5swLoYMJB.pgp Description: PGP signature

svn commit: r230281 - in head/libexec/rtld-elf: amd64 i386

2012-01-17 Thread Ed Schouten
Author: ed Date: Tue Jan 17 21:55:20 2012 New Revision: 230281 URL: http://svn.freebsd.org/changeset/base/230281 Log: Remove unneeded dtv variable. It is only assigned and not used at all. The object files stay identical when the variables are removed. Approved by: kib Modified:

svn commit: r230287 - head/bin/ps

2012-01-17 Thread Ed Schouten
Author: ed Date: Tue Jan 17 22:17:10 2012 New Revision: 230287 URL: http://svn.freebsd.org/changeset/base/230287 Log: Remove unused variables. Simply annotate the function parameters with __unused, instead of adding the ve-variables. This makes the code build with GCC 4.7 and -Werror.

svn commit: r230289 - head/sbin/growfs

2012-01-17 Thread Ed Schouten
Author: ed Date: Tue Jan 17 22:19:35 2012 New Revision: 230289 URL: http://svn.freebsd.org/changeset/base/230289 Log: Allow growfs to be built with GCC 4.7 and -Werror. The dp1 variable is only used when FSIRAND is defined. Just place the variable behind #ifdefs entirely. Modified:

svn commit: r230060 - in head: . lib/libc/gen tools/build/options usr.bin usr.bin/wtmpcvt

2012-01-13 Thread Ed Schouten
Author: ed Date: Fri Jan 13 15:40:49 2012 New Revision: 230060 URL: http://svn.freebsd.org/changeset/base/230060 Log: Remove wtmpcvt(1). The wtmpcvt(1) utility converts wtmp files to the new format used by utmpx(3). Now that HEAD has been branched to stable/9 and 9.0 is released, there

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

2012-01-13 Thread Ed Schouten
Author: ed Date: Fri Jan 13 15:43:01 2012 New Revision: 230061 URL: http://svn.freebsd.org/changeset/base/230061 Log: Regenerate src.conf(5). Modified: head/share/man/man5/src.conf.5 Modified: head/share/man/man5/src.conf.5

svn commit: r230062 - head/include

2012-01-13 Thread Ed Schouten
Author: ed Date: Fri Jan 13 16:01:34 2012 New Revision: 230062 URL: http://svn.freebsd.org/changeset/base/230062 Log: Correct mistake in atomic_flag macros. The _explicit versions only have two parameters, namely the object and the order. There is no need to pass the values of the atomic

svn commit: r230025 - head/contrib/compiler-rt/lib/sparc64

2012-01-12 Thread Ed Schouten
Author: ed Date: Thu Jan 12 17:55:22 2012 New Revision: 230025 URL: http://svn.freebsd.org/changeset/base/230025 Log: Add SPARC64 version of div/mod written in assembly. This version is similar to the code shipped with libgcc. It is based on the code from the SPARC64 architecture manual,

svn commit: r229807 - head/include

2012-01-08 Thread Ed Schouten
Author: ed Date: Sun Jan 8 12:03:46 2012 New Revision: 229807 URL: http://svn.freebsd.org/changeset/base/229807 Log: Fix spelling of C11 and sort functions by name. Modified: head/include/stdlib.h Modified: head/include/stdlib.h

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

2012-01-08 Thread Ed Schouten
Author: ed Date: Sun Jan 8 12:04:22 2012 New Revision: 229808 URL: http://svn.freebsd.org/changeset/base/229808 Log: Properly sort functions by name. Modified: head/lib/libc/stdlib/Symbol.map Modified: head/lib/libc/stdlib/Symbol.map

svn commit: r229848 - in head: include lib/libc/stdlib

2012-01-08 Thread Ed Schouten
Author: ed Date: Mon Jan 9 06:36:28 2012 New Revision: 229848 URL: http://svn.freebsd.org/changeset/base/229848 Log: Add aligned_alloc(3). The C11 folks reinvented the wheel by introducing an aligned version of malloc(3) called aligned_alloc(3), instead of posix_memalign(3). Instead

svn commit: r229704 - head/include

2012-01-06 Thread Ed Schouten
Author: ed Date: Fri Jan 6 16:20:17 2012 New Revision: 229704 URL: http://svn.freebsd.org/changeset/base/229704 Log: Add an even faster implementation of tgmath.h for the future. Instead of using an exponential number of cases with respect to the number of arguments, this version only

svn commit: r229716 - head/include

2012-01-06 Thread Ed Schouten
Author: ed Date: Fri Jan 6 19:04:59 2012 New Revision: 229716 URL: http://svn.freebsd.org/changeset/base/229716 Log: Last attempt at tgmath.h: do enable the new code for C11 compilers. I was thinking by myself, if the new code doesn't work with GCC 4.2, why not simply turn it into an

svn commit: r229562 - head/sys/i386/include

2012-01-05 Thread Ed Schouten
Author: ed Date: Thu Jan 5 08:51:06 2012 New Revision: 229562 URL: http://svn.freebsd.org/changeset/base/229562 Log: Also import WEAK_ALIAS() from the MIPS code. Modified: head/sys/i386/include/asm.h Modified: head/sys/i386/include/asm.h

svn commit: r229574 - head/sys/sys

2012-01-05 Thread Ed Schouten
Author: ed Date: Thu Jan 5 10:43:03 2012 New Revision: 229574 URL: http://svn.freebsd.org/changeset/base/229574 Log: Add __generic(), to be able to use a very simple _Generic(). Already introducing this allows us to be forward compatible with C11 compilers. By implementing tgmath.h on

svn commit: r229575 - in head: include share/man/man3

2012-01-05 Thread Ed Schouten
Thu Jan 5 10:46:22 2012(r229575) @@ -2,6 +2,9 @@ * Copyright (c) 2004 Stefan Farfeleder. * All rights reserved. * + * Copyright (c) 2012 Ed Schouten e...@freebsd.org + * All rights reserved. + * * Redistribution and use in source and binary forms, with or without

svn commit: r229590 - head/include

2012-01-05 Thread Ed Schouten
Author: ed Date: Thu Jan 5 12:05:48 2012 New Revision: 229590 URL: http://svn.freebsd.org/changeset/base/229590 Log: Make _Complex_I a proper float _Complex when using GCC 4.2. It turns out our GCC has quite an interesting bug: typeof(1.0fi) != float _Complex

svn commit: r229591 - head/include

2012-01-05 Thread Ed Schouten
Author: ed Date: Thu Jan 5 12:06:49 2012 New Revision: 229591 URL: http://svn.freebsd.org/changeset/base/229591 Log: Remove _Complex_I workaround from tgmath.h. This removes the use of __typeof() from this header, thus making it work with a plain C11 compiler. Modified:

svn commit: r229384 - head/usr.sbin/quotaon

2012-01-03 Thread Ed Schouten
Author: ed Date: Tue Jan 3 11:08:58 2012 New Revision: 229384 URL: http://svn.freebsd.org/changeset/base/229384 Log: Simply use getprogname() to obtain the name of the process. Modified: head/usr.sbin/quotaon/quotaon.c Modified: head/usr.sbin/quotaon/quotaon.c

svn commit: r229385 - head/usr.sbin/bsnmpd/tools/libbsnmptools

2012-01-03 Thread Ed Schouten
Author: ed Date: Tue Jan 3 11:10:15 2012 New Revision: 229385 URL: http://svn.freebsd.org/changeset/base/229385 Log: Fix subtle typo: compare against idx -- not index. In this contest, index refers to the index(3) function. In this case it doesn't really harm, as this function is never

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

2012-01-03 Thread Ed Schouten
Author: ed Date: Tue Jan 3 11:13:07 2012 New Revision: 229386 URL: http://svn.freebsd.org/changeset/base/229386 Log: Remove hand-written version of strcspn(). The code searches for the first occurence of @, : or !. Upon failure, it returns the index of \0. This is exactly what strcspn()

Re: svn commit: r229368 - in head: lib/libc lib/libc/arm/string lib/libc/i386/string lib/libc/mips/string lib/libc/string lib/libstand sys/boot/userboot/libstand

2012-01-03 Thread Ed Schouten
() and rindex() as simple C functions that call into strchr() and strrchr()? -- Ed Schouten e...@80386.nl WWW: http://80386.nl/ pgpMurKu1KaVy.pgp Description: PGP signature

svn commit: r229403 - in head: games/fortune/fortune lib/libc/gen lib/libc/net lib/libcam lib/libstand lib/libutil libexec/mknetid libexec/rlogind sbin/bsdlabel sbin/dump sbin/fsck_ffs sbin/ipfw sb...

2012-01-03 Thread Ed Schouten
Author: ed Date: Tue Jan 3 18:51:58 2012 New Revision: 229403 URL: http://svn.freebsd.org/changeset/base/229403 Log: Replace index() and rindex() calls with strchr() and strrchr(). The index() and rindex() functions were marked LEGACY in the 2001 revision of POSIX and were subsequently

svn commit: r229413 - in head/contrib/compiler-rt: . lib

2012-01-03 Thread Ed Schouten
Author: ed Date: Tue Jan 3 19:41:36 2012 New Revision: 229413 URL: http://svn.freebsd.org/changeset/base/229413 Log: Import compiler-rt r147467. The compiler-rt shipped with FreeBSD is now based on unmodified upstream sources. Modified: head/contrib/compiler-rt/LICENSE.TXT

Re: svn commit: r229430 - in head/sys: conf dev/sound/pci modules/sound/driver/emu10k1

2012-01-03 Thread Ed Schouten
Hi John, * John Baldwin j...@freebsd.org, 20120103 22:15: Is this a common-enough chipset to enable in GENERIC now that it is safe to do so? I would guess so, especially on i386 boxes. -- Ed Schouten e...@80386.nl WWW: http://80386.nl/ pgpuD7CcMV2dh.pgp Description: PGP signature

svn commit: r229272 - in head/sys: ddb dev/ata dev/mxge dev/uart fs/nfs fs/nwfs fs/smbfs gnu/fs/xfs i386/ibcs2 kern libkern netgraph security/mac_lomac

2012-01-02 Thread Ed Schouten
Author: ed Date: Mon Jan 2 12:12:10 2012 New Revision: 229272 URL: http://svn.freebsd.org/changeset/base/229272 Log: Use strchr() and strrchr(). It seems strchr() and strrchr() are used more often than index() and rindex(). Therefore, simply migrate all kernel code to use it. For

svn commit: r229332 - head/include

2012-01-02 Thread Ed Schouten
Author: ed Date: Mon Jan 2 22:58:32 2012 New Revision: 229332 URL: http://svn.freebsd.org/changeset/base/229332 Log: Remove extraneous semicolons. These macros are supposed to be invoked as regular functions, so remove them. Modified: head/include/stdatomic.h Modified:

svn commit: r229366 - in head/sys: conf libkern sys

2012-01-02 Thread Ed Schouten
Author: ed Date: Tue Jan 3 07:05:30 2012 New Revision: 229366 URL: http://svn.freebsd.org/changeset/base/229366 Log: Implement extensions on top of standards instead of the other way around. Now that index() and rindex() have become unused, simply turn them into wrappers around strchr()

svn commit: r229367 - head/sys/i386/include

2012-01-02 Thread Ed Schouten
Author: ed Date: Tue Jan 3 07:06:35 2012 New Revision: 229367 URL: http://svn.freebsd.org/changeset/base/229367 Log: Add support for strong aliasing of symbols in i386 assembly. This macro is a literal copy from the MIPS version of machine/asm.h. Modified: head/sys/i386/include/asm.h

svn commit: r229368 - in head: lib/libc lib/libc/arm/string lib/libc/i386/string lib/libc/mips/string lib/libc/string lib/libstand sys/boot/userboot/libstand

2012-01-02 Thread Ed Schouten
Author: ed Date: Tue Jan 3 07:14:01 2012 New Revision: 229368 URL: http://svn.freebsd.org/changeset/base/229368 Log: Merge index() and strchr() together. As I looked through the C library, I noticed the FreeBSD MIPS port has a hand-written version of index(). This is nice, if it weren't

Re: svn commit: r228955 - head/include

2012-01-01 Thread Ed Schouten
. The issue is already discussed in GCC Bugzilla and there is a patch that fixes the build. Let's just wait to see what happens. -- Ed Schouten e...@80386.nl WWW: http://80386.nl/ pgpboXRFImVs0.pgp Description: PGP signature

svn commit: r229198 - in head: share/man/man9 sys/conf sys/libkern sys/sys

2012-01-01 Thread Ed Schouten
@@ +.\ 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 must retain the above

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

2012-01-01 Thread Ed Schouten
Author: ed Date: Sun Jan 1 20:30:48 2012 New Revision: 229199 URL: http://svn.freebsd.org/changeset/base/229199 Log: Fix typo; return - returns. Modified: head/share/man/man9/memcchr.3 Modified: head/share/man/man9/memcchr.3

svn commit: r229200 - in head/sys: fs/ext2fs ufs/ffs

2012-01-01 Thread Ed Schouten
Author: ed Date: Sun Jan 1 20:47:33 2012 New Revision: 229200 URL: http://svn.freebsd.org/changeset/base/229200 Log: Migrate ufs and ext2fs from skpc() to memcchr(). While there, remove a useless check from the code. memcchr() always returns characters unequal to 0xff in this case, so

svn commit: r229204 - in head/sys: conf libkern sys

2012-01-01 Thread Ed Schouten
Author: ed Date: Sun Jan 1 20:54:44 2012 New Revision: 229204 URL: http://svn.freebsd.org/changeset/base/229204 Log: Remove the now unused skpc() function. It was only used by ufs and ext2 and I have really strong doubts that there are other pieces of code that also use this function.

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

2012-01-01 Thread Ed Schouten
:00 1970 (empty, because file is newly added) +++ head/share/man/man9/memcchr.9 Sun Jan 1 20:59:42 2012 (r229206, copy of r229199, head/share/man/man9/memcchr.3) @@ -0,0 +1,59 @@ +.\ Copyright (c) 2012 Ed Schouten e...@freebsd.org +.\ All rights reserved. +.\ +.\ Redistribution

svn commit: r229135 - in head: contrib/compiler-rt contrib/compiler-rt/lib contrib/compiler-rt/lib/arm contrib/compiler-rt/lib/ppc contrib/compiler-rt/lib/x86_64 lib/libcompiler_rt

2011-12-31 Thread Ed Schouten
Author: ed Date: Sat Dec 31 19:01:48 2011 New Revision: 229135 URL: http://svn.freebsd.org/changeset/base/229135 Log: Upgrade libcompiler_rt to upstream revision 147390. This version of libcompiler_rt adds support for __mulo[sdt]i4(), which computes a multiply and its overflow flag.

Re: svn commit: r228878 - head/include

2011-12-30 Thread Ed Schouten
), but I am curious. I am not aware of this. -- Ed Schouten e...@80386.nl WWW: http://80386.nl/ pgpC2dauwZxru.pgp Description: PGP signature

Re: svn commit: r228955 - head/include

2011-12-29 Thread Ed Schouten
/show_bug.cgi?id=51705 In the future, could you write such bug reports yourself? I am really not that interested in GCC's development process. -- Ed Schouten e...@80386.nl WWW: http://80386.nl/ pgph1SaQdSq96.pgp Description: PGP signature

svn commit: r228955 - head/include

2011-12-29 Thread Ed Schouten
Author: ed Date: Thu Dec 29 14:41:17 2011 New Revision: 228955 URL: http://svn.freebsd.org/changeset/base/228955 Log: Don't define static_assert for C++. Even though _Static_assert() is pretty robust for C code, it cannot work correctly with C++ code. This is due to the fact that C++

Re: svn commit: r228955 - head/include

2011-12-29 Thread Ed Schouten
. -- Ed Schouten e...@80386.nl WWW: http://80386.nl/ pgpoVMqDaK6lw.pgp Description: PGP signature

Re: svn commit: r228953 - in head/tools: regression/pthread/mutex_isowned_np tools/ansify tools/genericize tools/hcomp tools/mtxstat tools/prstats tools/whereintheworld

2011-12-29 Thread Ed Schouten
usr.sbin/pkg_install/updating/pkg_updating.1: line 9, char 1, byte offset 77: invalid UTF-8 code usr.sbin/vidcontrol/decode.c: line 2, char 1, byte offset 24: invalid UTF-8 code usr.sbin/vidcontrol/vidcontrol.c: line 2, char 1, byte offset 29: invalid UTF-8 code -- Ed Schouten e...@80386.nl

svn commit: r228912 - head/share/man/man3

2011-12-27 Thread Ed Schouten
) 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 copyright

svn commit: r228913 - head/share/man/man3

2011-12-27 Thread Ed Schouten
Author: ed Date: Tue Dec 27 13:01:10 2011 New Revision: 228913 URL: http://svn.freebsd.org/changeset/base/228913 Log: Add missing \. While sorting the MLINKS by name, I forgot to re-add it. Modified: head/share/man/man3/Makefile Modified: head/share/man/man3/Makefile

svn commit: r228919 - head/lib/libcompiler_rt

2011-12-27 Thread Ed Schouten
) +++ head/lib/libcompiler_rt/__sync_fetch_and_op_n.h Tue Dec 27 22:13:51 2011(r228919) @@ -0,0 +1,47 @@ +/*- + * 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

svn commit: r228920 - head/share/man/man3

2011-12-27 Thread Ed Schouten
Author: ed Date: Tue Dec 27 22:14:35 2011 New Revision: 228920 URL: http://svn.freebsd.org/changeset/base/228920 Log: Document restriction on 32-bits and 64-bits datatypes. Modified: head/share/man/man3/ATOMIC_VAR_INIT.3 Modified: head/share/man/man3/ATOMIC_VAR_INIT.3

svn commit: r228897 - head/sys/sys

2011-12-26 Thread Ed Schouten
Author: ed Date: Mon Dec 26 10:58:21 2011 New Revision: 228897 URL: http://svn.freebsd.org/changeset/base/228897 Log: The standard is now called C11 -- C12. While there, compare against the proper __STDC_VERSION value. Modified: head/sys/sys/cdefs.h Modified: head/sys/sys/cdefs.h

svn commit: r228900 - head/sys/sys

2011-12-26 Thread Ed Schouten
Author: ed Date: Mon Dec 26 18:49:56 2011 New Revision: 228900 URL: http://svn.freebsd.org/changeset/base/228900 Log: Add cdefs-magic to add optional C11 bits to headers. Modified: head/sys/sys/cdefs.h Modified: head/sys/sys/cdefs.h

svn commit: r228901 - head/include

2011-12-26 Thread Ed Schouten
Author: ed Date: Mon Dec 26 18:55:37 2011 New Revision: 228901 URL: http://svn.freebsd.org/changeset/base/228901 Log: Improve C11 bits in stdlib.h: - Add missing semicolon to quick_exit(), - Remove `func' parameter name from at_quick_exit(), - Fix indentation. - Compare against 2011

svn commit: r228902 - head/include

2011-12-26 Thread Ed Schouten
Author: ed Date: Mon Dec 26 18:57:59 2011 New Revision: 228902 URL: http://svn.freebsd.org/changeset/base/228902 Log: As per C11, add static_assert() to assert.h. Modified: head/include/assert.h Modified: head/include/assert.h

svn commit: r228904 - in head: contrib/groff/tmac lib lib/libstdthreads

2011-12-26 Thread Ed Schouten
21:51:53 2011 (r228904) @@ -0,0 +1,44 @@ +/*- + * 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

svn commit: r228906 - head/include

2011-12-26 Thread Ed Schouten
Author: ed Date: Mon Dec 26 23:33:41 2011 New Revision: 228906 URL: http://svn.freebsd.org/changeset/base/228906 Log: Fix some bugs in stdatomic.h. - Make atomic_init() work for GCC, as assigning to structs doesn't work. - Fix misplaced parenthesis in atomic_is_lock_free() for GCC. -

svn commit: r228878 - head/include

2011-12-25 Thread Ed Schouten
Author: ed Date: Sun Dec 25 20:15:41 2011 New Revision: 228878 URL: http://svn.freebsd.org/changeset/base/228878 Log: Remove unneeded guard. There is no reason why stdbool.h needs an include guard. It is already protected by __bool_true_false_are_defined. Modified:

svn commit: r228879 - head/include

2011-12-25 Thread Ed Schouten
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/include/stdalign.h Sun Dec 25 20:51:40 2011(r228879) @@ -0,0 +1,47 @@ +/*- + * Copyright (c) 2012 Ed Schouten e...@freebsd.org + * All

svn commit: r228880 - head/include

2011-12-25 Thread Ed Schouten
Author: ed Date: Sun Dec 25 20:59:39 2011 New Revision: 228880 URL: http://svn.freebsd.org/changeset/base/228880 Log: Fix field name. The value field in the atomic structure is called __val; not value. Modified: head/include/stdatomic.h Modified: head/include/stdatomic.h

svn commit: r228882 - head/include

2011-12-25 Thread Ed Schouten
Author: ed Date: Sun Dec 25 21:05:35 2011 New Revision: 228882 URL: http://svn.freebsd.org/changeset/base/228882 Log: Make white space in this file a bit more consistent. Remove trailing whitespace and place all macro definitions at the same column. Modified: head/include/stdatomic.h

svn commit: r228883 - head/contrib/groff/tmac

2011-12-25 Thread Ed Schouten
Author: ed Date: Sun Dec 25 22:05:33 2011 New Revision: 228883 URL: http://svn.freebsd.org/changeset/base/228883 Log: Add the C11 standard to groff. This allows us to refer to C11 as -isoC-11. MFC after:2 months Modified: head/contrib/groff/tmac/doc-syms

svn commit: r228782 - head/sys/boot/i386/libi386

2011-12-21 Thread Ed Schouten
Author: ed Date: Wed Dec 21 16:47:01 2011 New Revision: 228782 URL: http://svn.freebsd.org/changeset/base/228782 Log: Make the RTC checking for QEMU even more aggressive. At work, where we use use KVM+QEMU, we notice that pxeboot is pratically impossible because of network timeouts. This

svn commit: r228733 - head/usr.sbin/makefs/ffs

2011-12-20 Thread Ed Schouten
Author: ed Date: Tue Dec 20 12:34:17 2011 New Revision: 228733 URL: http://svn.freebsd.org/changeset/base/228733 Log: Small cleanups to panic() prototype. - Let panic() use _Noreturn and __printflike() instead of GCC-specific attributes. - Remove prototype from ffs_subr.c and let it

svn commit: r228562 - head/sys/sys

2011-12-16 Thread Ed Schouten
Author: ed Date: Fri Dec 16 08:22:23 2011 New Revision: 228562 URL: http://svn.freebsd.org/changeset/base/228562 Log: Process a lot of feedback from bde@ on sys/cdefs.h: - Add __alignof() for non-GCC and GCC 2.95. - Simply implement the C1X keywords on top of the existing __macros. -

svn commit: r228564 - head/sys/sys

2011-12-16 Thread Ed Schouten
Author: ed Date: Fri Dec 16 09:56:22 2011 New Revision: 228564 URL: http://svn.freebsd.org/changeset/base/228564 Log: Fix typo in macro. I copied this macro directly from Bruce's email, as I assumed it was awesome already. Reported by: tijl@ Modified: head/sys/sys/cdefs.h

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

2011-12-15 Thread Ed Schouten
__malloc_like __attribute__((__malloc__)) | #define __pure __attribute__((__pure__)) -- Ed Schouten e...@80386.nl WWW: http://80386.nl/ pgpqRKfxjmZ6B.pgp Description: PGP signature

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

2011-12-15 Thread Ed Schouten
, __COUNTER__) +#define__Static_assert(x, y) ___Static_assert(x, y) +#define___Static_assert(x, y) typedef char __assert ## c[(x) ? 1 : -1] #else -#define_Static_assert(e, s) +#define_Static_assert(x, y)struct __hack #endif #endif %%% -- Ed Schouten e

svn commit: r228495 - head/sys/sys

2011-12-14 Thread Ed Schouten
Author: ed Date: Wed Dec 14 09:09:37 2011 New Revision: 228495 URL: http://svn.freebsd.org/changeset/base/228495 Log: Slightly alter the C1X definitions in in cdefs.h: - Add _Alignas(). Unfortunately this macro is only partially functional. The C1X standard will allow both an integer

svn commit: r228458 - head/sbin/dumpfs

2011-12-13 Thread Ed Schouten
Author: ed Date: Tue Dec 13 09:01:44 2011 New Revision: 228458 URL: http://svn.freebsd.org/changeset/base/228458 Log: Staticify dumpfs. This tool only consists of a single C file, so we can simply mark everything except main() static. This seems to shave off about 8% of the binary

svn commit: r228468 - in head: include sys/dev/uart sys/sys usr.bin/mail

2011-12-13 Thread Ed Schouten
Author: ed Date: Tue Dec 13 13:32:56 2011 New Revision: 228468 URL: http://svn.freebsd.org/changeset/base/228468 Log: Replace __const by const in all non-contributed source code. As C1X is close to being released, there is no need to wrap around a feature that is already part of C90.

svn commit: r228469 - in head/sys: amd64/include arm/include i386/include ia64/include mips/include ofed/include/asm powerpc/include sparc64/include

2011-12-13 Thread Ed Schouten
Author: ed Date: Tue Dec 13 13:38:03 2011 New Revision: 228469 URL: http://svn.freebsd.org/changeset/base/228469 Log: Replace __signed by signed. The signed keyword is an integral part of the C syntax. There's no need to use __signed. Modified: head/sys/amd64/include/_types.h

svn commit: r228471 - in head/sys: boot/arm/at91/libat91 dev/cm dev/de dev/fdc dev/pccard dev/spibus dev/xen/netback pc98/cbus

2011-12-13 Thread Ed Schouten
Author: ed Date: Tue Dec 13 14:06:01 2011 New Revision: 228471 URL: http://svn.freebsd.org/changeset/base/228471 Log: Replace `inline static' by `static inline'. If I interpret the C standard correctly, the storage specifier should be placed before the inline keyword. While at it,

svn commit: r228473 - head/lib/libedit

2011-12-13 Thread Ed Schouten
Author: ed Date: Tue Dec 13 14:53:26 2011 New Revision: 228473 URL: http://svn.freebsd.org/changeset/base/228473 Log: Don't use __P(). The rest of the file doesn't use it either and according to style(9), it should not be used. Modified: head/lib/libedit/histedit.h Modified:

svn commit: r228474 - in head/contrib/gcclibs/libcpp: . include

2011-12-13 Thread Ed Schouten
Author: ed Date: Tue Dec 13 17:34:47 2011 New Revision: 228474 URL: http://svn.freebsd.org/changeset/base/228474 Log: Add support for __COUNTER__. __COUNTER__ allows one to obtain incrementing (read: unique) numbers from the C preprocesor. This is useful when implementing things like a

svn commit: r228477 - head/sys/sys

2011-12-13 Thread Ed Schouten
Author: ed Date: Tue Dec 13 19:37:27 2011 New Revision: 228477 URL: http://svn.freebsd.org/changeset/base/228477 Log: Make support for C1X keywords more complete. - _Alignof(), which returns the aligment of a certain type. - _Static_assert(), which can be used to check compile-time

svn commit: r228478 - head/sys/sys

2011-12-13 Thread Ed Schouten
Author: ed Date: Tue Dec 13 19:39:24 2011 New Revision: 228478 URL: http://svn.freebsd.org/changeset/base/228478 Log: Reimplement CTASSERT() using _Static_assert(). Modified: head/sys/sys/systm.h Modified: head/sys/sys/systm.h

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

2011-12-13 Thread Ed Schouten
* Bjoern A. Zeeb bzeeb-li...@lists.zabbadoz.net, 20111213 21:06: Cool, can we have a second variant with a custom error message? Yes; just use _Static_assert for that! It won't print the custom error message right now, but as soon as compilers implement C1X, it will work for you. -- Ed

svn commit: r228481 - in head: share/examples/scsi_target share/man/man4 sys/cam/scsi

2011-12-13 Thread Ed Schouten
Author: ed Date: Tue Dec 13 21:26:33 2011 New Revision: 228481 URL: http://svn.freebsd.org/changeset/base/228481 Log: Change targ(4) to use cdevpriv, instead of multiple character devices. Also update the manpage and the scsi_target example program accordingly. Discussed on: scsi@

svn commit: r228406 - head/bin/stty

2011-12-11 Thread Ed Schouten
Author: ed Date: Sun Dec 11 09:56:48 2011 New Revision: 228406 URL: http://svn.freebsd.org/changeset/base/228406 Log: Move 3.5 KB from the data segment to the text segment. The `struct modes' are only used by the getter-functions in the same file, so we can safely mark them static and

<    2   3   4   5   6   7   8   9   10   >