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: r283383 - in head/sys: amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
spec["emul_shared_rlock"] = 0; -} - -tick-10s /spec["futex_mtx"] != 0 && timestamp - ts["futex_mtx"] >= 999000/ { commit(spec["futex_mtx"]); Modified: head/sys/compat/linux/linux_emul.c ==

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 undefined

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

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. Differenti

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 M

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

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

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 proto

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

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 head/sys/i386/linux/linu

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 head/sys/amd64

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

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: head/sys/amd64/linux32/l

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

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:https://reviews.freebsd.org

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: head/sys/amd64/linux32/linux32_dum

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

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

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

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: head/sys/amd64/linux32/linux32_

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

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

2015-05-24 Thread Dmitry Chagin
_EXECFN 31 /* filename of program */ +#defineLINUX_AT_SYSINFO32 /* vsyscall */ +#defineLINUX_AT_SYSINFO_EHDR 33 /* vdso header */ /* Linux sets the i387 to extended precision. */ #if defined(__i386__) || defined(__amd64__) Added: head/sys/compat/linux/linux_vdso.c =

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

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

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

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

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

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:43:53 2015 New Revision: 283415 URL: https://svnweb.freebsd.org/changeset/base/283415 Log: Disable i386 call for x86-64 Linux. Differential Revision:https://reviews.freebsd.org/D1067 Reviewed by: trasz Modified: head/sys/compat/linux/linux_f

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

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:44:41 2015 New Revision: 283416 URL: https://svnweb.freebsd.org/changeset/base/283416 Log: x86_64 Linux do not use multiplexing on ipc system calls. Move struct ipc_perm definition to the MD path as it differs for 64 and 32 bit platform. Differential

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: head/sys/compat/linux/linux_vdso.

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: head/sys/compat/linux/linux_

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

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

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:51:18 2015 New Revision: 283421 URL: https://svnweb.freebsd.org/changeset/base/283421 Log: Introduce a new module linux_common.ko which is intended for the following primary purposes: 1. Remove the dependency of linsysfs and linprocfs modules from linux

svn commit: r283422 - in head/sys: amd64/linux32 compat/linux modules/linux modules/linux_common

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 15:54:58 2015 New Revision: 283422 URL: https://svnweb.freebsd.org/changeset/base/283422 Log: Refund the proc emuldata struct for future use. For now move flags from thread emuldata to proc emuldata as it was originally intended. As we can have both 64 & 3

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

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

2015-05-24 Thread Dmitry Chagin
4) @@ -0,0 +1,666 @@ +/*- + * Copyright (c) 2013 Dmitry Chagin + * Copyright (c) 1994-1996 Søren Schmidt + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are

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) head/sys

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

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:14:41 2015 New Revision: 283427 URL: https://svnweb.freebsd.org/changeset/base/283427 Log: Where possible we will use M_LINUX malloc(9) type. Move M_FUTEX defines to the linux_common.ko. Differential Revision:https://reviews.freebsd.org/D1077

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

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:18:03 2015 New Revision: 283428 URL: https://svnweb.freebsd.org/changeset/base/283428 Log: Change linux faccessat syscall definition to match actual linux one. The AT_EACCESS and AT_SYMLINK_NOFOLLOW flags are actually implemented within the glibc wrappe

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

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

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: head/usr.bin/kdump/

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

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

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:26:55 2015 New Revision: 283433 URL: https://svnweb.freebsd.org/changeset/base/283433 Log: Rewrite linux_recvfrom. To avoid double conversion of sockaddr use kern_recvit() directly. And check fromlen parameter before sockaddr copyin and conversion. Di

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

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:27:38 2015 New Revision: 283434 URL: https://svnweb.freebsd.org/changeset/base/283434 Log: Set WIFCONTINUED to the wait status if needed. Differential Revision:https://reviews.freebsd.org/D1083 Reviewed by: trasz Modified: head/sys/compat/li

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. D

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 Modified

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

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 Modi

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

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

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:36:29 2015 New Revision: 283440 URL: https://svnweb.freebsd.org/changeset/base/283440 Log: For future use in the Linuxulator: 1. Add a kern_kqueue() counterpart for kqueue() with flags parameter. 2. Be a bit secure. To avoid a double fp lookup add a

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
void*epoll; /* epoll data */ }; #defineLINUX_PEM_XLOCK(p) sx_xlock(&(p)->pem_sx) Added: head/sys/compat/linux/linux_event.c == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/compat/linux/linux_event.c Sun May 24 16:41:39 201

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 head/sys/amd64/linux/

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

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:47:13 2015 New Revision: 283443 URL: https://svnweb.freebsd.org/changeset/base/283443 Log: Put the correct value for the abi_nfdbits parameter of kern_select() for all supported Linuxulators. Differential Revision:https://reviews.freebsd.org/D10

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

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

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

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

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: r283449 - head/sys/compat/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:55:32 2015 New Revision: 283449 URL: https://svnweb.freebsd.org/changeset/base/283449 Log: Update Linux compat revision to 32. Differential Revision:https://reviews.freebsd.org/D1122 Reviewed by: emaste Modified: head/sys/compat/linux/linux_

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: r283451 - in head/sys: amd64/linux amd64/linux32 compat/linux i386/linux

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 16:59:25 2015 New Revision: 283451 URL: https://svnweb.freebsd.org/changeset/base/283451 Log: Implement ppoll() system call. Differential Revision:https://reviews.freebsd.org/D1105 Reviewed by: trasz Modified: head/sys/amd64/linux/linux_dummy.c

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

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

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

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:05:59 2015 New Revision: 283453 URL: https://svnweb.freebsd.org/changeset/base/283453 Log: Remove the unnecessary cast. Differential Revision:https://reviews.freebsd.org/D1461 Reviewed by: emaste Modified: head/sys/compat/linux/linux_emul.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 Re

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 Modifi

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

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

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

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:25:57 2015 New Revision: 283460 URL: https://svnweb.freebsd.org/changeset/base/283460 Log: Print out unsupported futex operation message only once for the process. Differential Revision:https://reviews.freebsd.org/D1498 Modified: head/sys/compa

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

