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
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
)
==
--- 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
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
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
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
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
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
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
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
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.
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
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
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
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
(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
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
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
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:
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
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
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
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
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
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
* 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
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:
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.
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:
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
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
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
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,
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
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
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
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
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
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
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
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
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
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:
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
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
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()
() 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
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
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
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
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
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:
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()
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
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
. 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
@@
+.\ 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
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
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
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.
: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
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.
), but I am curious.
I am not aware of this.
--
Ed Schouten e...@80386.nl
WWW: http://80386.nl/
pgpC2dauwZxru.pgp
Description: PGP signature
/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
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++
.
--
Ed Schouten e...@80386.nl
WWW: http://80386.nl/
pgpoVMqDaK6lw.pgp
Description: PGP signature
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
) 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
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
)
+++ 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
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
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
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
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
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
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
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.
-
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:
==
--- /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
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
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
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
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
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
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.
-
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
__malloc_like __attribute__((__malloc__))
| #define __pure __attribute__((__pure__))
--
Ed Schouten e...@80386.nl
WWW: http://80386.nl/
pgpqRKfxjmZ6B.pgp
Description: PGP signature
, __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
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
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
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.
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
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,
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:
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
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
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
* 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
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@
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
601 - 700 of 987 matches
Mail list logo