svn commit: r283363 - head/sys/dev/psci

2015-05-24 Thread Andrew Turner
Author: andrew Date: Sun May 24 11:08:06 2015 New Revision: 283363 URL: https://svnweb.freebsd.org/changeset/base/283363 Log: Rework the PSCI cpu on code to allow it to work before device drivers have started. This allows this functions to be used with the regular ARM SMP initialisation

Re: svn commit: r282240 - in head: cddl/lib/libdtrace sys/netinet

2015-05-24 Thread George Neville-Neil
On 23 May 2015, at 17:59, hiren panchasara wrote: On 04/29/15 at 05:19P, George V. Neville-Neil wrote: Author: gnn Date: Wed Apr 29 17:19:55 2015 New Revision: 282240 URL: https://svnweb.freebsd.org/changeset/base/282240 Log: Brief demo script showing the various values that can be read

svn commit: r283374 - in head/sys: amd64/linux32 compat/linux kern sys

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 14:39:26 2015 New Revision: 283374 URL: https://svnweb.freebsd.org/changeset/base/283374 Log: In preparation for switching linuxulator to the use the native 1:1 threads refactor kern_sched_rr_get_interval() and sys_sched_rr_get_interval(). Add a

svn commit: r283395 - in head/sys: amd64/linux32 i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:08:25 2015 New Revision: 283395 URL: https://svnweb.freebsd.org/changeset/base/283395 Log: Regen for r283394. Modified: head/sys/amd64/linux32/linux32_proto.h head/sys/amd64/linux32/linux32_syscall.h head/sys/amd64/linux32/linux32_syscalls.c

svn commit: r283394 - in head/sys: amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:06:39 2015 New Revision: 283394 URL: https://svnweb.freebsd.org/changeset/base/283394 Log: Implement waitid() system call. Differential Revision:https://reviews.freebsd.org/D1046 Modified: head/sys/amd64/linux32/linux32_dummy.c

svn commit: r283369 - in head/sys: amd64/linux32 i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 14:29:35 2015 New Revision: 283369 URL: https://svnweb.freebsd.org/changeset/base/283369 Log: In preparation for switching linuxulator to the use the native 1:1 threads print the thread id in addition to the pid in debug messages. Modified:

svn commit: r283381 - head/sys/sys

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 14:49:21 2015 New Revision: 283381 URL: https://svnweb.freebsd.org/changeset/base/283381 Log: In preparation for switching linuxulator to the use the native 1:1 threads add per thread emulator state data. Differential Revision:

svn commit: r283386 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 14:56:21 2015 New Revision: 283386 URL: https://svnweb.freebsd.org/changeset/base/283386 Log: Introduce LINUX_VERSION_STR, LINUX_VERSION_CODE macro for use instead of harcoded pr_osrelease, pr_osrel values. This will be used later in the VDSO.

svn commit: r283393 - head/sys/i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:05:22 2015 New Revision: 283393 URL: https://svnweb.freebsd.org/changeset/base/283393 Log: Regen for r283392. Modified: head/sys/i386/linux/linux_proto.h head/sys/i386/linux/linux_syscall.h head/sys/i386/linux/linux_syscalls.c

svn commit: r283364 - head/sys/sys

2015-05-24 Thread Alexander V. Chernikov
Author: melifaro Date: Sun May 24 11:24:14 2015 New Revision: 283364 URL: https://svnweb.freebsd.org/changeset/base/283364 Log: Fix SIOCGI2C structure requirement. In reality, SIOCGI2C ioctl requires struct ifreq as many other ioctls. Doing copyin() on (significantly) larger struct

svn commit: r283378 - head/sys/amd64/linux32

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 14:44:57 2015 New Revision: 283378 URL: https://svnweb.freebsd.org/changeset/base/283378 Log: Remove a now unused include. Differential Revision:https://reviews.freebsd.org/D1035 Reviewed by: trasz Modified:

svn commit: r283390 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:00:27 2015 New Revision: 283390 URL: https://svnweb.freebsd.org/changeset/base/283390 Log: Add a function for converting wait options. Differential Revision:https://reviews.freebsd.org/D1045 Reviewed by: trasz Modified:

svn commit: r283396 - in head/sys: amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:11:32 2015 New Revision: 283396 URL: https://svnweb.freebsd.org/changeset/base/283396 Log: Implement rt_sigqueueinfo() system call. Differential Revision:https://reviews.freebsd.org/D1047 Reviewed by: trasz Modified:

svn commit: r283362 - head/sys/arm/qemu

2015-05-24 Thread Andrew Turner
Author: andrew Date: Sun May 24 11:04:45 2015 New Revision: 283362 URL: https://svnweb.freebsd.org/changeset/base/283362 Log: Include the ofw cpu driver. This allows us to get a list of cpus enabled by qemu, however we may not be running on them. Modified: head/sys/arm/qemu/files.qemu

svn commit: r283375 - head/sys/i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 14:40:41 2015 New Revision: 283375 URL: https://svnweb.freebsd.org/changeset/base/283375 Log: In preparation for switching linuxulator to the use the native 1:1 threads use MI linux_sched_rr_get_interval() in i386. Differential Revision:

svn commit: r283385 - in head/sys: amd64/linux32 i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 14:55:12 2015 New Revision: 283385 URL: https://svnweb.freebsd.org/changeset/base/283385 Log: Some style(9) whitespaces fixes. No functional changes. Differential Revision:https://reviews.freebsd.org/D1041 Reviewed by: emaste Modified:

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

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 14:37:45 2015 New Revision: 283373 URL: https://svnweb.freebsd.org/changeset/base/283373 Log: In preparation for switching linuxulator to the use the native 1:1 threads introduce kern_thr_alloc() which will be used later in the linux_clone().

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

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 14:36:33 2015 New Revision: 283372 URL: https://svnweb.freebsd.org/changeset/base/283372 Log: In preparation for switching linuxulator to the use the native 1:1 threads split sys_thr_exit() up into sys_thr_exit() and kern_thr_exit(). Move Where the second

svn commit: r283391 - in head/sys: amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:03:09 2015 New Revision: 283391 URL: https://svnweb.freebsd.org/changeset/base/283391 Log: To reduce code duplication introduce linux_copyout_rusage() method. Use it in linux_wait4() system call and move linux_wait4() to the MI path. While here add a

svn commit: r283392 - head/sys/i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:04:12 2015 New Revision: 283392 URL: https://svnweb.freebsd.org/changeset/base/283392 Log: struct l_rusage does not defined for i386 Linuxulator due to it's nature. Differential Revision:https://reviews.freebsd.org/D2139 Modified:

svn commit: r283361 - in head/sys: arm/conf boot/fdt/dts/arm

2015-05-24 Thread Ganbold Tsagaankhuu
Author: ganbold Date: Sun May 24 08:45:19 2015 New Revision: 283361 URL: https://svnweb.freebsd.org/changeset/base/283361 Log: Add kernel config and dts files for an aml8726-m3 based device. Following u-boot commands allow FreeBSD boot on Yiyate Android TV Box (aml8726-m3): tv open

svn commit: r283370 - in head/sys: amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 14:33:19 2015 New Revision: 283370 URL: https://svnweb.freebsd.org/changeset/base/283370 Log: In preparation for switching linuxulator to the use the native 1:1 threads introduce linux_exit() stub instead of sys_exit() call (which terminates process). In

svn commit: r283371 - in head/sys: amd64/linux32 i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 14:34:46 2015 New Revision: 283371 URL: https://svnweb.freebsd.org/changeset/base/283371 Log: Regen for r283370. Modified: head/sys/amd64/linux32/linux32_proto.h head/sys/amd64/linux32/linux32_syscall.h head/sys/amd64/linux32/linux32_syscalls.c

svn commit: r283383 - in head/sys: amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 14:53:16 2015 New Revision: 283383 URL: https://svnweb.freebsd.org/changeset/base/283383 Log: Switch linuxulator to use the native 1:1 threads. The reasons: 1. Get rid of the stubs/quirks with process dethreading, process reparent when the process

svn commit: r283382 - in head/sys: amd64/amd64 arm/arm compat/ia32 compat/svr4 i386/i386 i386/ibcs2 kern mips/mips powerpc/powerpc sparc64/sparc64 sys

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 14:51:29 2015 New Revision: 283382 URL: https://svnweb.freebsd.org/changeset/base/283382 Log: In preparation for switching linuxulator to the use the native 1:1 threads add a hook for cleaning thread resources before the thread die. Differential Revision:

svn commit: r283384 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 14:54:12 2015 New Revision: 283384 URL: https://svnweb.freebsd.org/changeset/base/283384 Log: pthread_join() caller do futex_wait on child_clear_tid. As a results of multiple simultaneous calls to pthread_join() specifying the same target thread are

svn commit: r283365 - in head/sys/arm: arm include

2015-05-24 Thread Andrew Turner
Author: andrew Date: Sun May 24 12:12:01 2015 New Revision: 283365 URL: https://svnweb.freebsd.org/changeset/base/283365 Log: Add more cp15_ functions, and use them in cpufunc.c where possible. Modified: head/sys/arm/arm/cpufunc.c head/sys/arm/include/cpu-v6.h

svn commit: r283367 - in head/sys/arm: conf qemu

2015-05-24 Thread Andrew Turner
Author: andrew Date: Sun May 24 12:33:12 2015 New Revision: 283367 URL: https://svnweb.freebsd.org/changeset/base/283367 Log: Enable SMP on the qemu virt platform. We use the device tree to find which cpus to enable, and PSCI to start them. Added: head/sys/arm/qemu/virt_mp.c (contents,

svn commit: r283380 - in head/sys: amd64/linux32 i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 14:47:00 2015 New Revision: 283380 URL: https://svnweb.freebsd.org/changeset/base/283380 Log: Regen for r283379. Modified: head/sys/amd64/linux32/linux32_proto.h head/sys/amd64/linux32/linux32_syscall.h head/sys/amd64/linux32/linux32_syscalls.c

svn commit: r283379 - in head/sys: amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 14:45:57 2015 New Revision: 283379 URL: https://svnweb.freebsd.org/changeset/base/283379 Log: Implement a Linux version of sched_getparam() sched_setparam(). Temporarily use the first thread in proc. Differential Revision:

svn commit: r283389 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 14:58:30 2015 New Revision: 283389 URL: https://svnweb.freebsd.org/changeset/base/283389 Log: Add a siginfo_t conversion function. Differential Revision:https://reviews.freebsd.org/D1044 Reviewed by: emaste, trasz Modified:

svn commit: r283388 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 14:57:39 2015 New Revision: 283388 URL: https://svnweb.freebsd.org/changeset/base/283388 Log: Remove a now unused define. Differential Revision:https://reviews.freebsd.org/D1043 Reviewed by: trasz Modified: head/sys/compat/linux/linux_misc.h

Re: svn commit: r283383 - in head/sys: amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Morozovsky
On Sun, 24 May 2015, Dmitry Chagin wrote: Author: dchagin Date: Sun May 24 14:53:16 2015 New Revision: 283383 URL: https://svnweb.freebsd.org/changeset/base/283383 Log: Switch linuxulator to use the native 1:1 threads. Wow. Quite a bit of work! -- Sincerely, D.Marck

svn commit: r283366 - head/sys/arm/arm

2015-05-24 Thread Andrew Turner
Author: andrew Date: Sun May 24 12:20:11 2015 New Revision: 283366 URL: https://svnweb.freebsd.org/changeset/base/283366 Log: Remove trailing whitespace from sys/arm/arm Modified: head/sys/arm/arm/bcopyinout.S head/sys/arm/arm/bcopyinout_xscale.S head/sys/arm/arm/blockio.S

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

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 14:44:06 2015 New Revision: 283377 URL: https://svnweb.freebsd.org/changeset/base/283377 Log: In preparation for switching linuxulator to the use the native 1:1 threads split sys_sched_getparam(), sys_sched_setparam(), sys_sched_getscheduler(),

svn commit: r283376 - head/sys/i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 14:43:06 2015 New Revision: 283376 URL: https://svnweb.freebsd.org/changeset/base/283376 Log: Regen for r283375. Modified: head/sys/i386/linux/linux_proto.h head/sys/i386/linux/linux_syscall.h head/sys/i386/linux/linux_syscalls.c