2015-05-24 Thread Dmitry Chagin
Author: dchagin Date: Sun May 24 17:26:58 2015 New Revision: 283461 URL: https://svnweb.freebsd.org/changeset/base/283461 Log: As for now our tmpfs is no longer being considered "highly experimental" remove /dev/shm magic commited in r218497 and convert tmpfs type to an expected magic number

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

2014-05-27 Thread Dmitry Chagin
Author: dchagin Date: Wed May 28 05:57:35 2014 New Revision: 266782 URL: http://svnweb.freebsd.org/changeset/base/266782 Log: In r218101 I have not changed properly the futex syscall definition. Some Linux futex ops atomically verifies that the futex address uaddr (uval) contains the value v

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

2014-05-31 Thread Dmitry Chagin
Author: dchagin Date: Sat May 31 14:58:53 2014 New Revision: 266924 URL: http://svnweb.freebsd.org/changeset/base/266924 Log: Glibc was switched to the FUTEX_WAIT_BITSET op and CLOCK_REALTIME flag has been added instead of FUTEX_WAIT to replace the FUTEX_WAIT logic which needs to do gettimeo

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

2014-05-31 Thread Dmitry Chagin
Author: dchagin Date: Sat May 31 15:01:51 2014 New Revision: 266925 URL: http://svnweb.freebsd.org/changeset/base/266925 Log: To allow to run the interpreter itself add a new ELF branding type. Allow Linux ABI to run ELF interpreter. MFC after:3 days Modified: head/sys/amd64/linux3

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

2014-06-16 Thread Dmitry Chagin
Author: dchagin Date: Tue Jun 17 05:29:18 2014 New Revision: 267563 URL: http://svnweb.freebsd.org/changeset/base/267563 Log: Revert r266925 as it can lead to instant panic at fexecve(): To allow to run the interpreter itself add a new ELF branding type. Pointed out by: kib, mjg

svn commit: r275644 - head/gnu/usr.bin/gdb/kgdb

2014-12-09 Thread Dmitry Chagin
Author: dchagin Date: Tue Dec 9 14:21:43 2014 New Revision: 275644 URL: https://svnweb.freebsd.org/changeset/base/275644 Log: Skip calling CPU_ISSET for NOCPU as a short period of time we can have td_oncpu is NOCPU for thread in TDS_RUNNING state. Differential Revision:https://re

svn commit: r275751 - in head: share/man/man9 sys/kern sys/sys

2014-12-13 Thread Dmitry Chagin
Author: dchagin Date: Sat Dec 13 21:00:10 2014 New Revision: 275751 URL: https://svnweb.freebsd.org/changeset/base/275751 Log: Add _NEW flag to mtx(9), sx(9), rmlock(9) and rwlock(9). A _NEW flag passed to _init_flags() to avoid check for double-init. Differential Revision:https:/

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

2014-12-15 Thread Dmitry Chagin
Author: dchagin Date: Mon Dec 15 20:48:06 2014 New Revision: 275813 URL: https://svnweb.freebsd.org/changeset/base/275813 Log: Properly sort Xr to silence mandoc warnings. Differential Revision:https://reviews.freebsd.org/D1314 Reviewed by: wblock MFC after:1 Month Modifie

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

