CVS commit: src/distrib/notes/common

2014-02-09 Thread pedro martelletto
Module Name:src
Committed By:   pedro
Date:   Mon Feb 10 06:36:53 UTC 2014

Modified Files:
src/distrib/notes/common: main

Log Message:
add myself


To generate a diff of this commit:
cvs rdiff -u -r1.504 -r1.505 src/distrib/notes/common/main

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/makemandb

2014-02-09 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Mon Feb 10 00:23:36 UTC 2014

Modified Files:
src/usr.sbin/makemandb: makemandb.c

Log Message:
in update_db(), extract the full list of files to update from the db
before actually updating anything, since changing the db while the query
that extracts the list of files is still in progress results in
the extraction query failing before it finds everything.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/usr.sbin/makemandb/makemandb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2014-02-09 Thread David Laight
Module Name:src
Committed By:   dsl
Date:   Sun Feb  9 23:02:25 UTC 2014

Modified Files:
src/sys/arch/amd64/amd64: fpu.c

Log Message:
Steal the table from i386/isa/npx.c than selects the highest priority
  floating point error when raising a signal.
Multiple errors bits can easily be set if different sub-fields of an
xmm simd operation generate different errors.


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/sys/arch/amd64/amd64/fpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/i386/isa

2014-02-09 Thread David Laight
Module Name:src
Committed By:   dsl
Date:   Sun Feb  9 22:47:04 UTC 2014

Modified Files:
src/sys/arch/i386/isa: npx.c

Log Message:
Tidy up and correct some comments.
Replace the hand generated 28 lines that initialised fpetable[]
  with some pre-processor expressions.
The latter was verified to give the same table entries.


To generate a diff of this commit:
cvs rdiff -u -r1.152 -r1.153 src/sys/arch/i386/isa/npx.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2014-02-09 Thread David Laight
Module Name:src
Committed By:   dsl
Date:   Sun Feb  9 22:19:02 UTC 2014

Modified Files:
src/sys/arch/amd64/amd64: fpu.c

Log Message:
Simplify fputrap() considerably.
There is no need to save the fpu state here, and definitely no need
  to initialise the fpu.
The code is running with interrupts disabled having trapped on either
  an x87 instruction (the one after the one that generated the error)
  or on an SSE (etc) instruction that caused the error.
So all it needs to do it obtain the 'error' bits from the relevant
  status register, clear the bits, and then raise any signal.
