svn commit: r285323 - in head/sys: compat/cloudabi kern sys

2015-07-09 Thread Ed Schouten
Author: ed Date: Thu Jul 9 16:07:01 2015 New Revision: 285323 URL: https://svnweb.freebsd.org/changeset/base/285323 Log: Add implementations for some of the CloudABI file descriptor system calls. All of the CloudABI system calls that operate on file descriptors of an arbitrary type are

Re: svn commit: r285307 - in head/sys: compat/cloudabi compat/cloudabi64 conf contrib/cloudabi kern

2015-07-09 Thread Ed Schouten
COMPAT_CLOUDABI64 to your kernel configuration file explicitly, it won't get built. -- Ed Schouten e...@nuxi.nl Nuxi, 's-Hertogenbosch, the Netherlands KvK/VAT number: 62051717 ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman

svn commit: r285307 - in head/sys: compat/cloudabi compat/cloudabi64 conf contrib/cloudabi kern

2015-07-09 Thread Ed Schouten
Author: ed Date: Thu Jul 9 07:20:15 2015 New Revision: 285307 URL: https://svnweb.freebsd.org/changeset/base/285307 Log: Import the CloudABI datatypes and create a system call table. CloudABI is a pure capability-based runtime environment for UNIX. It works similar to Capsicum, except

svn commit: r285308 - head/sys/compat/cloudabi64

2015-07-09 Thread Ed Schouten
Author: ed Date: Thu Jul 9 07:21:33 2015 New Revision: 285308 URL: https://svnweb.freebsd.org/changeset/base/285308 Log: Generate CloudABI system call table with proper $FreeBSD$ tags. Added: head/sys/compat/cloudabi64/cloudabi64_proto.h (contents, props changed)

svn commit: r285309 - head/sys/sys

2015-07-09 Thread Ed Schouten
Author: ed Date: Thu Jul 9 07:31:40 2015 New Revision: 285309 URL: https://svnweb.freebsd.org/changeset/base/285309 Log: Add forward declaration of struct thread. This structure is used in some of the functions in this header, but we don't depend on any header that pulls it i.

svn commit: r285312 - head/sys/kern

2015-07-09 Thread Ed Schouten
Author: ed Date: Thu Jul 9 12:04:45 2015 New Revision: 285312 URL: https://svnweb.freebsd.org/changeset/base/285312 Log: Don't clobber td-td_retval[0] in proc_reap(). While writing tests for CloudABI, I noticed that close() on process descriptors returns the process ID of the child

Re: svn commit: r284927 - head/sys/ufs/ffs

2015-06-29 Thread Ed Schouten
2015-06-29 15:06 GMT+02:00 Konstantin Belousov k...@freebsd.org: Simplify code, no need to test the flag before clearing it. Thanks! :-) -- Ed Schouten e...@nuxi.nl Nuxi, 's-Hertogenbosch, the Netherlands KvK/VAT number: 62051717 ___ svn-src-head

Re: svn commit: r284887 - in head/sys: kern sys ufs/ffs

