CVS: cvs.openbsd.org: src

2019-01-14 Thread Sunil Nimmagadda
CVSROOT:/cvs
Module name:src
Changes by: su...@cvs.openbsd.org   2019/01/14 21:49:50

Modified files:
usr.sbin/smtpd : lka_filter.c 

Log message:
Swap 'token' and 'id' place in filter protocol.

This allows to consistently extract 'id' from both 'report' and
'filter' lines.

Ok gilles@ jung@



Re: CVS: cvs.openbsd.org: src

2019-01-14 Thread Visa Hankala
On Mon, Jan 14, 2019 at 07:58:15PM +, Miod Vallat wrote:
> 
> > CVSROOT:/cvs
> > Module name:src
> > Changes by: v...@cvs.openbsd.org2019/01/14 08:02:57
> >
> > Modified files:
> > sys/arch/mips64/mips64: fp_emulate.c lcore_float.S 
> >
> > Log message:
> > Wrap floating point instructions with .set hardfloat to make clang's
> > integrated assembler accept them in the kernel.
> >
> > Move fsr access code into dedicated inline functions to improve
> > readability.
> 
> This causes the following warnings when building with gcc+as:
> 
> {standard input}: Assembler messages:
> {standard input}:5298: Warning: Tried to set unrecognized symbol: hardfloat
> {standard input}:5402: Warning: Tried to set unrecognized symbol: hardfloat
> 
> when building fp_emulate.c, and
> 
> /usr/src/sys/arch/mips64/mips64/lcore_float.S: Assembler messages:
> /usr/src/sys/arch/mips64/mips64/lcore_float.S:42: Warning: Tried to set 
> unrecognized symbol: hardfloat
> 
> when building lcore_float.o.

Please use a fresh build of gas with r1.5 of tc-mips.c.



CVS: cvs.openbsd.org: src

2019-01-14 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2019/01/14 18:54:00

Modified files:
lib/libedit: Makefile 
gnu/lib/libreadline: Makefile 

Log message:
Fix the inter-library dependency for libedit and libreadline.
Previously they tried to depend on libtermcap which actually doesn't
exist in the objdir.

ok jca



CVS: cvs.openbsd.org: src

2019-01-14 Thread Scott Soule Cheloha
CVSROOT:/cvs
Module name:src
Changes by: chel...@cvs.openbsd.org 2019/01/14 17:07:17

Modified files:
share/man/man9 : microtime.9 

Log message:
correct CODE REFERENCES: kern_clock.c -> kern_tc.c; ok kn@ jmc@ visa@



CVS: cvs.openbsd.org: src

2019-01-14 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2019/01/14 16:52:06

Modified files:
lib/libutil: fmt_scaled.c 

Log message:
Calling llabs(LLONG_MIN) is undefined behavior, llvm 7.0.1 does not
work with our old code.  In fmt_scaled() move the check before
calling llabs().
found by regress/lib/libutil/fmt_scaled; OK deraadt@ millert@ tedu@



CVS: cvs.openbsd.org: src

2019-01-14 Thread Mark Kettenis
CVSROOT:/cvs
Module name:src
Changes by: kette...@cvs.openbsd.org2019/01/14 14:01:56

Modified files:
sys/arch/sparc64/conf: Makefile.sparc64 

Log message:
Add support for building kernels with clang.  Clang does not support
-mno-fpu, so use -msoft-float instead.  As long as we do not explicitly
use floating-point arithmetic in the kernel that probably has the same effect.
Add -Wno-unused-command-line-argument to prevent warnings that turn into
errors passing -Wa,-Av9b when we run genassym.sh.

ok deraadt@, visa@



Re: CVS: cvs.openbsd.org: src

2019-01-14 Thread Miod Vallat


> CVSROOT:  /cvs
> Module name:  src
> Changes by:   v...@cvs.openbsd.org2019/01/14 08:02:57
>
> Modified files:
>   sys/arch/mips64/mips64: fp_emulate.c lcore_float.S 
>
> Log message:
> Wrap floating point instructions with .set hardfloat to make clang's
> integrated assembler accept them in the kernel.
>
> Move fsr access code into dedicated inline functions to improve
> readability.

This causes the following warnings when building with gcc+as:

{standard input}: Assembler messages:
{standard input}:5298: Warning: Tried to set unrecognized symbol: hardfloat
{standard input}:5402: Warning: Tried to set unrecognized symbol: hardfloat

when building fp_emulate.c, and

/usr/src/sys/arch/mips64/mips64/lcore_float.S: Assembler messages:
/usr/src/sys/arch/mips64/mips64/lcore_float.S:42: Warning: Tried to set 
unrecognized symbol: hardfloat

when building lcore_float.o.




CVS: cvs.openbsd.org: src

2019-01-14 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2019/01/14 09:50:56

Modified files:
usr.sbin/ospf6d: ospf6d.c 
usr.sbin/ospfd : ospfd.c 