svn commit: r283397 - in head/sys: amd64/linux32 i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:12:38 2015 New Revision: 283397 URL: https://svnweb.freebsd.org/changeset/base/283397 Log: Regen for r283396. Modified: head/sys/amd64/linux32/linux32_proto.h head/sys/amd64/linux32/linux32_syscall.h head/sys/amd64/linux32/linux32_syscalls.c

svn commit: r283402 - in head/sys: amd64/linux32 i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:19:44 2015 New Revision: 283402 URL: https://svnweb.freebsd.org/changeset/base/283402 Log: Regen for r283401. Modified: head/sys/amd64/linux32/linux32_proto.h head/sys/amd64/linux32/linux32_syscall.h head/sys/amd64/linux32/linux32_syscalls.c

svn commit: r283403 - in head/sys: amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:21:25 2015 New Revision: 283403 URL: https://svnweb.freebsd.org/changeset/base/283403 Log: Implement pselect6() system call. Differential Revision:https://reviews.freebsd.org/D1051 Reviewed by: trasz Modified:

svn commit: r283410 - in head/sys: amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:30:52 2015 New Revision: 283410 URL: https://svnweb.freebsd.org/changeset/base/283410 Log: Put linux_platform into the vdso to avoid copying it onto the stack at every exec. Differential Revision:https://reviews.freebsd.org/D1062 Reviewed by:

svn commit: r283417 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:45:36 2015 New Revision: 283417 URL: https://svnweb.freebsd.org/changeset/base/283417 Log: Add 64 bit support to the vdso. Differential Revision:https://reviews.freebsd.org/D1069 Reviewed by: trasz Modified:

svn commit: r283436 - in head/sys: amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:30:23 2015 New Revision: 283436 URL: https://svnweb.freebsd.org/changeset/base/283436 Log: Use the BSD_TO_LINUX_SIGNAL() wherever there is no need to check the ABI as it is known. Differential Revision:https://reviews.freebsd.org/D1086

svn commit: r283437 - in head/sys: amd64/linux amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:31:44 2015 New Revision: 283437 URL: https://svnweb.freebsd.org/changeset/base/283437 Log: To avoid code duplication move open/fcntl definitions to the MI header file. Differential Revision:https://reviews.freebsd.org/D1087 Reviewed by:

svn commit: r283441 - in head/sys: amd64/linux amd64/linux32 compat/linux conf i386/linux modules/linux modules/linux64

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:41:39 2015 New Revision: 283441 URL: https://svnweb.freebsd.org/changeset/base/283441 Log: Implement epoll family system calls. This is a tiny wrapper around kqueue() to implement epoll subset of functionality. The kqueue user data are 32bit on i386 which

svn commit: r283442 - in head/sys: amd64/linux amd64/linux32 i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:42:49 2015 New Revision: 283442 URL: https://svnweb.freebsd.org/changeset/base/283442 Log: Regen for r283441. Modified: head/sys/amd64/linux/linux_proto.h head/sys/amd64/linux/linux_syscall.h head/sys/amd64/linux/linux_syscalls.c

svn commit: r283454 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:07:10 2015 New Revision: 283454 URL: https://svnweb.freebsd.org/changeset/base/283454 Log: Avoid unnecessary em zeroing in non-exec path as it already zeroed by malloc with M_ZERO flag and move zeroing to the proper place in exec path. Differential

svn commit: r283468 - in head/sys: amd64/linux amd64/linux32 i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:39:18 2015 New Revision: 283468 URL: https://svnweb.freebsd.org/changeset/base/283468 Log: Regen for r283467. Modified: head/sys/amd64/linux/linux_proto.h head/sys/amd64/linux/linux_syscall.h head/sys/amd64/linux/linux_syscalls.c

svn commit: r283469 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:40:14 2015 New Revision: 283469 URL: https://svnweb.freebsd.org/changeset/base/283469 Log: As fo_fill_kinfo() does not check fo_fill_kinfo to NULL add a fo_fill_kinfo op to eventfdops. Reported by: trinity Modified:

svn commit: r283474 - in head/sys: amd64/linux amd64/linux32 compat/linux conf i386/linux modules/linux modules/linux_common

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:47:20 2015 New Revision: 283474 URL: https://svnweb.freebsd.org/changeset/base/283474 Log: Rework signal code to allow using it by other modules, like linprocfs: 1. Linux sigset always 64 bit on all platforms. In order to move Linux sigset code to the

