svn commit: r250980 - head/lib/libc/iconv

2013-05-25 Thread Ed Schouten
Author: ed Date: Sat May 25 12:11:20 2013 New Revision: 250980 URL: http://svnweb.freebsd.org/changeset/base/250980 Log: Only call free() on something we allocated. If we were already provided a struct _citrus_iconv (e.g. through iconv_open_into()), we should not call free() in case

svn commit: r250981 - head/lib/libc/iconv

2013-05-25 Thread Ed Schouten
Author: ed Date: Sat May 25 12:13:54 2013 New Revision: 250981 URL: http://svnweb.freebsd.org/changeset/base/250981 Log: Make some tiny improvements to iconv_open(). - Remove an unneeded variable. - Fix whitespace bugs. - Fix typoes in comment. - Improve string handling a bit. Don't

Re: svn commit: r250883 - in head: include include/xlocale lib/libc/locale sys/sys tools/regression/lib/libc/locale

2013-05-25 Thread Ed Schouten
Hello all, [ +gabor ] 2013/5/22 Ed Schouten e...@80386.nl: Oh, the horror! I thought on FreeBSD, we used the LC_CTYPE files to do a mapping to ISO 10646. Unfortunately, it seems to be the case that these files are only used to do mappings to uppercase/lowercase/runetype. Bummer. So I think

svn commit: r250984 - in head/usr.bin: mkcsmapper mkesdb

2013-05-25 Thread Ed Schouten
Author: ed Date: Sat May 25 15:36:15 2013 New Revision: 250984 URL: http://svnweb.freebsd.org/changeset/base/250984 Log: Prevent shadowing. The name line_number seems to be used as a function parameter name for one of the Lex functions. Change the name to linenumber. Modified:

svn commit: r250985 - in head: include sys/sys

2013-05-25 Thread Ed Schouten
Author: ed Date: Sat May 25 16:58:12 2013 New Revision: 250985 URL: http://svnweb.freebsd.org/changeset/base/250985 Log: Fix uchar.h in for C++11. It turns out that in C++11, char16_t and char32_t are built-in types; language keywords. Just fix this by putting traditional _*_T_DECLARED

svn commit: r250989 - head/tools/regression/lib/libc/locale

2013-05-25 Thread Ed Schouten
Author: ed Date: Sat May 25 18:04:24 2013 New Revision: 250989 URL: http://svnweb.freebsd.org/changeset/base/250989 Log: Add missing #includes, to keep Clang silent. Modified: head/tools/regression/lib/libc/locale/test-btowc.c head/tools/regression/lib/libc/locale/test-iswctype.c

svn commit: r250990 - head/include

2013-05-25 Thread Ed Schouten
Author: ed Date: Sat May 25 18:55:55 2013 New Revision: 250990 URL: http://svnweb.freebsd.org/changeset/base/250990 Log: Add C11 macros CMPLX(), CMPLXF() and CMPLXL(). Clang allows us to initialize complex numbers using an array initializer, casted to a complex type. GCC has a builtin

svn commit: r250938 - in head: lib/libc/iconv usr.bin/iconv usr.bin/mkcsmapper usr.bin/mkesdb

2013-05-23 Thread Ed Schouten
Author: ed Date: Thu May 23 18:07:01 2013 New Revision: 250938 URL: http://svnweb.freebsd.org/changeset/base/250938 Log: Let iconv build on -HEAD properly. - Add NO_WMISSING_VARIABLE_DECLARATIONS where we use Yacc/Lex. - Add variable declarations where possible. - Add missing static

Re: svn commit: r250883 - in head: include include/xlocale lib/libc/locale sys/sys tools/regression/lib/libc/locale

