CVS: cvs.openbsd.org: src

2017-10-28 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2017/10/28 20:21:33

Modified files:
lib/libc/arch/arm: Symbols.list 
lib/libc/arch/arm/string: _memcpy.S bcopy.S memcpy.S memmove.S 

Log message:
Stop exporting _memcpy, an implementation detail of bcopy/memcpy/memmove

ok kettenis@ deraadt@



CVS: cvs.openbsd.org: src

2017-10-28 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2017/10/28 19:17:01

Modified files:
distrib/sets/lists/base: mi 

Log message:
sync



CVS: cvs.openbsd.org: src

2017-10-28 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2017/10/28 15:37:28

Modified files:
lib/libc/arch/sparc64: Symbols.list 
lib/libc/arch/sparc64/gen: Makefile.inc 
Removed files:
lib/libc/arch/sparc64/gen: saveregs.S 

Log message:
Remove __builtin_saveregs: gcc hasn't used it for years.

suggested by miod@
ok kettenis@



CVS: cvs.openbsd.org: src

2017-10-28 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2017/10/28 15:31:06

Modified files:
lib/libc/arch/aarch64: Symbols.list 
lib/libc/arch/aarch64/sys: brk.S 

Log message:
Typo: 'end' should have been '_end', which is already exported/imported.
Also, '_memcpy' and '_stack' were specific to arm and should not have been
copied here



CVS: cvs.openbsd.org: src

2017-10-28 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2017/10/28 15:26:17

Modified files:
lib/libc   : Symbols.list 

Log message:
Eliminate some more linker generated symbols that aren't needed.

ok kettenis@



CVS: cvs.openbsd.org: src

2017-10-28 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2017/10/28 15:25:24

Modified files:
lib/libc/thread: rthread_once.c 

Log message:
If the init_routine used with pthread_once() is canceled, then we need to
unlock the mutex inside the pthread_once_t.  Push a cleanup wrapper for that.

Diff from Scott Cheloha 
ok mpi@



CVS: cvs.openbsd.org: src

2017-10-28 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2017/10/28 15:23:14

Modified files:
include: pthread.h 
lib/librthread : Symbols.map pthread.h rthread.c shlib_version 
lib/libc   : Symbols.list shlib_version 
lib/libc/hidden: pthread.h 
lib/libc/include: thread_private.h 
lib/libc/thread: Makefile.inc rthread.c 
Added files:
lib/libc/thread: rthread_cleanup.c 

Log message:
Change pthread_cleanup_{push,pop} to macros that store the cleanup info
on the stack instead of mallocing the list and move the APIs from libpthread
to libc so that they can be used inside libc.

Note: the standard was explicitly written to permit/support this
"macro with unmatched brace" style and it's what basically everyone
else already does.  We xor the info with random cookies with a
random magic to detect/trip-up overwrites.

Major bump to both libc and libpthread due to the API move.

ok mpi@



CVS: cvs.openbsd.org: src

2017-10-28 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2017/10/28 15:16:35

Modified files:
lib/libc/arch/arm: Symbols.list 

Log message:
Stop exporting some symbols internal to the softfloat implementation,
unneeded linker-generated symbols and libgcc symbols that are accidentally
re-exported.

Riding the upcoming libc major bump.

ok guenther@



CVS: cvs.openbsd.org: src

2017-10-28 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2017/10/28 14:16:13

Modified files:
lib/libc/gen   : sysctl.3 

Log message:
No need to include  before .

ok deraadt@, jca@



CVS: cvs.openbsd.org: src

2017-10-28 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2017/10/28 09:28:53

Modified files:
lib/libc/sys   : stat.2 

Log message:
consistently use .Vt for variable types and use ".Fa path" where appropriate;
one of the bugs reported by  via jmc@



CVS: cvs.openbsd.org: src

2017-10-28 Thread Mike Belopuhov
CVSROOT:/cvs
Module name:src
Changes by: mi...@cvs.openbsd.org   2017/10/28 09:25:20

Modified files:
usr.bin/netstat: mbuf.c 

Log message:
Bring "netstat -m" output up to speed with the kernel

The kernel no longer sets watermarks on cluster pools rendering
"max" values useless. Instead, there's now a global limit on how
much memory all cluster pools combined together can allocate from
the system. The limit is set to kern.maxclusters number of 2Kb
increments which allows us to display current, peak and maximum
total memory used by the network.

OK claudio, millert



CVS: cvs.openbsd.org: src

2017-10-28 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/10/28 08:44:46

Modified files:
sys/dev/i2c: iatp.c 

Log message:
Add the compat-mode setup for wsmouse.



CVS: cvs.openbsd.org: src

2017-10-28 Thread Ulf Brosziewski
CVSROOT:/cvs
Module name:src
Changes by: b...@cvs.openbsd.org2017/10/28 08:31:29

Modified files:
sys/dev/pckbc  : pms.c 

Log message:
Adapt the Elantech handlers (v1-3) to the new wsmouse infrastructure.

The new versions use wsmouse_configure, and leave compat-mode handling
to wsmouse.

ok stsp



CVS: cvs.openbsd.org: src

2017-10-28 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2017/10/28 07:23:26

Modified files:
usr.bin/ctfconv: parse.c 

Log message:
Document the use of a rbtree for resolving types inside a single CU.

No functional changes.



CVS: cvs.openbsd.org: src

2017-10-28 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2017/10/28 03:34:17

Modified files:
usr.bin/ctfconv: parse.c 

Log message:
Define nitems() locally and stop including 



CVS: cvs.openbsd.org: src

2017-10-28 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2017/10/28 03:30:27

Modified files:
usr.bin/ctfdump: ctfdump.c 

Log message:
Correctly handle binaries without string table.

Found by jsg@ with afl(1).



CVS: cvs.openbsd.org: src

2017-10-28 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2017/10/28 03:26:16

Modified files:
usr.bin/ctfdump: ctfdump.c 

Log message:
Correct an integer overflow check to detect invalid CTF section.

Found by jsg@ with afl(1).



CVS: cvs.openbsd.org: src

2017-10-28 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2017/10/28 02:22:28

Modified files:
usr.bin/ctfdump: ctfdump.c 

Log message:
Print values as unsigned when dumping header.



CVS: cvs.openbsd.org: src

2017-10-28 Thread Antoine Jacoutot
CVSROOT:/cvs
Module name:src
Changes by: ajacou...@cvs.openbsd.org   2017/10/28 01:22:56

Modified files:
usr.sbin/sysmerge: sysmerge.sh 

Log message:
Prefer useradd(1) over chpass(1) so that new users are added before the YP '+'
token.
req. by Miod