Displaying 1 50 of 516,901 commits (0.077s)

OpenBSD — usr.bin/mandoc read.c libmandoc.h

Simplify by making the eqn and tbl steering functions void;
no functional change, minus 15 lines of code.

OpenBSD — usr.bin/mandoc man.c man_macro.c

Simplify by making many functions in the man(7) parser void,
and some cleanup; no functional change, minus 70 lines.

OpenBSD — usr.bin/mandoc mdoc_macro.c mdoc.c

Simplify by making the mdoc parser callbacks void, and some cleanup;
no functional change, minus 50 lines of code.

OpenBSD — usr.bin/mandoc mdoc_macro.c mdoc.c

Simplify the code by making various mdoc parser helper functions void.
No functional change, minus 130 lines of code.

OpenBSD — usr.bin/mandoc mdoc_validate.c mdoc_macro.c

Simplify code by making mdoc validation handlers void.
No functional change, minus 90 lines of code.

OpenBSD — regress/usr.bin/mandoc/mdoc/Bd badargs.in badargs.out_ascii, usr.bin/mandoc mandoc.h read.c

Downgrade .Bd -file from FATAL to ERROR.
Since this was the last remaining FATAL error in this area,
this change will allow major simplifications in the mdoc(7) parser.

OpenBSD — sbin/dhclient dhclient.c dispatch.c

Use if_nametoindex() to get the interface index, and thereby check
the validity of the interface name as soon the actual name is known.
i.e. right after 'egress' is expanded. One less thing for
get_hw_address() to do.

OpenBSD — regress/usr.bin/mandoc/mdoc/Eo break.in break.out_ascii, usr.bin/mandoc mdoc_macro.c mdoc_html.c

Multiple fixes with respect to .Eo:
1. Correctly parse stray .Ec without preceding .Eo,
avoiding an assertion violation found by jsg@ with afl.
2. Correctly parse .Ec arguments when breaking another block.
3. Correct spacing around closing delimiter when breaking another block.
4. Sync some related formatting control from -Tascii to -Thtml.

OpenBSD — sys/uvm uvm_km.c

The sti(4) driver copies its ROM into kernel memory and executes the code
in there.  It explicitly changes the mapping of that memory to RX, but this
only works if the maximum protection of the mapping includes PROT_EXEC.

ok miod@, deraadt@
Delta File
+3 -2 sys/uvm/uvm_km.c
+3 -2 1 file

OpenBSD — sys/dev/pci pci.c

Previous change wasn't quite right and broke "classic' PCI sparc64 machines.
Undo the code rearrangement in rev. 1.108 but keep the sparc64-specific code
dealing with non-prefetchable 64-bit BARs.

Found out the hard way by stsp@
Delta File
+13 -16 sys/dev/pci/pci.c
+13 -16 1 file

OpenBSD — sys/arch/amd64/amd64 locore.S

Missing comparison caused NX to always be enabled during boot, even on CPUs
that may have had it disabled in BIOS.

ok deraadt@
Delta File
+3 -2 sys/arch/amd64/amd64/locore.S
+3 -2 1 file

OpenBSD — regress/usr.bin/mandoc/mdoc Makefile, regress/usr.bin/mandoc/mdoc/Db args.in args.out_ascii

Fix the obsolete .Db (toggle debug mode) macro to ignore its arguments
and not trigger an assertion when there is more than one argument;
the latter found by jsg@ with afl.

OpenBSD — lib/libssl/src/ssl s3_clnt.c

Ensure that sess_cert is not NULL at the start of
ssl3_send_client_key_exchange(), rather than checking it in the key
exchange algorithm specific code.

ok beck@ miod@
Delta File
+9 -25 lib/libssl/src/ssl/s3_clnt.c
+9 -25 1 file

OpenBSD — lib/libssl/src/ssl d1_srtp.c

Avoid a double-free in an error path.

Reported by Felix Groebert of the Google Security Team.

ok beck@ miod@
Delta File
+1 -2 lib/libssl/src/ssl/d1_srtp.c
+1 -2 1 file

OpenBSD — lib/libssl/src/ssl d1_clnt.c

Avoid a NULL dereference in the DTLS client that can be triggered by a
crafted server response used in conjunction with an anonymous DH or
anonymous ECDH ciphersuite.

Fixes CVE-2014-3510, which is effectively a repeat of CVE-2014-3470 in
copied code.

Reported by Felix Groebert of the Google Security Team.

ok beck@ miod@
Delta File
+9 -1 lib/libssl/src/ssl/d1_clnt.c
+9 -1 1 file