2015-01-01 Thread Dmitry Chagin
Author: dchagin Date: Thu Jan 1 18:37:03 2015 New Revision: 276508 URL: https://svnweb.freebsd.org/changeset/base/276508 Log: Correct an argument status of wait4 syscall for Linuxulator. MFC after:1 week Modified: head/sys/amd64/linux32/syscalls.master Modified: head/sys/amd64/linu

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

2015-01-01 Thread Dmitry Chagin
Author: dchagin Date: Thu Jan 1 18:41:34 2015 New Revision: 276509 URL: https://svnweb.freebsd.org/changeset/base/276509 Log: Correct an argument status of wait4 syscall for Linuxulator. Forgot about i386. MFC after:1 week Modified: head/sys/i386/linux/syscalls.master Modified: h

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

2015-01-01 Thread Dmitry Chagin
Author: dchagin Date: Thu Jan 1 18:43:31 2015 New Revision: 276510 URL: https://svnweb.freebsd.org/changeset/base/276510 Log: Regen after r276508, r276509. Modified: head/sys/amd64/linux32/linux32_proto.h head/sys/amd64/linux32/linux32_syscall.h head/sys/amd64/linux32/linux32_syscalls.c

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

2015-01-01 Thread Dmitry Chagin
Author: dchagin Date: Thu Jan 1 19:57:24 2015 New Revision: 276511 URL: https://svnweb.freebsd.org/changeset/base/276511 Log: Fix Clang warning: passing 'unsigned int *' to parameter of type 'int *' converts between pointers to integer types with different sign. MFC after:1 week Modi

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

2015-01-01 Thread Dmitry Chagin
Author: dchagin Date: Thu Jan 1 20:53:38 2015 New Revision: 276512 URL: https://svnweb.freebsd.org/changeset/base/276512 Log: Fix Clang -Wpointer-sign warnings. MFC after:1 week Modified: head/sys/compat/linux/linux_socket.c Modified: head/sys/compat/linux/linux_socket.c ==

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

2015-01-02 Thread Dmitry Chagin
Author: dchagin Date: Fri Jan 2 18:36:08 2015 New Revision: 276550 URL: https://svnweb.freebsd.org/changeset/base/276550 Log: Remove Giant from linux_getcwd() due to VFS is MPSAFE now. Discussed with: kib MFC after:1 week Modified: head/sys/compat/linux/linux_getcwd.c Modif

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

2015-01-02 Thread Dmitry Chagin
Author: dchagin Date: Fri Jan 2 19:29:32 2015 New Revision: 276564 URL: https://svnweb.freebsd.org/changeset/base/276564 Log: Cast *path to silence clang -Wpointer-sign warning. MFC after:1 week Modified: head/sys/compat/linux/linux_getcwd.c Modified: head/sys/compat/linux/linux_ge

svn commit: r276654 - in head/sys: compat/freebsd32 compat/linux kern sys

2015-01-04 Thread Dmitry Chagin
Author: dchagin Date: Sun Jan 4 10:34:02 2015 New Revision: 276654 URL: https://svnweb.freebsd.org/changeset/base/276654 Log: Indeed, instead of hiding the kern___getcwd() bug by bogus cast in r276564, change path type to char * (pathnames are always char *). And remove bogus casts of mallo

svn commit: r276655 - in head/sys: compat/freebsd32 kern sys

2015-01-04 Thread Dmitry Chagin
Author: dchagin Date: Sun Jan 4 10:40:23 2015 New Revision: 276655 URL: https://svnweb.freebsd.org/changeset/base/276655 Log: Regen for r276654 (__getcwd()). Modified: head/sys/compat/freebsd32/freebsd32_proto.h head/sys/compat/freebsd32/freebsd32_syscall.h head/sys/compat/freebsd32/free

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

2015-01-06 Thread Dmitry Chagin
Author: dchagin Date: Tue Jan 6 18:53:09 2015 New Revision: 276758 URL: https://svnweb.freebsd.org/changeset/base/276758 Log: kdump: eliminate new clang warnings. MFC after:1 week Modified: head/usr.bin/kdump/Makefile head/usr.bin/kdump/kdump.c Modified: head/usr.bin/kdump/Makefi

svn commit: r276906 - head/sys/kern

2015-01-09 Thread Dmitry Chagin
Author: dchagin Date: Sat Jan 10 07:22:38 2015 New Revision: 276906 URL: https://svnweb.freebsd.org/changeset/base/276906 Log: Allow clock_getcpuclockid() on the CPU-time clock for zombie process. Posix does not prohibit this. Differential Revision:https://reviews.freebsd.org/D147