svn commit: r283475 - head/sys/compat/linprocfs

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:48:34 2015 New Revision: 283475 URL: https://svnweb.freebsd.org/changeset/base/283475 Log: Convert Linux sigsets before showing. Linux kernel displays sigset always as 16x4 bit mask. Modified: head/sys/compat/linprocfs/linprocfs.c Modified:

svn commit: r283476 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:49:09 2015 New Revision: 283476 URL: https://svnweb.freebsd.org/changeset/base/283476 Log: Convert Linux signal number to the FreeBSD. Modified: head/sys/compat/linux/linux_timer.c Modified: head/sys/compat/linux/linux_timer.c

svn commit: r283483 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:59:17 2015 New Revision: 283483 URL: https://svnweb.freebsd.org/changeset/base/283483 Log: Convert signal number to native for VT_SETMODE ioctl and remove strange and invalid ISSIGVALID macro. The code has not been tested right way but it was originally

svn commit: r283484 - in head/sys: amd64/linux amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 18:00:14 2015 New Revision: 283484 URL: https://svnweb.freebsd.org/changeset/base/283484 Log: Implement epoll_pwait() system call. Modified: head/sys/amd64/linux/linux_dummy.c head/sys/amd64/linux32/linux32_dummy.c head/sys/amd64/linux32/syscalls.master

svn commit: r283407 - in head/sys: amd64/linux32 compat/linux conf i386/linux modules/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:28:17 2015 New Revision: 283407 URL: https://svnweb.freebsd.org/changeset/base/283407 Log: Implement vdso - virtual dynamic shared object. Through vdso Linux exposes functions from kernel with proper DWARF CFI information so that it becomes easier to

svn commit: r283408 - in head/sys: amd64/linux32 i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:29:20 2015 New Revision: 283408 URL: https://svnweb.freebsd.org/changeset/base/283408 Log: Eliminate a now unused global declaration of elf_linux_sysvec. Differential Revision:https://reviews.freebsd.org/D1061 Reviewed by: trasz Modified:

svn commit: r283423 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:00:01 2015 New Revision: 283423 URL: https://svnweb.freebsd.org/changeset/base/283423 Log: Move FEATURE macros for v4l and v4l2 to the common module. Differential Revision:https://reviews.freebsd.org/D1075 Reviewed by: emaste Modified:

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

2015-05-24 Thread Andrew Turner
Author: andrew Date: Sun May 24 16:11:30 2015 New Revision: 283426 URL: https://svnweb.freebsd.org/changeset/base/283426 Log: Add support for getting the memory map from EFI if it has been pased in by loader.efi. Modified: head/sys/arm/arm/machdep.c head/sys/arm/conf/VIRT

svn commit: r283425 - head/sys/amd64/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:11:21 2015 New Revision: 283425 URL: https://svnweb.freebsd.org/changeset/base/283425 Log: Regen for r283424. Added: head/sys/amd64/linux/linux_proto.h (contents, props changed) head/sys/amd64/linux/linux_syscall.h (contents, props changed)

svn commit: r283435 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:28:58 2015 New Revision: 283435 URL: https://svnweb.freebsd.org/changeset/base/283435 Log: Convert Linux wait options to the FreeBSD. Check wait options as a Linux do. Linux always set WEXITED option not a WUNTRACED|WNOHANG which is a strange bug.

svn commit: r283439 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:34:57 2015 New Revision: 283439 URL: https://svnweb.freebsd.org/changeset/base/283439 Log: Implement F_DUPFD_CLOEXEC fcntl flag. Differential Revision:https://reviews.freebsd.org/D1089 Reviewed by: trasz Modified:

svn commit: r283446 - head/sys/amd64/linux32

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:51:04 2015 New Revision: 283446 URL: https://svnweb.freebsd.org/changeset/base/283446 Log: Include opt_compat.h, so that COMPAT_LINUX32 is defined, and we can access to the semop structs and functions. Submitted by: cognet@ Differential Revision:

svn commit: r283447 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:52:45 2015 New Revision: 283447 URL: https://svnweb.freebsd.org/changeset/base/283447 Log: Fix linux_common module build with KTR option. Differential Revision:https://reviews.freebsd.org/D1096 Reviewed by: trasz Modified:

svn commit: r283448 - head/sys/modules

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:53:32 2015 New Revision: 283448 URL: https://svnweb.freebsd.org/changeset/base/283448 Log: Connect linux64 module to the build. Differential Revision:https://reviews.freebsd.org/D1097 Reviewed by: emaste Modified: head/sys/modules/Makefile

svn commit: r283463 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:29:18 2015 New Revision: 283463 URL: https://svnweb.freebsd.org/changeset/base/283463 Log: Do not use struct l_timespec without conversion. While here move args-timeout handling before acquiring the futex key at FUTEX_WAIT path. Differential Revision:

svn commit: r283462 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:27:59 2015 New Revision: 283462 URL: https://svnweb.freebsd.org/changeset/base/283462 Log: Add prototypes for static futex functions. Differential Revision:https://reviews.freebsd.org/D1519 Reviewed by: trasz Modified:

svn commit: r283472 - head/sys/compat/linprocfs

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:44:42 2015 New Revision: 283472 URL: https://svnweb.freebsd.org/changeset/base/283472 Log: Add vdso and stack names to the /proc/self/maps. Modified: head/sys/compat/linprocfs/linprocfs.c Modified: head/sys/compat/linprocfs/linprocfs.c

svn commit: r283471 - in head/sys: amd64/linux amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:44:08 2015 New Revision: 283471 URL: https://svnweb.freebsd.org/changeset/base/283471 Log: According to Linux man sigaltstack(3) shall return EINVAL if the ss argument is not a null pointer, and the ss_flags member pointed to by ss contains flags other

svn commit: r283482 - in head/sys: amd64/linux amd64/linux32 i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:58:24 2015 New Revision: 283482 URL: https://svnweb.freebsd.org/changeset/base/283482 Log: Regen for r283480. Modified: head/sys/amd64/linux/linux_proto.h head/sys/amd64/linux/linux_syscall.h head/sys/amd64/linux/linux_syscalls.c

Re: svn commit: r283479 - in head/sys: amd64/amd64 amd64/ia32 arm/arm i386/i386 mips/mips powerpc/powerpc sparc64/sparc64

2015-05-24 Thread Konstantin Belousov
On Sun, May 24, 2015 at 05:56:03PM +, Dmitry Chagin wrote: Author: dchagin Date: Sun May 24 17:56:02 2015 New Revision: 283479 URL: https://svnweb.freebsd.org/changeset/base/283479 Log: The kernel sends signals to the processes via ABI specific sv_sendsig method. Native ABI do

svn commit: r283399 - in head/sys: amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:14:51 2015 New Revision: 283399 URL: https://svnweb.freebsd.org/changeset/base/283399 Log: Implement dup3() system call. Differential Revision:https://reviews.freebsd.org/D1049 Reviewed by: emaste Modified:

svn commit: r283398 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:13:56 2015 New Revision: 283398 URL: https://svnweb.freebsd.org/changeset/base/283398 Log: Sched_rr_get_interval returns EINVAL in case when the invalid pid specified. This silence the ltp tests. Differential Revision:

svn commit: r283432 - in head/sys: amd64/linux amd64/linux32 i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:25:44 2015 New Revision: 283432 URL: https://svnweb.freebsd.org/changeset/base/283432 Log: Being exported through vdso the note.Linux section used by glibc to determine the kernel version (this saves one uname call). Temporarily disable the export of a

svn commit: r283438 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:32:52 2015 New Revision: 283438 URL: https://svnweb.freebsd.org/changeset/base/283438 Log: Add several fcntl flags. Differential Revision:https://reviews.freebsd.org/D1088 Reviewed by: trasz Modified: head/sys/compat/linux/linux_file.h

svn commit: r283444 - in head/sys: amd64/linux amd64/linux32 compat/linux i386/linux sys

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:49:14 2015 New Revision: 283444 URL: https://svnweb.freebsd.org/changeset/base/283444 Log: Implement eventfd system call. Differential Revision:https://reviews.freebsd.org/D1094 In collaboration with:Jilles Tjoelker Modified:

svn commit: r283464 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:30:31 2015 New Revision: 283464 URL: https://svnweb.freebsd.org/changeset/base/283464 Log: Delete the duplicate of linux_to_native_clockid() function. Differential Revision:https://reviews.freebsd.org/D1521 Reviewed by: trasz Modified:

svn commit: r283473 - head/sys/compat/linprocfs

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:46:04 2015 New Revision: 283473 URL: https://svnweb.freebsd.org/changeset/base/283473 Log: Add support for /proc/pid/auxv. Modified: head/sys/compat/linprocfs/linprocfs.c Modified: head/sys/compat/linprocfs/linprocfs.c

svn commit: r283490 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 18:06:12 2015 New Revision: 283490 URL: https://svnweb.freebsd.org/changeset/base/283490 Log: Since FreeBSD supports SOCK_CLOEXEC SOCK_NONBLOCK options remove its emulation via fcntl call from Linuxulator. Modified: head/sys/compat/linux/linux_socket.c

svn commit: r283492 - in head/sys: amd64/linux amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 18:08:01 2015 New Revision: 283492 URL: https://svnweb.freebsd.org/changeset/base/283492 Log: Implement Linux specific syncfs() system call. Modified: head/sys/amd64/linux/linux_dummy.c head/sys/amd64/linux/syscalls.master

svn commit: r283491 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 18:06:46 2015 New Revision: 283491 URL: https://svnweb.freebsd.org/changeset/base/283491 Log: Properly check tv_nsec value. The tv_nsec field can also be one of the special value UTIME_NOW or UTIME_OMIT. Modified: head/sys/compat/linux/linux_misc.c

svn commit: r283497 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 18:13:21 2015 New Revision: 283497 URL: https://svnweb.freebsd.org/changeset/base/283497 Log: Convert SCM_TIMESTAMP in recvmsg(). Modified: head/sys/compat/linux/linux_socket.c head/sys/compat/linux/linux_socket.h Modified:

svn commit: r283401 - in head/sys: amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:18:19 2015 New Revision: 283401 URL: https://svnweb.freebsd.org/changeset/base/283401 Log: Implement prlimit64() system call. Differential Revision:https://reviews.freebsd.org/D1050 Reviewed by: emaste, trasz Modified:

svn commit: r283400 - in head/sys: amd64/linux32 i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:15:46 2015 New Revision: 283400 URL: https://svnweb.freebsd.org/changeset/base/283400 Log: Regen for r283399. Modified: head/sys/amd64/linux32/linux32_proto.h head/sys/amd64/linux32/linux32_syscall.h head/sys/amd64/linux32/linux32_syscalls.c

svn commit: r283412 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:39:08 2015 New Revision: 283412 URL: https://svnweb.freebsd.org/changeset/base/283412 Log: Get ready to commit x86_64 Linux emulation. All fields of type l_int in struct statfs are defined as l_long on i386 and amd64. Differential Revision:

svn commit: r283418 - head/lib/libiconv_modules/UTF7

2015-05-24 Thread Tijl Coosemans
Author: tijl Date: Sun May 24 15:47:06 2015 New Revision: 283418 URL: https://svnweb.freebsd.org/changeset/base/283418 Log: When only 2 bytes can be read from a 4 byte UTF-16 character in a base64 encoded chunk of a UTF-7 string, treat that as an incomplete character and return an error

svn commit: r283419 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:47:15 2015 New Revision: 283419 URL: https://svnweb.freebsd.org/changeset/base/283419 Log: Fix compilation with -DDEBUG option. Differential Revision:https://reviews.freebsd.org/D1070 Reviewed by: trasz Modified:

svn commit: r283420 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:48:34 2015 New Revision: 283420 URL: https://svnweb.freebsd.org/changeset/base/283420 Log: Add newfstatat system call for 64-bit Linuxulator. Differential Revision:https://reviews.freebsd.org/D1071 Reviewed by: trasz Modified:

svn commit: r283424 - in head/sys: amd64/linux modules/linux64

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:07:11 2015 New Revision: 283424 URL: https://svnweb.freebsd.org/changeset/base/283424 Log: Add preliminary support for x86-64 Linux binaries. Differential Revision:https://reviews.freebsd.org/D1076 Added: head/sys/amd64/linux/