2013-05-22 Thread Ed Schouten
your setup? (P.S.: In the mean time I'm looking for a way to elegantly solve the character set issues. More on that later.) Thanks, -- Ed Schouten e...@80386.nl ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src

svn commit: r250919 - in head/share/i18n: csmapper esdb

2013-05-22 Thread Ed Schouten
Author: ed Date: Wed May 22 22:34:48 2013 New Revision: 250919 URL: http://svnweb.freebsd.org/changeset/base/250919 Log: Don't depend on the touch binary being present. We can simply create an empty file by doing a no-op and redirecting stdout. Modified:

svn commit: r250883 - in head: include include/xlocale lib/libc/locale sys/sys tools/regression/lib/libc/locale

2013-05-21 Thread Ed Schouten
== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/include/uchar.hTue May 21 19:59:37 2013(r250883) @@ -0,0 +1,60 @@ +/*- + * Copyright (c) 2013 Ed Schouten e...@freebsd.org + * All

svn commit: r250887 - in head: include include/arpa sys/net

2013-05-21 Thread Ed Schouten
Author: ed Date: Tue May 21 21:20:10 2013 New Revision: 250887 URL: http://svnweb.freebsd.org/changeset/base/250887 Log: Allow certain headers to be included more easily. Spotted by: http://hacks.owlfolio.org/header-survey/ Modified: head/include/arpa/tftp.h head/include/fts.h

svn commit: r250888 - in head/lib/libc: gen net

2013-05-21 Thread Ed Schouten
Author: ed Date: Tue May 21 21:39:18 2013 New Revision: 250888 URL: http://svnweb.freebsd.org/changeset/base/250888 Log: Update manpages for r250887. Remove the lists of unneeded header files. Requested by: eadler Modified: head/lib/libc/gen/fts.3 head/lib/libc/net/getifaddrs.3

Re: svn commit: r250887 - in head: include include/arpa sys/net

2013-05-21 Thread Ed Schouten
2013/5/21 Eitan Adler ead...@freebsd.org: Do the man pages need to be updated as well? Sure. I've updated the manpages for the functions listed in these header files. -- Ed Schouten e...@80386.nl ___ svn-src-head@freebsd.org mailing list http

svn commit: r250889 - in head: include/protocols sys/sys

2013-05-21 Thread Ed Schouten
Author: ed Date: Tue May 21 21:50:11 2013 New Revision: 250889 URL: http://svnweb.freebsd.org/changeset/base/250889 Log: Add proper prerequisites for even two more headers. Spotted by: http://hacks.owlfolio.org/header-survey/ Modified: head/include/protocols/rwhod.h

Re: svn commit: r250883 - in head: include include/xlocale lib/libc/locale sys/sys tools/regression/lib/libc/locale

2013-05-21 Thread Ed Schouten
are only used to do mappings to uppercase/lowercase/runetype. Bummer. I'll see what I can do to fix this. I'll likely implement something like you suggested, that we return EILSEQ if the locale is not ASCII, ISO8859-1 or UTF-8. -- Ed Schouten e...@80386.nl

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

2013-05-20 Thread Ed Schouten
-TLS). In my opinion we should not add __[a-z] definitions for things that are part of C11. Doing this only makes our code less easily exportable to other systems. -- Ed Schouten e...@80386.nl ___ svn-src-head@freebsd.org mailing list http

svn commit: r250806 - head/sys/sys

2013-05-19 Thread Ed Schouten
Author: ed Date: Sun May 19 07:44:01 2013 New Revision: 250806 URL: http://svnweb.freebsd.org/changeset/base/250806 Log: Remove lint case for _Thread_local. I added this block, knowing that lint does not support _Thread_local. When linting, we could argue that we don't care about TLS

Re: svn commit: r250700 - in head/sys: conf net netinet6 sys

2013-05-16 Thread Ed Schouten
panics. Copied by hand: panic: No FIB on non header mbuf .. db bt kassert_panic() rt_newaddrmsg_fib() rtinit1() in_scrubprefix() in_control() ifioctl() kern_ioctl() sys_ioctl() amd64_syscall() Xfast_syscall() -- Ed Schouten e...@80386.nl ___ svn-src-head

Re: svn commit: r250700 - in head/sys: conf net netinet6 sys

2013-05-16 Thread Ed Schouten
2013/5/16 Julian Elischer jul...@freebsd.org: see correcting commit Thanks for fixing it so quickly! -- Ed Schouten e...@80386.nl ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any

svn commit: r250623 - head/sys/sys

2013-05-13 Thread Ed Schouten
Author: ed Date: Mon May 13 21:46:07 2013 New Revision: 250623 URL: http://svnweb.freebsd.org/changeset/base/250623 Log: Rework the way C11 keywords are defined. Instead of only checking the __STDC_VERSION__, we can also use Clang's __has_extension() to check for features specifically.

svn commit: r250624 - in head/sys: amd64/amd64 i386/i386

2013-05-13 Thread Ed Schouten
Author: ed Date: Mon May 13 21:47:17 2013 New Revision: 250624 URL: http://svnweb.freebsd.org/changeset/base/250624 Log: Improve readability of static assertions for OFFSET_* macros. Instead of doing all sorts of weird casting of constants to pointer-pointers, simply use the standard C

Re: svn commit: r250565 - head/etc

2013-05-12 Thread Ed Schouten
reverted without bringing any hard data to the table. -- Ed Schouten e...@80386.nl ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org

Re: svn commit: r250037 - head/bin/hostname

2013-04-29 Thread Ed Schouten
over our FreeBSD-specific solutions. If the only objection is the spelling of these keywords (underscores, uppercase, etc), be sure to: #include stdalign.h /* For alignas/alignof. */ #include stdnoreturn.h /* For noreturn. */ #include threads.h /* For thread_local. */ -- Ed Schouten e...@80386.nl

svn commit: r249995 - head/include

2013-04-27 Thread Ed Schouten
Author: ed Date: Sat Apr 27 21:18:34 2013 New Revision: 249995 URL: http://svnweb.freebsd.org/changeset/base/249995 Log: Enable improved tgmath.h for Clang even when not using C11. By using __has_extension(c_generic_selections), we can explicitly test whether we're dealing with a version

svn commit: r249968 - head/lib/libcompiler_rt

2013-04-26 Thread Ed Schouten
Author: ed Date: Sat Apr 27 04:56:02 2013 New Revision: 249968 URL: http://svnweb.freebsd.org/changeset/base/249968 Log: Unbreak stdatomic.h on ARM + Clang. Clang only supports atomic operations for ARMv6. For non-ARMv6, we still need to emit these functions. Clang's prototype for

svn commit: r249969 - head/sbin/hastd

2013-04-26 Thread Ed Schouten
Author: ed Date: Sat Apr 27 05:01:29 2013 New Revision: 249969 URL: http://svnweb.freebsd.org/changeset/base/249969 Log: Use C11 stdatomic.h instead of our non-standard machine/atomic.h. Reviewed by: pjd Modified: head/sbin/hastd/primary.c head/sbin/hastd/refcnt.h Modified:

svn commit: r249970 - head/sbin/hastd

2013-04-26 Thread Ed Schouten
Author: ed Date: Sat Apr 27 05:06:25 2013 New Revision: 249970 URL: http://svnweb.freebsd.org/changeset/base/249970 Log: Partially revert my last change. I forgot that I still had a locally applied patch to my copy of Clang that needs to be pushed in before we should use C11 atomics.

svn commit: r249971 - in head/secure: . lib/libcrypto

2013-04-26 Thread Ed Schouten
Author: ed Date: Sat Apr 27 05:44:39 2013 New Revision: 249971 URL: http://svnweb.freebsd.org/changeset/base/249971 Log: Remove references to MK_IDEA. As of r249959, we want to build with IDEA support enabled unconditionally. As this change removed the MK_IDEA flag, update these

svn commit: r249743 - head/sbin/newfs_nandfs

2013-04-21 Thread Ed Schouten
Author: ed Date: Sun Apr 21 22:36:14 2013 New Revision: 249743 URL: http://svnweb.freebsd.org/changeset/base/249743 Log: Unbreak the build of newfs_nandfs. Mark global variables static. While there, make some small style(9) cleanups and remove a variable that is unused. Modified:

svn commit: r249744 - head/usr.sbin/nandsim

2013-04-21 Thread Ed Schouten
Author: ed Date: Sun Apr 21 22:47:24 2013 New Revision: 249744 URL: http://svnweb.freebsd.org/changeset/base/249744 Log: Add missing static keyword, to make the code build with WARNS=6. Modified: head/usr.sbin/nandsim/nandsim_cfgparse.c Modified: head/usr.sbin/nandsim/nandsim_cfgparse.c

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

2013-04-20 Thread Ed Schouten
Author: ed Date: Sat Apr 20 14:44:28 2013 New Revision: 249702 URL: http://svnweb.freebsd.org/changeset/base/249702 Log: Enable libcompiler-rt on MIPS. Originally we disabled libcompiler-rt on MIPS and SPARC64, because of an issue where __clzdi2 and __ctzdi2 would cause endless

svn commit: r249656 - head/cddl/contrib/opensolaris/tools/ctf/cvt

2013-04-19 Thread Ed Schouten
Author: ed Date: Fri Apr 19 19:38:39 2013 New Revision: 249656 URL: http://svnweb.freebsd.org/changeset/base/249656 Log: Fix -Wmissing-variable-declarations compiler warnings. References: https://www.illumos.org/issues/3700 Modified: head/cddl/contrib/opensolaris/tools/ctf/cvt/ctf.c

svn commit: r249657 - in head: bin/expr lib/csu sbin/gbde sbin/geom/class sbin/hastctl sbin/hastd sbin/md5 share/mk usr.bin/ar usr.bin/bc usr.bin/bzip2recover usr.bin/find usr.bin/indent usr.bin/m4...

2013-04-19 Thread Ed Schouten
Author: ed Date: Fri Apr 19 19:45:00 2013 New Revision: 249657 URL: http://svnweb.freebsd.org/changeset/base/249657 Log: Add the Clang specific -Wmissing-variable-declarations to WARNS=6. This compiler flag enforces that that people either mark variables static or use an external

svn commit: r249293 - in head: contrib/mtree usr.sbin/nmtree

2013-04-09 Thread Ed Schouten
Author: ed Date: Tue Apr 9 06:50:11 2013 New Revision: 249293 URL: http://svnweb.freebsd.org/changeset/base/249293 Log: Import a new version of NetBSD's mtree. This version of mtree implements a new flag (-O) that can be used to restrict the tool to certain pathnames. Also, it fixes a

svn commit: r249311 - in head: include/protocols sys/sys

2013-04-09 Thread Ed Schouten
Author: ed Date: Tue Apr 9 16:16:34 2013 New Revision: 249311 URL: http://svnweb.freebsd.org/changeset/base/249311 Log: Add static/const keywords to the arrays. This theoretically allows a compiler to optimize (parts of) the array away if unused. While there, make the array size

svn commit: r249244 - head/sbin/camcontrol

2013-04-08 Thread Ed Schouten
Author: ed Date: Mon Apr 8 08:03:42 2013 New Revision: 249244 URL: http://svnweb.freebsd.org/changeset/base/249244 Log: Prevent the creation of an unused variable. We're only interested in the enumeration fields; we don't want to create a variable to store them. MFC after:1

svn commit: r249245 - head/usr.sbin/watchdogd

2013-04-08 Thread Ed Schouten
Author: ed Date: Mon Apr 8 08:05:15 2013 New Revision: 249245 URL: http://svnweb.freebsd.org/changeset/base/249245 Log: Mark the act_tbl static/const. This table is only used within this source file and is only accessed read-only. MFC after:1 week Modified:

Re: svn commit: r243228 - head/etc

2012-11-18 Thread Ed Schouten
that your version is nicer, as our behaviour of cp with the trailing slash contradicts POSIX. Thanks, -- Ed Schouten e...@80386.nl ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any

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

2012-11-17 Thread Ed Schouten
Author: ed Date: Sat Nov 17 16:47:05 2012 New Revision: 243183 URL: http://svnweb.freebsd.org/changeset/base/243183 Log: Fix whitespace. MFC after:1 week Modified: head/usr.bin/w/extern.h head/usr.bin/w/proc_compare.c Modified: head/usr.bin/w/extern.h

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-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn

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-head@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-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-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-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn

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

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

2012-09-02 Thread Ed Schouten
, similar to, say, fdrop(9). Thanks for fixing this! -- Ed Schouten e...@80386.nl ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org

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: r239974 - head/sys/sys

2012-09-01 Thread Ed Schouten
Author: ed Date: Sat Sep 1 08:45:58 2012 New Revision: 239974 URL: http://svn.freebsd.org/changeset/base/239974 Log: While there, remove an unneeded blank line. MFC after:1 month Modified: head/sys/sys/time.h Modified: head/sys/sys/time.h

svn commit: r239986 - head/usr.sbin/lmcconfig

2012-09-01 Thread Ed Schouten
Author: ed Date: Sat Sep 1 10:48:38 2012 New Revision: 239986 URL: http://svn.freebsd.org/changeset/base/239986 Log: Remove unneeded struct timezone. We're only interested in a timestamp -- not the timezone. Modified: head/usr.sbin/lmcconfig/lmcconfig.c Modified:

svn commit: r239988 - head/usr.sbin/lmcconfig

2012-09-01 Thread Ed Schouten
Author: ed Date: Sat Sep 1 10:56:15 2012 New Revision: 239988 URL: http://svn.freebsd.org/changeset/base/239988 Log: Rework time handling. After I made the previous commit, I noticed the code does some things it shouldn't. It casts a struct timeval to a time_t, assuming tv_sec is the

svn commit: r239991 - in head: bin/date bin/dd lib/libc/rpc libexec/rbootd libexec/rpc.rstatd release/picobsd/tinyware/login sbin/adjkerntz usr.bin/lock usr.bin/mail usr.bin/systat usr.bin/time usr...

2012-09-01 Thread Ed Schouten
Author: ed Date: Sat Sep 1 14:45:15 2012 New Revision: 239991 URL: http://svn.freebsd.org/changeset/base/239991 Log: Rework all non-contributed files that use `struct timezone'. This structure is not part of POSIX. According to POSIX, gettimeofday() has the following prototype:

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: r239954 - head/usr.sbin/ac

2012-08-31 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

svn commit: r239960 - head/include

2012-08-31 Thread Ed Schouten
Author: ed Date: Fri Aug 31 22:22:14 2012 New Revision: 239960 URL: http://svn.freebsd.org/changeset/base/239960 Log: Properly enable Clang-style atomics when available. In addition to testing against cxx_atomic, we must check c_atomic. The former is only set when building C++ code. Also

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

2012-08-31 Thread Ed Schouten
Author: ed Date: Fri Aug 31 22:37:08 2012 New Revision: 239961 URL: http://svn.freebsd.org/changeset/base/239961 Log: Also relicense the ac(8) man page. MFC after:1 month Discussed with: Simon Gerraty and Chris Demetriou Modified: head/usr.sbin/ac/ac.8 Modified:

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: r239786 - head/sys/cddl/contrib/opensolaris/uts/common/dtrace

2012-08-28 Thread Ed Schouten
Author: ed Date: Tue Aug 28 18:33:12 2012 New Revision: 239786 URL: http://svn.freebsd.org/changeset/base/239786 Log: Use a proper destructor function. When calling a revoke(2) on a dtrace device, dtrace_close() could be called, even if threads are still stuck in the device. Defer the

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

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

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
Author: ed Date: Wed Mar 21 08:38:42 2012 New Revision: 233271 URL: http://svn.freebsd.org/changeset/base/233271 Log: Remove pty(4) from our kernel configurations. As of FreeBSD 8, this driver should not be used. Applications that use posix_openpt(2) and openpty(3) use the pts(4) that is

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

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/ pgpG4wj7wUTnj.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/ pgpFLerv0Ihwi.pgp Description: PGP

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