OpenBSD — sys/dev/pci if_ix.c

Another spot where the VLAN tag doesn't need swapping in the currently
unused TSO code.

ok mikeb@
Delta File
+2 -2 sys/dev/pci/if_ix.c
+2 -2 1 file

OpenBSD — share/man/man8/man8.sparc64 boot_sparc64.8

macro cleanup; ok jmc@ stsp@

OpenBSD — sys/dev/ic hme.c hmevar.h

Garbage collect some bits that were never used.

ok mikeb@
Delta File
+1 -16 sys/dev/ic/hme.c
+1 -5 sys/dev/ic/hmevar.h
+2 -21 2 files

OpenBSD — sys/dev/pci if_alc.c if_ale.c

Fix a long standing bug in MAC statistics register access.  One
additional register was erroneously added in the MAC register set
such that 7 TX statistics counters were wrong.

From FreeBSD

ok mikeb@

OpenBSD — usr.bin/mandoc term.h out.h

remove unneccessary inclusion protection; ok schwarze

OpenBSD — usr.sbin/pkg_add/OpenBSD Delete.pm

default for interactive should match non-interactive.
Pointed out by krw@

OpenBSD — usr.bin/top display.c

All cpus -> N Cpus
"makes sense" theo
Delta File
+2 -2 usr.bin/top/display.c
+2 -2 1 file

OpenBSD — share/man/man4 softraid.4

Document that sparc64 softraid boot only works with 'a' partitions.
Add an Xr to boot_sparc64(8) which has additional important details.
Delta File
+5 -2 share/man/man4/softraid.4
+5 -2 1 file

OpenBSD — etc/etc.sparc64 Makefile.inc

Remove ofwbootfd from sparc64 release dir since nobody will need it.
Requested by deraadt.
Delta File
+3 -3 etc/etc.sparc64/Makefile.inc
+3 -3 1 file

OpenBSD — usr.sbin/npppd/pppoe pppoed.c

Fix typos in comments.

ok jmc, yasuoka
Delta File
+6 -6 usr.sbin/npppd/pppoe/pppoed.c
+6 -6 1 file

OpenBSD — sys/dev/pci if_ix.c

Use dv_xname instead of if_xname to establish our interrupt.  The latter is
still unset when at this point, and some MD variants of pci_intr_establish(9)
make a copy of the string instead of storing a pointer.

Makes vmstat -i properly print the device name on sparc64.

ok mikeb@, deraadt@
Delta File
+2 -3 sys/dev/pci/if_ix.c
+2 -3 1 file

OpenBSD — sys/dev/ic hme.c

rxr ioctl handling.
Delta File
+6 -1 sys/dev/ic/hme.c
+6 -1 1 file

OpenBSD — sys/dev/pci if_vr.c

rxr ioctl handling.
Delta File
+6 -1 sys/dev/pci/if_vr.c
+6 -1 1 file

OpenBSD — usr.bin/mandoc mandocdb.c mansearch.c

Make makewhatis(8) understand .so links to .gz pages.
Drop the FORM_GZ annotation in the mpages table; it is conceptually wrong
because it ought to be in the mlinks table: An uncompressed .so link file
can point to a compressed manual page file and vice versa.
Besides, it is no longer needed because mparse_open() handles it all.
Sprinkle some KNF while here.

OpenBSD — usr.bin/mandoc read.c

Let mparse_readfd() use mparse_open() and mparse_wait()
and let mparse_open() fall back to .gz files
such that .so works even when the target is zipped,
requested by and in part using ideas from <bapt at FreeBSD>.
While here, make sure files are readable before forking,
both for efficiency and for better error reporting.
Delta File
+43 -23 usr.bin/mandoc/read.c
+43 -23 1 file

OpenBSD — share/man/man4 softraid.4, share/man/man8/man8.sparc64 boot_sparc64.8

Manual page updates for sparc64 softraid boot support.

OpenBSD — usr.bin/mandoc read.c main.c

Simplify the mparse_open()/mparse_wait() interface.
Don't bother the user with the PID of the child process,
store it inside the opaque mparse handle.

OpenBSD — sys/arch/sparc64/stand/ofwboot ofdev.c diskprobe.c

Introduce softraid boot support to sparc64 ofwboot.
sparc64 machines should now be able to boot from softraid raid1 and crypto.
Tested on sun blade100, sunfire v240, and sun t1000 ldom guests.
Lots of encouragement from deraadt@

OpenBSD — sys/arch/sparc64/conf ld.script, sys/arch/sparc64/include boot_flag.h