Log message:
Improve error message when daemon is already running.
OK millert, deraadt, job



CVS: cvs.openbsd.org: src

2019-01-14 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2019/01/14 09:43:47

Modified files:
sys/kern   : kern_unveil.c 

Log message:
backout previous; crashes near mountpoints it seems



CVS: cvs.openbsd.org: src

2019-01-14 Thread Florian Obser
CVSROOT:/cvs
Module name:src
Changes by: flor...@cvs.openbsd.org 2019/01/14 09:30:21

Modified files:
usr.sbin/ntpd  : control.c ntpd.c ntpd.h 

Log message:
Prevent multiple ntpds from tripping over each other.
This brings over the logic from bgpd & ospfd.
Input & OK deraadt



CVS: cvs.openbsd.org: src

2019-01-14 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2019/01/14 09:27:19

Modified files:
sys/arch/loongson/conf: Makefile.loongson 
sys/arch/octeon/conf: Makefile.octeon 
sys/arch/sgi/conf: Makefile.sgi 

Log message:
Remove obsolete symbols.sort target.

OK deraadt@



CVS: cvs.openbsd.org: src

2019-01-14 Thread Visa Hankala
CVSROOT:/cvs
Module name:src
Changes by: v...@cvs.openbsd.org2019/01/14 08:02:57

Modified files:
sys/arch/mips64/mips64: fp_emulate.c lcore_float.S 

Log message:
Wrap floating point instructions with .set hardfloat to make clang's
integrated assembler accept them in the kernel.

Move fsr access code into dedicated inline functions to improve
readability.



CVS: cvs.openbsd.org: src

2019-01-14 Thread Ingo Feinerer
CVSROOT:/cvs
Module name:src
Changes by: feine...@cvs.openbsd.org2019/01/14 06:35:41

Modified files:
sys/dev/usb: if_umb.c 

Log message:
Fix typos

ok sthen@



CVS: cvs.openbsd.org: www

2019-01-14 Thread Theo Buehler
CVSROOT:/cvs
Module name:www
Changes by: t...@cvs.openbsd.org2019/01/14 06:10:48

Modified files:
faq: upgrade64.html 

Log message:
tweak previous;



CVS: cvs.openbsd.org: www

2019-01-14 Thread Theo Buehler
CVSROOT:/cvs
Module name:www
Changes by: t...@cvs.openbsd.org2019/01/14 06:08:13

Modified files:
.  : hackathons.html 

Log message:
antipodian -> antipodean

from raf czlonka



CVS: cvs.openbsd.org: src

2019-01-14 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2019/01/14 02:58:11

Modified files:
usr.bin/locate/locate: locate.1 

Log message:
Various tweaks:
* Avoid misleading talk about "characters", talk about "bytes".
* Remove the sentence about 8-bit character support - such a thing
simply does not exist, neither in locate(1) nor in OpenBSD in general.
* Clarify what "case" means in the present context.
* Clarify the sentence about the internal database format.
* Drop irrelevant historical information.
* Make the sentence about weekly(8) more precise and concise.
* s/file name/filename/ throughout for consistency.



CVS: cvs.openbsd.org: src

2019-01-14 Thread Eric Faurot
CVSROOT:/cvs
Module name:src
Changes by: e...@cvs.openbsd.org2019/01/14 02:37:40

Modified files:
usr.sbin/smtpd : smtpctl.c 

Log message:
correctly retrieve envelope strings. fixes mailq output.

ok gilles@



CVS: cvs.openbsd.org: src

2019-01-14 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2019/01/14 02:06:04

Modified files:
usr.bin/locate/locate: fastfind.c locate.c locate.h util.c 

Log message:
Untimely spring cleaning:
* Garbage collect useless hand-rolled lookup tables.
* Merge one-line helper functions into callers.
* Garbage collect obfuscating macros.
* Fix one format string error (%d used for u_int).
* Garbage collect setlocale(3) and .
* Garbage collect several unused constants.
* Minus 45 LOC, no functional change.

As noticed by tedu@, the lookup table "table" was used uninitialized.
But since it was only used as a pre-matching optimization and the real
string comparison is done further down the line, that bug probably did
not cause wrong results but merely ruined -i performance.

Code review triggered by a naive question from Jan Stary.
OK deraadt@ tedu@



CVS: cvs.openbsd.org: src

2019-01-14 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2019/01/14 01:48:16

Modified files:
bin/ksh: mail.c 

Log message:
Fix three more buglets:
1. Another off-by-one: if a mail file name ends in an (escaped)
percent sign, do not forget to check whether the next byte is the
percent sign introducing the message (MAILPATH='filename\%%msg').
2. If the message is empty, use the default message rather than
printing a blank line (MAILPATH='filename%').
3. If the file name is empty, don't bother with mballoc(): the
subsequent stat(2) can never succeed.  (MAILPATH='%msg').
Found while reviewing the previous commit by tedu@.
OK tedu@.