svn commit: r278379 - in head/sys/dev/usb: . serial

2015-02-08 Thread Dmitry Chagin
Author: dchagin Date: Sun Feb 8 11:55:29 2015 New Revision: 278379 URL: https://svnweb.freebsd.org/changeset/base/278379 Log: Add Neoway WM620 module ID. MFC after:1 Week Modified: head/sys/dev/usb/serial/u3g.c head/sys/dev/usb/usbdevs Modified: head/sys/dev/usb/serial/u3g.c

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

2015-03-08 Thread Dmitry Chagin
Author: dchagin Date: Sun Mar 8 10:52:10 2015 New Revision: 279776 URL: https://svnweb.freebsd.org/changeset/base/279776 Log: Finish r194601. Add a cred parameter to the VOP_VPTOCNP(9) manpage. While here fix igor warning about new line. Reviewed by: kib MFC after:1 Week Modif

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

2016-06-26 Thread Dmitry Chagin
Author: dchagin Date: Sun Jun 26 16:59:59 2016 New Revision: 302213 URL: https://svnweb.freebsd.org/changeset/base/302213 Log: Fix a bug introduced in r283433. [1] Remove unneeded sockaddr conversion before kern_recvit() call as the from argument is used to record result (the source addre

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

2016-07-10 Thread Dmitry Chagin
Author: dchagin Date: Sun Jul 10 08:15:50 2016 New Revision: 302515 URL: https://svnweb.freebsd.org/changeset/base/302515 Log: Implement Linux personality() system call mainly due to READ_IMPLIES_EXEC flag. In Linux if this flag is set, PROT_READ implies PROT_EXEC for mmap(). Linux/i386 set

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

2016-07-10 Thread Dmitry Chagin
Author: dchagin Date: Sun Jul 10 08:17:16 2016 New Revision: 302516 URL: https://svnweb.freebsd.org/changeset/base/302516 Log: Regen for r302215 (Linux personality). Modified: head/sys/amd64/linux/linux_proto.h head/sys/amd64/linux/linux_syscall.h head/sys/amd64/linux/linux_syscalls.c h

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

2016-07-10 Thread Dmitry Chagin
Author: dchagin Date: Sun Jul 10 08:22:04 2016 New Revision: 302517 URL: https://svnweb.freebsd.org/changeset/base/302517 Log: Fix a copy/paste bug introduced during X86_64 Linuxulator work. FreeBSD support NX bit on X86_64 processors out of the box, for i386 emulation use READ_IMPLIES_EXEC

svn commit: r302518 - head/sys/conf

2016-07-10 Thread Dmitry Chagin
Author: dchagin Date: Sun Jul 10 08:38:10 2016 New Revision: 302518 URL: https://svnweb.freebsd.org/changeset/base/302518 Log: Add linux_mmap.c to the appropriate conf/files. Reported by: kib@ MFC after:1 week Modified: head/sys/conf/files.amd64 head/sys/conf/files.i386 Modifie

svn commit: r302626 - head/sys/conf

2016-07-12 Thread Dmitry Chagin
Author: dchagin Date: Tue Jul 12 06:12:58 2016 New Revision: 302626 URL: https://svnweb.freebsd.org/changeset/base/302626 Log: Fix pc98 LINT build. MFC after:4 days Modified: head/sys/conf/files.pc98 Modified: head/sys/conf/files.pc98

svn commit: r293613 - in head/sys: amd64/amd64 amd64/linux amd64/linux32 arm/arm arm64/arm64 compat/ia32 compat/svr4 i386/i386 i386/ibcs2 i386/linux kern mips/mips powerpc/powerpc sparc64/sparc64 sys

2016-01-09 Thread Dmitry Chagin
Author: dchagin Date: Sat Jan 9 20:18:53 2016 New Revision: 293613 URL: https://svnweb.freebsd.org/changeset/base/293613 Log: Implement vsyscall hack. Prior to 2.13 glibc uses vsyscall instead of vdso. An upcoming linux_base-c6 needs it. Differential Revision: https://reviews.freebsd.or

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

2016-01-09 Thread Dmitry Chagin
Author: dchagin Date: Sun Jan 10 07:36:43 2016 New Revision: 293627 URL: https://svnweb.freebsd.org/changeset/base/293627 Log: Unlock process lock when return error from getrobustlist call and add an forgotten dtrace probe when return the same error. MFC after:3 days XMFC with:r

<    1   2   3   4   >