Add a new ELF segment .openbsd.bootdata to the sparc64 kernel.
This can be used to pass boot parameters to the kernel which can't be passed
safely via the Open Firmware interface, such as softraid volume IDs and keys.
The kernel already reads the arguments if available but ofwboot won't provide
them until further changes are committed there.

With support from deraadt, kettenis and matthew.
ok deraadt@

OpenBSD — sys/arch/sparc64/stand/bootblk bootblk.fth genfth.cf

Add softraid support to sparc64 first-level boot blocks.
Written with use of the forth by jedi jsing@
For now this only supports 'a' RAID partitions, no other partition letters.

OpenBSD — sys/arch/sparc64/stand/ofwboot softraid.c softraid.h

Add softraid boot support code files ported by me to sparc64 from amd64.
Not hooked to the build yet.
ok kettenis@

OpenBSD — sys/arch/sparc64/stand/ofwboot Locore.c openfirm.h

Copy some Open Firmware interface functions from the kernel to ofwboot.
Will be needed soon.
ok kettenis@

OpenBSD — sbin/dhclient dispatch.c

Reset ifi->errors after a successful receive_packet(), rather than
incrementing sporadic errors until the limit is exceeded. i.e. only
exit dhclient when enough consecutive errors occur. Tweak error

Don't bother checking interface_status() when receive_packet()
fails. Let other status checks function on their own.
Delta File
+6 -6 sbin/dhclient/dispatch.c
+6 -6 1 file

OpenBSD — usr.bin/mandoc mdoc_validate.c

remove an unreachable warning about .Sm arguments
Delta File
+1 -3 usr.bin/mandoc/mdoc_validate.c
+1 -3 1 file

OpenBSD — regress/usr.bin/mandoc/mdoc/Sm twoarg.in twoarg.out_ascii, usr.bin/mandoc mdoc_macro.c

The .Sm macro accepts at most one argument;
fixing an assertion failure found by jsg@ with afl.

OpenBSD — bin/ed main.c, bin/systrace systrace.c cradle.c

Prefer setvbuf() to setlinebuf() for portability; ok deraadt@

OpenBSD — gnu/usr.bin/perl Makefile.bsd-wrapper

Make caretx a perl dependency, not just miniperl

OK millert@

OpenBSD — gnu/usr.bin/perl/ext/DynaLoader dl_dlopen.xs

Use perl's my_strlcat in DynaLoader

OK millert@

OpenBSD — lib/libc/stdio setvbuf.3

garbage collect .Tn
Delta File
+3 -7 lib/libc/stdio/setvbuf.3
+3 -7 1 file

OpenBSD — sbin/dhclient dispatch.c

'ifi' is successfully calloc'd during initialization or dhclient
exits, so there is no need to constantly check if 'ifi' is NULL.
Similarly 'ifi->bfdesc' is successfully opened during initialization
or dhclient exits, so there is no point in constantly checking if
it has regressed to -1. Finally, no need to check 'ifi->linkstat'
before trying to read a packet. If there is a packet it should just
as well be read immediately rather than waiting for the link to
reappear and confuse things.

No intentional functional change.
Delta File
+6 -21 sbin/dhclient/dispatch.c
+6 -21 1 file

OpenBSD — usr.bin/grep grep.c

Make option string/struct const (since it is...).  I've had this
in my tree for ages.
Delta File
+4 -4 usr.bin/grep/grep.c
+4 -4 1 file

OpenBSD — sys/dev/pci ixgbe.c

The onboard ix(4) interfaces on the SPARC T5 machines don't have a valid MAC
address in their EEPROM.  Use the MAC address given by the "local-mac-address"
Open Firmware property instead.

ok mikeb@, deraadt@
Delta File
+13 -1 sys/dev/pci/ixgbe.c
+13 -1 1 file

OpenBSD — usr.sbin/sysmerge sysmerge.sh sysmerge.8

Drop sysmerge.log ; it used to be handy for batch mode but now the
console output is clear and clean in that mode.

Since /var/tmp is now a symlink to /tmp:
- directly use /tmp
- if modifications were done; at the end of the run:
  - display our backup directory (in case we want to move it to survive a reboot)
  - display where and what files are still left for comparison

discussed with and ok sthen@

OpenBSD — regress/usr.bin/bc t19.c Makefile

comment in Makefile, small tweak in -l test

OpenBSD — usr.bin/dc stack.c

init array field in the proper place, see regress test t27;
from Sebastien Marie
Delta File
+4 -4 usr.bin/dc/stack.c
+4 -4 1 file