The signal code will save the fp state if the signal itself isn't masked.
It also passes the FP state to the signal handler - which can modify it.
(I suspect that wasn't thecase when this code was written.)
Seems to work for both 64bit and 32bit 'divide by zero' errors.
For the xmm trap, the xmm registers are updated for the result of the
  instruction, but the trap returns to re-execute the instruction!
This makes it difficult for the signal handler to do anything sensible.

I've also changed the code to only use unmasked error bits when deciding
the signal code.


To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/sys/arch/amd64/amd64/fpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests

2014-02-09 Thread Julio Merino
Module Name:src
Committed By:   jmmv
Date:   Sun Feb  9 21:26:07 UTC 2014

Modified Files:
src/tests/include: t_paths.c
src/tests/lib/libc/gen: t_fpsetmask.c t_isnan.c t_siginfo.c
src/tests/lib/libm: t_ldexp.c t_log.c
src/tests/lib/libpthread: t_mutex.c

Log Message:
Use compiler builtins instead of atf_arch and atf_machine.

The atf_arch and atf_machine configuration variables were removed from
atf-0.19 without me realizing that some tests were querying them directly.

Instead of reintroducing those variables, just rely on compiler builtins
as many other tests already do.

Should fix PR bin/48582.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/tests/include/t_paths.c
cvs rdiff -u -r1.12 -r1.13 src/tests/lib/libc/gen/t_fpsetmask.c
cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libc/gen/t_isnan.c
cvs rdiff -u -r1.22 -r1.23 src/tests/lib/libc/gen/t_siginfo.c
cvs rdiff -u -r1.10 -r1.11 src/tests/lib/libm/t_ldexp.c
cvs rdiff -u -r1.8 -r1.9 src/tests/lib/libm/t_log.c
cvs rdiff -u -r1.5 -r1.6 src/tests/lib/libpthread/t_mutex.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/amd64

2014-02-09 Thread David Laight
Module Name:src
Committed By:   dsl
Date:   Sun Feb  9 19:42:04 UTC 2014

Modified Files:
src/sys/arch/amd64/amd64: cpufunc.S

Log Message:
Best if x86_stmxcsr executes stmxcsr.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/amd64/amd64/cpufunc.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/miscfs/umapfs

2014-02-09 Thread Juergen Hannken-Illjes
Module Name:src
Committed By:   hannken
Date:   Sun Feb  9 17:18:38 UTC 2014

Modified Files:
src/sys/miscfs/umapfs: umap_vnops.c

Log Message:
Adjust comment and change vput() to vrele().  This change got missed
when changing vnode creation operations to return unlocked result.


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/sys/miscfs/umapfs/umap_vnops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/miscfs/genfs

2014-02-09 Thread Juergen Hannken-Illjes
Module Name:src
Committed By:   hannken
Date:   Sun Feb  9 17:15:51 UTC 2014

Modified Files:
src/sys/miscfs/genfs: layer_subr.c

Log Message:
When layer_node_alloc() finds another thread already inserted the node
into the hashlist and discards the now unneeded node it will raise a
panic "dead but not clean".

Reorder the initialization and use ungetnewvnode() to discard the node.


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sys/miscfs/genfs/layer_subr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch

2014-02-09 Thread David Laight
Module Name:src
Committed By:   dsl
Date:   Sun Feb  9 17:07:41 UTC 2014

Modified Files:
src/sys/arch/amd64/amd64: cpufunc.S
src/sys/arch/x86/include: cpufunc.h

Log Message:
Add x86_stmxcsr for amd64.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/amd64/amd64/cpufunc.S
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/x86/include/cpufunc.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/compat

2014-02-09 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Sun Feb  9 16:41:42 UTC 2014

Modified Files:
src/sys/compat/linux/arch/alpha: linux_exec.h
src/sys/compat/linux/arch/arm: linux_exec.h
src/sys/compat/linux/arch/i386: linux_exec.h
src/sys/compat/linux/arch/m68k: linux_exec.h
src/sys/compat/linux/arch/mips: linux_exec.h
src/sys/compat/linux/arch/powerpc: linux_exec.h
src/sys/compat/linux/common: linux_exec.h linux_exec_elf32.c
src/sys/compat/linux32/arch/amd64: linux32_exec.h
src/sys/compat/linux32/common: linux32_exec_elf32.c

Log Message:
account for the 16 bytes of AT_RANDOM data in the stack setup.  fixes PR 48518.
use cprng_strong32() instead of random().  add AT_RANDOM support for linux32.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/compat/linux/arch/alpha/linux_exec.h
cvs rdiff -u -r1.8 -r1.9 src/sys/compat/linux/arch/arm/linux_exec.h
cvs rdiff -u -r1.11 -r1.12 src/sys/compat/linux/arch/i386/linux_exec.h
cvs rdiff -u -r1.10 -r1.11 src/sys/compat/linux/arch/m68k/linux_exec.h
cvs rdiff -u -r1.14 -r1.15 src/sys/compat/linux/arch/mips/linux_exec.h
cvs rdiff -u -r1.22 -r1.23 src/sys/compat/linux/arch/powerpc/linux_exec.h
cvs rdiff -u -r1.49 -r1.50 src/sys/compat/linux/common/linux_exec.h
cvs rdiff -u -r1.87 -r1.88 src/sys/compat/linux/common/linux_exec_elf32.c
cvs rdiff -u -r1.4 -r1.5 src/sys/compat/linux32/arch/amd64/linux32_exec.h
cvs rdiff -u -r1.13 -r1.14 src/sys/compat/linux32/common/linux32_exec_elf32.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/kern

2014-02-09 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sun Feb  9 14:51:13 UTC 2014

Modified Files:
src/sys/kern: kern_sysctl.c

Log Message:
Reorder code to avoid using an uninitialized variable: if
sysctl_copyin fails, 'tmp' is not initialized. This bug is
harmless since only the return value will be different;
it does not expose kernel memory unless diagnostic is enabled.

ok agc@ martin@


To generate a diff of this commit:
cvs rdiff -u -r1.244 -r1.245 src/sys/kern/kern_sysctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/x86/include

2014-02-09 Thread David Laight
Module Name:src
Committed By:   dsl
Date:   Sun Feb  9 14:44:42 UTC 2014

Modified Files:
src/sys/arch/x86/include: cpu_extended_state.h

Log Message:
Add compatibility for some userspace code (eg firefox) that seems to look
  inside the ucontext structure passed to signal handlers to modify the
  xmm registers.
This should make the code compile - I'm not at all sure it works as expected,
  the interactions between FP and signal handlers aren't at all clear.
AFAICT the FP state is saved on the user stack when the handler is called,
  however the FP trap code can already done odd things to the FPU


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/x86/include/cpu_extended_state.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/bsd/atf/lib/libatf-c

2014-02-09 Thread Julio Merino
Module Name:src
Committed By:   jmmv
Date:   Sun Feb  9 14:02:39 UTC 2014

Modified Files:
src/external/bsd/atf/lib/libatf-c: bconfig.h

Log Message:
Update for atf 0.19.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/external/bsd/atf/lib/libatf-c/bconfig.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/veriexecctl

2014-02-09 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Sun Feb  9 13:41:00 UTC 2014

Modified Files:
src/sbin/veriexecctl: veriexecctl.c

Log Message:
Fix error message; argv[1] could be NULL


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/sbin/veriexecctl/veriexecctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/lib/libkern

2014-02-09 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Sun Feb  9 12:53:30 UTC 2014

Modified Files:
src/sys/lib/libkern: Makefile

Log Message:
Revert previous revision. It bkeaks profiling kernel builds.
LIBISPRIVATE unconditionnally set MKPROFILE to no, preventing
profiling kernel library.


To generate a diff of this commit:
cvs rdiff -u -r1.96 -r1.97 src/sys/lib/libkern/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/libexec/httpd

2014-02-09 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Feb  9 12:32:32 UTC 2014

Modified Files:
src/libexec/httpd: bozohttpd.8 bozohttpd.c

Log Message:
- bump man page date
- strip :80 off virtual host names as they're the default


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/libexec/httpd/bozohttpd.8
cvs rdiff -u -r1.48 -r1.49 src/libexec/httpd/bozohttpd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci/ixgbe

2014-02-09 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Sun Feb  9 12:27:37 UTC 2014

Modified Files:
src/sys/dev/pci/ixgbe: ixgbe.c

Log Message:
Remove a few noisy debug printf.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/pci/ixgbe/ixgbe.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.