2015-06-29 Thread Ed Schouten
) + bp-b_vflags = ~BV_BKGRDERR; BO_UNLOCK(bp-b_bufobj); /* This if-statement could be removed, right? The bit could just be cleared unconditionally. Best regards, -- Ed Schouten e...@nuxi.nl Nuxi, 's-Hertogenbosch, the Netherlands KvK/VAT number: 62051717

Re: svn commit: r284807 - in head/lib/libc/aarch64: . gen

2015-06-25 Thread Ed Schouten
to figure out what actually uses this? If it's just Python and a small number of other ports, maybe it would be worth porting these over? -- Ed Schouten e...@nuxi.nl Nuxi, 's-Hertogenbosch, the Netherlands KvK/VAT number: 62051717 ___ svn-src-head

Re: svn commit: r284807 - in head/lib/libc/aarch64: . gen

2015-06-25 Thread Ed Schouten
[ +das@ ] 2015-06-25 18:03 GMT+02:00 Ed Schouten e...@nuxi.nl: Considering that this interface is essentially deprecated (they were replaced by C99 fenv.h), would it make sense to figure out what actually uses this? If it's just Python and a small number of other ports, maybe it would

svn commit: r279698 - head/sys/sys

2015-03-06 Thread Ed Schouten
Author: ed Date: Fri Mar 6 16:43:54 2015 New Revision: 279698 URL: https://svnweb.freebsd.org/changeset/base/279698 Log: Update the ELFOSABI_* constants. Two new operating systems have been added in the meantime. ELFOSABI_FENIXOS that uses value 16 (published in the latest draft) and

svn commit: r279016 - head/usr.sbin/syslogd

2015-02-19 Thread Ed Schouten
Author: ed Date: Thu Feb 19 18:56:39 2015 New Revision: 279016 URL: https://svnweb.freebsd.org/changeset/base/279016 Log: Make syslogd work in case shutdown() is POSIX-ly correct. On POSIX conformant systems, shutdown() should return ENOTCONN when not connected. We attempted to fix this

svn commit: r277178 - head/sys/sys

2015-01-14 Thread Ed Schouten
Author: ed Date: Wed Jan 14 13:03:03 2015 New Revision: 277178 URL: https://svnweb.freebsd.org/changeset/base/277178 Log: Make sure CAP_BINDAT and CAP_CONNECTAT are part of CAP_ALL0. This makes sure that file descriptors of opened directories will actually get these capabilities. Without

svn commit: r276176 - head/lib/msun/src

2014-12-24 Thread Ed Schouten
Author: ed Date: Wed Dec 24 10:13:53 2014 New Revision: 276176 URL: https://svnweb.freebsd.org/changeset/base/276176 Log: Clarify to explain that C99 conforming compilers don't need CMPLX*(). Discussed with: kargl@ Modified: head/lib/msun/src/math_private.h Modified:

Re: svn commit: r275819 - in head/lib/msun: ld128 ld80 src

2014-12-22 Thread Ed Schouten
. Sure thing! Just to make sure the phrasing is done properly, would you be willing to come up with a diff? I'll push it in if you like. Thanks, -- Ed Schouten e...@80386.nl ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo

Re: svn commit: r275819 - in head/lib/msun: ld128 ld80 src

2014-12-17 Thread Ed Schouten
to imply with this. Are changes that do not affect checksums of object files are bad? -- 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

svn commit: r275819 - in head/lib/msun: ld128 ld80 src

2014-12-16 Thread Ed Schouten
Author: ed Date: Tue Dec 16 09:21:56 2014 New Revision: 275819 URL: https://svnweb.freebsd.org/changeset/base/275819 Log: Rename cpack*() to CMPLX*(). The C11 standard introduced a set of macros (CMPLX, CMPLXF, CMPLXL) that can be used to construct complex numbers from a pair of real and

svn commit: r271154 - head/sys/sys

2014-09-04 Thread Ed Schouten
Author: ed Date: Fri Sep 5 05:20:52 2014 New Revision: 271154 URL: http://svnweb.freebsd.org/changeset/base/271154 Log: Partially revert r271012. Incredibly weird: GCC 4.7/4.9 do support the _Noreturn and _Thread_local keywords, but not during bootstrapping. GCC is by far the weirdest

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

2014-09-04 Thread Ed Schouten
Author: ed Date: Fri Sep 5 05:36:32 2014 New Revision: 271155 URL: http://svnweb.freebsd.org/changeset/base/271155 Log: Roll back r271012 even more aggressively. I've looked at the GCC sources and I now understand what's going wrong. THe C11 keywords are simply nonexistent when using

svn commit: r270994 - head/sys/sys

2014-09-03 Thread Ed Schouten
Author: ed Date: Wed Sep 3 06:34:16 2014 New Revision: 270994 URL: http://svnweb.freebsd.org/changeset/base/270994 Log: Partially revert r270964. Don't test for C++11 to define _Thread_local. In addition to Clang 3.3, it turns out that GCC 4.7 in Ports also does not support the

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

2014-09-03 Thread Ed Schouten
On 3 September 2014 07:44, Antoine Brodin anto...@freebsd.org wrote: This change may break the lang/gcc port on head: http://gohan2.ysv.freebsd.org/data/head-amd64-default-baseline/p367138_s270990/logs/errors/gcc-4.7.4.log Good catch! Fixed in r270994. -- Ed Schouten e...@80386.nl

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

2014-09-03 Thread Ed Schouten
Author: ed Date: Wed Sep 3 09:35:38 2014 New Revision: 271012 URL: http://svnweb.freebsd.org/changeset/base/271012 Log: Leave the C11 keywords alone when we have a recent version of GCC. As GCC also gained support for the C11 keywords over time, we can patch up sys/cdefs.h to not define

svn commit: r270964 - head/sys/sys

2014-09-02 Thread Ed Schouten
Author: ed Date: Tue Sep 2 11:16:44 2014 New Revision: 270964 URL: http://svnweb.freebsd.org/changeset/base/270964 Log: Clean up sys/cdefs.h slightly. - Remove c++0x hack from sys/cdefs.h that was needed when Clang did not fully implement C++11. We can now safely test against C++11 to

svn commit: r270941 - head/sys/sys

2014-09-01 Thread Ed Schouten
Author: ed Date: Mon Sep 1 18:27:04 2014 New Revision: 270941 URL: http://svnweb.freebsd.org/changeset/base/270941 Log: Add lock annotations to sys/cdefs.h. Clang has support for annotating mutexes and code that uses mutexes to validate certain aspects of thread safety: - Whether

svn commit: r270942 - head/sys/sys

2014-09-01 Thread Ed Schouten
Author: ed Date: Mon Sep 1 18:28:11 2014 New Revision: 270942 URL: http://svnweb.freebsd.org/changeset/base/270942 Log: Enable lock annotations on HEAD when using Clang. MFC after:never Modified: head/sys/sys/cdefs.h Modified: head/sys/sys/cdefs.h

svn commit: r270943 - in head: include lib/libstdthreads

2014-09-01 Thread Ed Schouten
Author: ed Date: Mon Sep 1 18:34:30 2014 New Revision: 270943 URL: http://svnweb.freebsd.org/changeset/base/270943 Log: Add lock annotations to the header files of our threading libraries. This change extends all of the functions present in the pthread.h and threads.h headers to have

Re: svn commit: r270943 - in head: include lib/libstdthreads

2014-09-01 Thread Ed Schouten
On 1 September 2014 20:34, Ed Schouten e...@freebsd.org wrote: - Locking a function twice, - Unlocking a function without a mutex being locked, Errr... - Locking a mutex twice, - Unlocking a mutex without it being locked -- Ed Schouten e...@80386.nl

svn commit: r270944 - head/sbin/hastd

2014-09-01 Thread Ed Schouten
Author: ed Date: Mon Sep 1 18:37:17 2014 New Revision: 270944 URL: http://svnweb.freebsd.org/changeset/base/270944 Log: Add lock annotations to the threading API used by hastd. Approved by: pjd@ Modified: head/sbin/hastd/primary.c head/sbin/hastd/synch.h Modified:

svn commit: r270950 - head/lib/libcuse

2014-09-01 Thread Ed Schouten
Author: ed Date: Mon Sep 1 19:56:28 2014 New Revision: 270950 URL: http://svnweb.freebsd.org/changeset/base/270950 Log: Add lock annotations to libcuse. - Add annotations to the lock/unlock function to indicate that the function is allowed to lock and unlock the underlying pthread

svn commit: r270951 - in head: share/mk usr.sbin/auditdistd

2014-09-01 Thread Ed Schouten
Author: ed Date: Mon Sep 1 20:18:09 2014 New Revision: 270951 URL: http://svnweb.freebsd.org/changeset/base/270951 Log: Add -Wthread-safety to WARNS=6. While there, add a NO_WTHREAD_SAFETY flag that can be used to disable this specific warning flag. Disable it for auditdistd. We can

svn commit: r270749 - head/contrib/openbsm/bin/auditdistd

2014-08-28 Thread Ed Schouten
Author: ed Date: Thu Aug 28 11:50:52 2014 New Revision: 270749 URL: http://svnweb.freebsd.org/changeset/base/270749 Log: Unlock the right lock. The adist_remote_lock is not held in this place, whereas the adist_recv_list_lock lock is and is picked up during the next iteration. I

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

2014-08-26 Thread Ed Schouten
constant having a certain type. -- 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: r268491 - head/usr.bin/users

2014-07-10 Thread Ed Schouten
also just be a std::set, right? Even though I actually think C++ is a lot nicer than C, do we really think it is actually worth proactively replacing already existent tools? This specific tool has now become three times as big as the previous version (7128 - 23840 bytes). -- Ed Schouten e...@80386

Re: svn commit: r268491 - head/usr.bin/users

2014-07-10 Thread Ed Schouten
off between code readability and object size shows. With the patch above, the binary shrinks to 15640 bytes, so my concerns are somewhat addressed. :-) -- Ed Schouten e...@80386.nl ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org

svn commit: r268498 - head/usr.bin/users

2014-07-10 Thread Ed Schouten
Author: ed Date: Thu Jul 10 15:56:15 2014 New Revision: 268498 URL: http://svnweb.freebsd.org/changeset/base/268498 Log: Let users(1) use an std::set, instead of std::{vector,sort,unique}. Reviewed by: gahr Modified: head/usr.bin/users/users.cc Modified: head/usr.bin/users/users.cc

svn commit: r268499 - head/usr.bin/users

2014-07-10 Thread Ed Schouten
Author: ed Date: Thu Jul 10 15:58:28 2014 New Revision: 268499 URL: http://svnweb.freebsd.org/changeset/base/268499 Log: Don't use auto, as we also need to support GCC 4.2. Modified: head/usr.bin/users/users.cc Modified: head/usr.bin/users/users.cc

Re: svn commit: r268491 - head/usr.bin/users

2014-07-10 Thread Ed Schouten
On 10 July 2014 17:53, Baptiste Daroussin b...@freebsd.org wrote: Just make sure not to break mips, powerpc and sparc64 which are still using gcc 4.2 :) Oomf! Good point. Completely forgot about that. There is indeed one C++11-ism in the code, namely the use of auto. Let me fix that. -- Ed

Re: svn commit: r268491 - head/usr.bin/users

2014-07-10 Thread Ed Schouten
On 10 July 2014 18:05, Pietro Cerutti g...@freebsd.org wrote: I reply to this one, since I'm not on src-all. - for consistency, I'd s|std::set|set| - return (0) is not needed in c++ Good catch. Fixed! -- Ed Schouten e...@80386.nl ___ svn-src-head

svn commit: r268500 - head/usr.bin/users

2014-07-10 Thread Ed Schouten
Author: ed Date: Thu Jul 10 16:10:39 2014 New Revision: 268500 URL: http://svnweb.freebsd.org/changeset/base/268500 Log: Fix a couple of style nits. - Use set instead of std::set, to be consistent with the rest of the file. - Remove return (0); it's not required. - Add a dash at the

svn commit: r264823 - in head/usr.bin/bsdiff: bsdiff bspatch

2014-04-23 Thread Ed Schouten
Author: ed Date: Wed Apr 23 14:05:28 2014 New Revision: 264823 URL: http://svnweb.freebsd.org/changeset/base/264823 Log: Make usage printing more consistent with other tools. - Introduce a separate usage() function. - Don't use argv[0]. Directly name the application, as we do elsewhere.

svn commit: r264231 - in head: lib/libc/sys sys/kern sys/sys

2014-04-07 Thread Ed Schouten
Author: ed Date: Mon Apr 7 18:10:49 2014 New Revision: 264231 URL: http://svnweb.freebsd.org/changeset/base/264231 Log: Implement kqueue(2) for procdesc(4). kqueue(2) already supports EVFILT_PROC. Add an EVFILT_PROCDESC that behaves the same, but operates on a procdesc(4) instead. Only

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

2014-04-07 Thread Ed Schouten
Author: ed Date: Mon Apr 7 18:17:31 2014 New Revision: 264232 URL: http://svnweb.freebsd.org/changeset/base/264232 Log: Fix table alignment. EVFILT_PROCDESC is longer than the existing filters. Modified: head/lib/libc/sys/kqueue.2 Modified: head/lib/libc/sys/kqueue.2

svn commit: r264237 - head/sys/kern

2014-04-07 Thread Ed Schouten
Author: ed Date: Mon Apr 7 21:11:29 2014 New Revision: 264237 URL: http://svnweb.freebsd.org/changeset/base/264237 Log: Clean up shutdown_nice(). Just send the right signal to init(8). Right now, init(8) cannot distinguish between an ACPI power button press or a Ctrl+Alt+Del sequence on

svn commit: r264240 - head/sys/kern

2014-04-07 Thread Ed Schouten
Author: ed Date: Mon Apr 7 21:18:12 2014 New Revision: 264240 URL: http://svnweb.freebsd.org/changeset/base/264240 Log: Thinko: don't forget to apply 'howto' in case init(8) isn't running. Modified: head/sys/kern/kern_shutdown.c Modified: head/sys/kern/kern_shutdown.c

svn commit: r264200 - head/sys/kern

2014-04-06 Thread Ed Schouten
Author: ed Date: Sun Apr 6 20:00:42 2014 New Revision: 264200 URL: http://svnweb.freebsd.org/changeset/base/264200 Log: Nit: fix locking of p-p_state in procdesc_close(). According to sys/proc.h, this field needs to be locked with either the p_mtx or the p_slock. In this case the damage

svn commit: r264202 - head/sys/kern

2014-04-06 Thread Ed Schouten
Author: ed Date: Sun Apr 6 20:20:07 2014 New Revision: 264202 URL: http://svnweb.freebsd.org/changeset/base/264202 Log: Fix a typo. The function name is pdfork; not pfork. Modified: head/sys/kern/sys_procdesc.c Modified: head/sys/kern/sys_procdesc.c

svn commit: r264144 - head/sys/sys

2014-04-05 Thread Ed Schouten
Author: ed Date: Sat Apr 5 11:37:58 2014 New Revision: 264144 URL: http://svnweb.freebsd.org/changeset/base/264144 Log: Add missing userspace bits to sys/procdesc.h. - Include sys/_types.h and define pid_t. - Add __BEGIN_DECLS/__END_DECLS. In my opinion we should have considered

svn commit: r264136 - in head: lib/libc/sys sys/sys

2014-04-04 Thread Ed Schouten
Author: ed Date: Fri Apr 4 19:53:45 2014 New Revision: 264136 URL: http://svnweb.freebsd.org/changeset/base/264136 Log: Correct return type of pdfork(2). The pdfork(2) man page states: pdfork() returns a PID, 0 or -1, as fork(2) does. As it returns a PID, the return type

Re: svn commit: r261585 - head/sys/dev/vt/hw/vga

2014-02-07 Thread Ed Schouten
caused us to give up on that? -- 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: r261585 - head/sys/dev/vt/hw/vga

2014-02-07 Thread Ed Schouten
Hi Aleksandr, On 7 February 2014 16:10, Aleksandr Rybalko r...@freebsd.org wrote: On Fri, 7 Feb 2014 15:04:47 +0100 Ed Schouten e...@80386.nl wrote: On 7 February 2014 13:39, Aleksandr Rybalko r...@freebsd.org wrote: Also people asking me about advanced features of vt(9), like use multiple

svn commit: r261495 - head/sys/dev/watchdog

2014-02-04 Thread Ed Schouten
Author: ed Date: Tue Feb 4 20:52:33 2014 New Revision: 261495 URL: http://svnweb.freebsd.org/changeset/base/261495 Log: Use right buffer to print to. PR: kern/176597 Submitted by: Christoph Mallon christoph mallon gmx de MFC after:2 weeks Modified:

svn commit: r260849 - in head: gnu/lib/libgcc lib/libc libexec/rtld-elf share/mk

2014-01-18 Thread Ed Schouten
Author: ed Date: Sat Jan 18 14:22:56 2014 New Revision: 260849 URL: http://svnweb.freebsd.org/changeset/base/260849 Log: Replace LIBGCC by LIBCOMPILER_RT. We now use libcompiler_rt on all platforms now. Instead of referring directly to -lgcc and LIBGCC, use -lcompiler_rt and

svn commit: r260850 - head/share/mk

2014-01-18 Thread Ed Schouten
Author: ed Date: Sat Jan 18 14:47:34 2014 New Revision: 260850 URL: http://svnweb.freebsd.org/changeset/base/260850 Log: Correct value of LIBCOMPILER_RT. Caught by:Luca Bayer Modified: head/share/mk/bsd.libnames.mk Modified: head/share/mk/bsd.libnames.mk

Re: svn commit: r260849 - in head: gnu/lib/libgcc lib/libc libexec/rtld-elf share/mk

2014-01-18 Thread Ed Schouten
I didn't catch 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: r259830 - head/sys/kern

2013-12-24 Thread Ed Schouten
Author: ed Date: Tue Dec 24 18:42:26 2013 New Revision: 259830 URL: http://svnweb.freebsd.org/changeset/base/259830 Log: Fix copy-pasting of CJK fullwidth characters. They are stored as two separate characters in the vtbuf, so copy-pasting will cause them to be passed to

svn commit: r259761 - head/sys/teken

2013-12-22 Thread Ed Schouten
Author: ed Date: Mon Dec 23 05:47:27 2013 New Revision: 259761 URL: http://svnweb.freebsd.org/changeset/base/259761 Log: Fix linewrapping behaviour for CJK fullwidth characters. Instead of only wrapping when in the 'wrapped state', also force wrapping when the character to be rendered

svn commit: r259667 - in head/sys: dev/syscons dev/vt kern sys teken teken/demo

2013-12-20 Thread Ed Schouten
Author: ed Date: Fri Dec 20 21:31:50 2013 New Revision: 259667 URL: http://svnweb.freebsd.org/changeset/base/259667 Log: Extend libteken to support CJK fullwidth characters. Introduce a new formatting bit (TF_CJK_RIGHT) that is set when putting a cell that is the right part of a CJK

Re: svn commit: r259016 - in head/sys: conf dev/drm2 dev/drm2/i915 dev/drm2/radeon dev/fb dev/vt kern modules/drm2/i915kms modules/drm2/radeonkms sparc64/sparc64 sys teken

2013-12-10 Thread Ed Schouten
2013/12/10 Aleksandr Rybalko r...@freebsd.org: Thanks to Ed, [...] No, thanks to you! Thanks a lot for pushing forward something that I should have done years ago. Can't wait to buy you a beer. -- Ed Schouten e...@80386.nl ___ svn-src-head

svn commit: r258105 - head/usr.bin/login

2013-11-13 Thread Ed Schouten
Author: ed Date: Wed Nov 13 20:35:10 2013 New Revision: 258105 URL: http://svnweb.freebsd.org/changeset/base/258105 Log: Fix whitespace. Modified: head/usr.bin/login/login.c Modified: head/usr.bin/login/login.c ==

svn commit: r257579 - in head: . tools/build/mk usr.sbin/utx

2013-11-03 Thread Ed Schouten
Author: ed Date: Sun Nov 3 16:43:52 2013 New Revision: 257579 URL: http://svnweb.freebsd.org/changeset/base/257579 Log: Remove utxrm(8). This command has been superseded by 'utx rm'. Modified: head/ObsoleteFiles.inc head/tools/build/mk/OptionalObsoleteFiles.inc

Re: svn commit: r255613 - head/sys/arm/arm

2013-09-17 Thread Ed Schouten
2013/9/17 Zbigniew Bodek z...@freebsd.org: Can you test this one: http://people.freebsd.org/~zbb/arm/other/stdatomic_fix_vol2.diff Works. Thanks! -- Ed Schouten e...@80386.nl ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman

Re: svn commit: r255613 - head/sys/arm/arm

2013-09-16 Thread Ed Schouten
as different kind of symbol /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:855: error: '__sync_fetch_and_sub_2_c' undeclared here (not in a function) etc. -- Ed Schouten e...@80386.nl ___ svn-src-head@freebsd.org mailing list http

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

2013-09-14 Thread Ed Schouten
Author: ed Date: Sat Sep 14 22:09:10 2013 New Revision: 255576 URL: http://svnweb.freebsd.org/changeset/base/255576 Log: Properly remove c++filt. The c++filt binary is only installed if ${MK_GCC} == yes ${MK_CXX} == yes. This means that it should be removed if ${MK_GCC} == no ||

Re: svn commit: r255359 - in head/sys: cddl/dev/dtrace dev/firewire dev/vkbd security/audit

2013-09-08 Thread Ed Schouten
dtrace_dev = make_dev(dtrace_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, dtrace/dtrace); helper_dev = make_dev(helper_cdevsw, 0, UID_ROOT, GID_WHEEL, 0660, dtrace/helper); #endif -- Ed Schouten e...@80386.nl ___ svn-src-head

Re: svn commit: r255360 - head/sys/net

2013-09-08 Thread Ed Schouten
2013/9/7 Davide Italiano dav...@freebsd.org: Log: Don't clear the unused SI_CHEAPCLONE flag in tap_create()/tuncreate(). Both the tun and the tap driver still use clonelists, right? I'm not sure this fix is all right. -- Ed Schouten e...@80386.nl

Re: svn commit: r255360 - head/sys/net

2013-09-08 Thread Ed Schouten
relationship between cdevsws and devs is the pointer in the cdev to the cdevsw. -- 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

Re: svn commit: r255092 - in head: lib/libcompiler_rt sys/arm/arm

2013-08-31 Thread Ed Schouten
with a similar amount of effort. For libcxxrt you could even argue that this should have done in the first place, because it already used __atomic_* calls in certain source files. Example patch for libcxxrt: http://80386.nl/pub/libcxxrt.txt -- Ed Schouten e...@80386.nl

Re: svn commit: r255092 - in head: lib/libcompiler_rt sys/arm/arm

2013-08-31 Thread Ed Schouten
this? This only affects ports that use __sync_*, have USE_GCC is set and are being built on ARMv5. I think our intent should not be to keep compilers happy. FreeBSD should provide proper APIs instead (e.g. stdatomic.h). -- Ed Schouten e...@80386.nl ___ svn-src-head

svn commit: r254252 - head/sys/geom/mirror

2013-08-12 Thread Ed Schouten
Author: ed Date: Mon Aug 12 18:17:45 2013 New Revision: 254252 URL: http://svnweb.freebsd.org/changeset/base/254252 Log: Fix the formatting of the error message. The G_MIRROR_DEBUG() macro already appends a newline. Also, most of the log messages emitted by gmirror start with an

svn commit: r252412 - head/lib/librt

2013-06-30 Thread Ed Schouten
Author: ed Date: Sun Jun 30 08:59:33 2013 New Revision: 252412 URL: http://svnweb.freebsd.org/changeset/base/252412 Log: Convert this piece of code to use C11 atomics. As mentioned before, we should at least aim to have one piece of code in both user space and kernel space that uses C11

svn commit: r252413 - head/sys/sys

2013-06-30 Thread Ed Schouten
Author: ed Date: Sun Jun 30 10:38:20 2013 New Revision: 252413 URL: http://svnweb.freebsd.org/changeset/base/252413 Log: Make atomic_fetch_add() and atomic_fetch_sub() work for pointers with GCC 4.2. According to the standard, atomic_fetch_*() has to behave identical to regular

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

2013-06-30 Thread Ed Schouten
on ARMv5. -- 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: r252411 - head/sys/sys

2013-06-30 Thread Ed Schouten
function? If so, my guess is that it is impossible to derive a standards-compliant implementation of this header. -- Ed Schouten e...@80386.nl ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe

svn commit: r252386 - head/sbin/hastd

2013-06-29 Thread Ed Schouten
Author: ed Date: Sat Jun 29 20:13:39 2013 New Revision: 252386 URL: http://svnweb.freebsd.org/changeset/base/252386 Log: Don't let hastd use C11 atomics. Due to possible concerns about the stability of C11 atomics, use our existing atomics API instead. Requested by: pjd Modified:

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

2013-06-17 Thread Ed Schouten
by machine/atomic.h. It'll be interesting to see whether Clang will reach such a level of code quality. -- 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: r251803 - head/sys/kern

2013-06-16 Thread Ed Schouten
Author: ed Date: Sun Jun 16 09:30:35 2013 New Revision: 251803 URL: http://svnweb.freebsd.org/changeset/base/251803 Log: Change callout use counter to use C11 atomics. In order to get some coverage of C11 atomics in kernelspace, switch at least one piece of code in kernelspace to use C11

Re: svn commit: r251796 - head/sbin/hastd

2013-06-16 Thread Ed Schouten
atomics, but also a small number of other pieces of code. That way any kind of breakage would become pretty visible. Thoughts? -- Ed Schouten e...@80386.nl ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head

svn commit: r251804 - head/sys/sys

2013-06-16 Thread Ed Schouten
Author: ed Date: Sun Jun 16 10:48:47 2013 New Revision: 251804 URL: http://svnweb.freebsd.org/changeset/base/251804 Log: Move _Atomic() into sys/cdefs.h. That way _Atomic() is defined next to all the other C11 keywords for which we provide compatibility for pre-C11 compilers. While

svn commit: r251781 - in head/sys: arm/arm mips/mips

2013-06-15 Thread Ed Schouten
Author: ed Date: Sat Jun 15 08:15:22 2013 New Revision: 251781 URL: http://svnweb.freebsd.org/changeset/base/251781 Log: Make support for atomics on ARM complete. Provide both __sync_*-style and __atomic_*-style functions that perform the atomic operations on ARMv5 by using Restartable

svn commit: r251782 - head/sys/sparc64/sparc64

2013-06-15 Thread Ed Schouten
Author: ed Date: Sat Jun 15 08:21:54 2013 New Revision: 251782 URL: http://svnweb.freebsd.org/changeset/base/251782 Log: Stick to using the documented atomic(9) API. The atomic_store_ptr() function is not part of the atomic(9) API. We only provide a version with a release barrier.

svn commit: r251784 - head/lib/libcompiler_rt

2013-06-15 Thread Ed Schouten
Author: ed Date: Sat Jun 15 09:04:10 2013 New Revision: 251784 URL: http://svnweb.freebsd.org/changeset/base/251784 Log: Let ARM use the custom tailored atomic intrinsics. Deleted: head/lib/libcompiler_rt/__sync_fetch_and_add_4.c head/lib/libcompiler_rt/__sync_fetch_and_and_4.c

svn commit: r251785 - head/contrib/llvm/tools/clang/lib/Basic

2013-06-15 Thread Ed Schouten
Author: ed Date: Sat Jun 15 09:42:43 2013 New Revision: 251785 URL: http://svnweb.freebsd.org/changeset/base/251785 Log: Pull in r184040 from upstream clang trunk: Emit native implementations of atomic operations on FreeBSD/armv6. Just like on Linux, FreeBSD/armv6 assumes the

svn commit: r251796 - head/sbin/hastd

2013-06-15 Thread Ed Schouten
Author: ed Date: Sat Jun 15 22:17:59 2013 New Revision: 251796 URL: http://svnweb.freebsd.org/changeset/base/251796 Log: Let hastd use C11 atomics. C11 atomics now work on all the architectures. Have at least a single piece of software in our base system that uses C11 atomics. This

svn commit: r251694 - head/sys/sys

2013-06-13 Thread Ed Schouten
Author: ed Date: Thu Jun 13 18:40:45 2013 New Revision: 251694 URL: http://svnweb.freebsd.org/changeset/base/251694 Log: Minor improvements to stdatomic.h. - Define __SYNC_ATOMICS in case we're using the __sync_*() API. This is not used by stdatomic.h itself, but may be useful for some

svn commit: r251695 - in head/sys: arm/arm conf

2013-06-13 Thread Ed Schouten
(r251695) @@ -0,0 +1,540 @@ +/*- + * Copyright (c) 2013 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

svn commit: r251696 - head/sys/mips/mips

2013-06-13 Thread Ed Schouten
Author: ed Date: Thu Jun 13 18:47:28 2013 New Revision: 251696 URL: http://svnweb.freebsd.org/changeset/base/251696 Log: Bring the stdatomic for MIPS code slightly more in sync with the ARM version. Modified: head/sys/mips/mips/stdatomic.c Modified: head/sys/mips/mips/stdatomic.c

svn commit: r251566 - head/sys/sys

2013-06-09 Thread Ed Schouten
Author: ed Date: Sun Jun 9 08:28:23 2013 New Revision: 251566 URL: http://svnweb.freebsd.org/changeset/base/251566 Log: Fix the way atomic_is_lock_free() is defined for Clang. When using Clang atomics, atomic types are not placed in a structure. There is thus no reason why we should get

svn commit: r251524 - in head/sys: conf mips/mips

2013-06-08 Thread Ed Schouten
+1,436 @@ +/*- + * Copyright (c) 2013 Ed Schouten e...@freebsd.org + * All rights reserved. + * + * Copyright (c) 1998 Doug Rabson + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions

svn commit: r251525 - head/lib/libcompiler_rt

2013-06-08 Thread Ed Schouten
Author: ed Date: Sat Jun 8 13:22:53 2013 New Revision: 251525 URL: http://svnweb.freebsd.org/changeset/base/251525 Log: Use improved __sync_*() intrinsics for MIPS in userspace as well. r251524 introduced custom tailored versions for MIPS of these functions for kernel-space code. We can

svn commit: r251539 - head/sys/mips/mips

2013-06-08 Thread Ed Schouten
Author: ed Date: Sat Jun 8 16:24:49 2013 New Revision: 251539 URL: http://svnweb.freebsd.org/changeset/base/251539 Log: Actually make the 2-byte atomics work. Even though I tested the 1-byte operations on arbitrarily aligned bytes, it seems I did not do this for the 2-byte operations.

Re: svn commit: r251524 - in head/sys: conf mips/mips

2013-06-08 Thread Ed Schouten
in machine/atomic.h. -- 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: r251558 - head/tools/regression/include/stdatomic

2013-06-08 Thread Ed Schouten
added) +++ head/tools/regression/include/stdatomic/logic.c Sat Jun 8 22:44:49 2013(r251558) @@ -0,0 +1,128 @@ +/*- + * Copyright (c) 2013 Ed Schouten e...@freebsd.org + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification

svn commit: r251559 - head/sys/mips/mips

2013-06-08 Thread Ed Schouten
Author: ed Date: Sat Jun 8 23:45:11 2013 New Revision: 251559 URL: http://svnweb.freebsd.org/changeset/base/251559 Log: Merge the 1 and 2 byte versions of the atomic functions into one. After pushing in my fix for the 2 byte functions, I realized that the functions for 1 and 2 byte

svn commit: r251314 - in head: lib/libc/locale tools/regression/lib/libc/locale

2013-06-03 Thread Ed Schouten
is newly added) +++ head/lib/libc/locale/cXXrtomb_iconv.h Mon Jun 3 17:17:56 2013 (r251314) @@ -0,0 +1,115 @@ +/*- + * Copyright (c) 2013 Ed Schouten e...@freebsd.org + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification

svn commit: r251347 - head/sys/sys

2013-06-03 Thread Ed Schouten
Author: ed Date: Mon Jun 3 20:52:20 2013 New Revision: 251347 URL: http://svnweb.freebsd.org/changeset/base/251347 Log: Add ATOMIC_*_LOCK_FREE constants. These constants are part of the C standard. Both Clang and GCC seem to export these constants under the name

svn commit: r251216 - head/contrib/llvm/tools/clang/lib/CodeGen

2013-06-01 Thread Ed Schouten
Author: ed Date: Sat Jun 1 08:07:09 2013 New Revision: 251216 URL: http://svnweb.freebsd.org/changeset/base/251216 Log: Pull in r183033 and r183036 from LLVM trunk: Add support for optimized (non-generic) atomic libcalls. For integer types of sizes 1, 2, 4 and 8, libcompiler-rt

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

2013-06-01 Thread Ed Schouten
) == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/sys/stdatomic.hSat Jun 1 21:02:26 2013(r251230, copy of r251216, head/include/stdatomic.h) @@ -0,0 +1,325 @@ +/*- + * Copyright (c) 2011 Ed Schouten e...@freebsd.org + *David Chisnall

svn commit: r251123 - head/lib/libcompiler_rt

2013-05-30 Thread Ed Schouten
Author: ed Date: Thu May 30 06:20:23 2013 New Revision: 251123 URL: http://svnweb.freebsd.org/changeset/base/251123 Log: Use #ifdef instead of #if defined. This makes these tests a bit more consistent with the tests done at the bottom of the file. Modified:

svn commit: r251124 - head/lib/libcompiler_rt

2013-05-30 Thread Ed Schouten
May 30 06:20:50 2013(r251124) @@ -0,0 +1,47 @@ +/*- + * Copyright (c) 2013 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

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

2013-05-26 Thread Ed Schouten
. Done! Could you please take another look? http://80386.nl/pub/uchar-iconv.txt (refresh!) 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

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