svn commit: r283431 - in head/sys: amd64/linux amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:24:24 2015 New Revision: 283431 URL: https://svnweb.freebsd.org/changeset/base/283431 Log: Add AT_RANDOM and AT_EXECFN auxiliary vector entries which are used by glibc. At list since glibc version 2.16 using AT_RANDOM is mandatory. Differential

svn commit: r283450 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:56:32 2015 New Revision: 283450 URL: https://svnweb.freebsd.org/changeset/base/283450 Log: td_sigmask of a newly created thread copied from td. Remove excess initialization of td_sigmask. Differential Revision:https://reviews.freebsd.org/D1128

svn commit: r283456 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:09:07 2015 New Revision: 283456 URL: https://svnweb.freebsd.org/changeset/base/283456 Log: Improve ktr(9) records in thread managment code. Differential Revision:https://reviews.freebsd.org/D1464 Reviewed by: trasz Modified:

svn commit: r283455 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:08:25 2015 New Revision: 283455 URL: https://svnweb.freebsd.org/changeset/base/283455 Log: Use local struct proc * varable instead of dereferencing td-td_proc. Differential Revision:https://reviews.freebsd.org/D1463 Reviewed by: emaste

svn commit: r283459 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:23:08 2015 New Revision: 283459 URL: https://svnweb.freebsd.org/changeset/base/283459 Log: Add some clock mappings used in glibc 2.20. Differential Revision:https://reviews.freebsd.org/D1465 Reviewd by: trasz Modified:

svn commit: r283465 - in head/sys: amd64/linux amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:33:21 2015 New Revision: 283465 URL: https://svnweb.freebsd.org/changeset/base/283465 Log: Add preliminary fallocate system call implementation to emulate posix_fallocate() function. Differential Revision:https://reviews.freebsd.org/D1523

svn commit: r283487 - in head/sys: amd64/linux amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 18:03:14 2015 New Revision: 283487 URL: https://svnweb.freebsd.org/changeset/base/283487 Log: Reduce duplication between MD Linux code by moving msg related struct definitions out into the compat/linux/linux_socket.h Modified: head/sys/amd64/linux/linux.h

svn commit: r283486 - in head/sys: amd64/linux32 i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 18:02:17 2015 New Revision: 283486 URL: https://svnweb.freebsd.org/changeset/base/283486 Log: Regen for r283484. Modified: head/sys/amd64/linux32/linux32_proto.h head/sys/amd64/linux32/linux32_syscall.h head/sys/amd64/linux32/linux32_syscalls.c

svn commit: r283405 - in head/sys: amd64/linux32 i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:22:33 2015 New Revision: 283405 URL: https://svnweb.freebsd.org/changeset/base/283405 Log: Regen for r283403. Modified: head/sys/amd64/linux32/linux32_proto.h head/sys/amd64/linux32/linux32_syscall.h head/sys/amd64/linux32/linux32_syscalls.c

svn commit: r283411 - in head/sys: amd64/linux32 i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:32:52 2015 New Revision: 283411 URL: https://svnweb.freebsd.org/changeset/base/283411 Log: Remove stale comment about a signal trampoline which is moved to the shared page at r219609. Differential Revision:https://reviews.freebsd.org/D1063

svn commit: r283413 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:41:27 2015 New Revision: 283413 URL: https://svnweb.freebsd.org/changeset/base/283413 Log: 64-bit paltforms, like x86_64, do not use multiplexing on socketcall system calls. Differential Revision:https://reviews.freebsd.org/D1065 Reviewed by:

svn commit: r283414 - head/sys/compat/linprocfs

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:42:36 2015 New Revision: 283414 URL: https://svnweb.freebsd.org/changeset/base/283414 Log: Print out proper procmap entry for 64 bit binaries. Differential Revision:https://reviews.freebsd.org/D1066 Reviewed by: trasz Modified:

svn commit: r283430 - head/usr.bin/kdump

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:22:03 2015 New Revision: 283430 URL: https://svnweb.freebsd.org/changeset/base/283430 Log: Teach kdump to understand both linux emulation. Differential Revision:https://reviews.freebsd.org/D1079 Reviewed by: emaste Added:

  1   2   >