Displaying 1 50 of 171,074 commits (0.017s)

OpenBSD — sys/arch/hppa64/include atomic.h

bring in dlg's fix from rev 1.10 of the equivalent hppa file:

make __cpu_simple_lock provide serialisation of the critical section.

that in turn makes atomic sequences actually atomic, which in turn
means the refcnt api asserts wont fire erronously when if_get and
if_put are actually used correctly.
Delta File
+8 -8 sys/arch/hppa64/include/atomic.h
+8 -8 1 file

OpenBSD — usr.sbin/smtpd smtpd-api.h

add PROC_QUEUE_MESSAGE_UNCORRUPT to smtpd-api.h, needed by privsep queues
Delta File
+2 -1 usr.sbin/smtpd/smtpd-api.h
+2 -1 1 file

OpenBSD — sys/net80211 ieee80211_input.c

Log frames which fall outside the BlockAack window in dmesg if the
interface debug flag is set (enabled with: ifconfig iwn0 debug).
Shows the frame's sequence number and the current BA window.
I'm adding this for diagnosis, just in case it will be needed to make
future decisions about tuning the heuristic which works around network
stalls caused by such frames.
Delta File
+8 -1 sys/net80211/ieee80211_input.c
+8 -1 1 file

OpenBSD — games/snake snake.c

- Remove parameter fd from snscore() since it's never used
- And while here, fwrite(3) returns size_t whereas nscores is an int, so cast
nscores to u_int. This is a false positive, but silences a compiler warning
with -Wextra -pedantic

tb@ : "Looks ok to me" after suggestion from him
Delta File
+7 -7 games/snake/snake.c
+7 -7 1 file

OpenBSD — usr.sbin/smtpd smtpctl.c

rename variable sun to s_un to ease portability

diff from Freddy DISSAUX, ok gilles@, jung@, sunil@, millert@
Delta File
+6 -6 usr.sbin/smtpd/smtpctl.c
+6 -6 1 file

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

tweak names
set LC_ALL everywhere since it's now easy

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

drop privs prior to running ftp
okay sthen@

OpenBSD — usr.bin/vi/docs/USD.doc/vi.man vi.1

avoid special characters; from michael reed

OpenBSD — sys/arch/hppa/include atomic.h

make __cpu_simple_lock provide serialisation of the critical section.

that in turn makes atomic sequences actually atomic, which in turn
means the refcnt api asserts wont fire erronously when if_get and
if_put are actually used correctly.

such embarrassment.

reported by landry@ who also let me debug on the affected machines
ok jmatthew@
Delta File
+8 -8 sys/arch/hppa/include/atomic.h
+8 -8 1 file

OpenBSD — usr.bin/ssh myproposal.h

turn off more old crypto in the client: hmac-md5, ripemd, truncated
HMACs, RC4, blowfish. ok markus@ dtucker@
Delta File
+5 -16 usr.bin/ssh/myproposal.h
+5 -16 1 file

OpenBSD — usr.bin/hexdump parse.c

Replace a three step string duplication with strndup().

ok and with input from tb@
Delta File
+3 -4 usr.bin/hexdump/parse.c
+3 -4 1 file

OpenBSD — usr.bin/hexdump display.c parse.c

For a long time, nomem() has been a wrapper for err(1, NULL) and
meanwhile emalloc() has turned into calloc() by doing malloc + memset.
Delete them and Use the libc functions directly instead. I've been
running with this diff for ages and was reminded of it by a similar
suggestion from mmcc@ and by recent diffs from Michal Mazurek.

ok mmcc@

OpenBSD — sys/nfs nfs_node.c

sync a function's comment with its signature

ok tedu@, with a slight tweak
Delta File
+3 -4 sys/nfs/nfs_node.c
+3 -4 1 file

OpenBSD — usr.sbin/rtadvd rtadvd.c

another typo
Delta File
+2 -2 usr.sbin/rtadvd/rtadvd.c
+2 -2 1 file

OpenBSD — usr.sbin/rtadvd rtadvd.c rtadvd.h

Kill code to send unicast packets which never got enabled.

and get rid of pointless memory allocations.

ok bluhm@

OpenBSD — usr.bin/ssh readconf.c

don't attempt to percent_expand() already-canonicalised addresses,
avoiding unnecessary failures when attempting to connect to scoped
IPv6 addresses (that naturally contain '%' characters)
Delta File
+6 -3 usr.bin/ssh/readconf.c
+6 -3 1 file

OpenBSD — usr.sbin/rtadvd rtadvd.c config.c

Kill trailing whitespace.

OpenBSD — usr.sbin/rtadvd config.c rtadvd.h

typos

OpenBSD — usr.sbin/rtadvd dump.c

Print MAX addresses padded with a leading zero.
Delta File
+3 -3 usr.sbin/rtadvd/dump.c
+3 -3 1 file

OpenBSD — sys/kern subr_disk.c

"exceeds past the end" -> "extends past the end" in comment.
Delta File
+2 -2 sys/kern/subr_disk.c
+2 -2 1 file

OpenBSD — usr.bin/hexdump display.c

Fix a bug that caused nothing to be skipped when skipping exactly the
number of bytes present in a regular file was requested.
Bug reported by a user called "tdm" on the comstyle #openbsd IRC channel.
Patch written by Michal Mazurek <akfaew at jasminek dot net>.
OK jung@ millert@ czarkoff@
Delta File
+2 -2 usr.bin/hexdump/display.c
+2 -2 1 file

OpenBSD — usr.bin/hexdump hexdump.c

remove main() declaration

from Michal Mazurek
Delta File
+1 -3 usr.bin/hexdump/hexdump.c
+1 -3 1 file

OpenBSD — lib/libc/time strftime.3

new sentence, new line;
Delta File
+3 -2 lib/libc/time/strftime.3
+3 -2 1 file

OpenBSD — lib/libc/time strptime.3 strftime.3

mention mktime, since that is where struct tm is described. ok schwarze

OpenBSD — share/man/man8 ssl.8

sslv3 has been removed;

prompted by a mail from jiri navratil
help/ok sthen
Delta File
+5 -6 share/man/man8/ssl.8
+5 -6 1 file

OpenBSD — sys/arch/amd64/amd64 pmap.c, sys/arch/amd64/include pmap.h

Set EPT bits of guest pages in pmap_enter instead of doing it
after an uvm_fault: uvm_fault maps in neighboring pages of
the faulting page. We want EPT bits set for those as soon as
possible as well. This avoids additional EPT violations
causing further uvm_faults when the guest accesses the
neighboring pages.

discussion with and ok mlarkin@

OpenBSD — distrib/macppc/ramdisk install.md

If manual disklabel editing is requested during install, don't emit
verbiage explaining what disklabels are.

If you don't know, you should be using (A)uto!

ok rpe@ halex@
Delta File
+3 -13 distrib/macppc/ramdisk/install.md
+3 -13 1 file

OpenBSD — distrib/alpha/common install.md, distrib/amd64/common install.md

If manual disklabel editing is requested during install, don't emit
verbiage explaining what disklabels are.

If you don't know, you should be using (A)uto!

ok rpe@ halex@

OpenBSD — sys/dev video.c

Convert to uiomove. From Martin Natano.
Delta File
+6 -8 sys/dev/video.c
+6 -8 1 file

OpenBSD — bin/df ffs_df.c ext2fs_df.c

remove needless headers

ok tb@, from Michal Mazurek
Delta File
+2 -3 bin/df/ffs_df.c
+1 -3 bin/df/ext2fs_df.c
+1 -2 bin/df/df.c
+4 -8 3 files

OpenBSD — usr.bin/ssh packet.c clientloop.c

refactor activation of rekeying

This makes automatic rekeying internal to the packet code (previously
the server and client loops needed to assist). In doing to it makes
application of rekey limits more accurate by accounting for packets
about to be sent as well as packets queued during rekeying events
themselves.

Based on a patch from dtucker@ which was in turn based on a patch
Aleksander Adamowski in bz#2521; ok markus@

OpenBSD — lib/libc/locale mbrtowc.3

Align with reality, and with POSIX:  For this particular function,
incomplete characters are not an error, do not throw EILSEQ, and
are not supposed to.
OK millert@
Delta File
+3 -7 lib/libc/locale/mbrtowc.3
+3 -7 1 file

OpenBSD — sys/net80211 ieee80211_input.c ieee80211_node.h

Stop requiring a BlockAck session timeout (again), and just use it if the AP
is asking for it. This timeout should not be required anymore now that krw@'s
hangs are fixed by working around APs which make sequence numbers jump about.

OpenBSD — sys/net80211 ieee80211_input.c ieee80211_node.h

Work around buggy APs which occasionally emit sequence numbers much higher
than the current 11n BlockAck window. The previous code would be fooled into
moving the window forward and then drop packets until their sequence numbers
catch up with the new window, which can take several minutes.
Fixes traffic stalls observed with Broadcom APs.
ok krw@ tb@

OpenBSD — sys/dev/pci if_iwn.c

Fix off-by-one in loop termination condition.

ok stsp@
Delta File
+2 -2 sys/dev/pci/if_iwn.c
+2 -2 1 file

OpenBSD — sys/net80211 ieee80211_input.c

Hide some excessive net80211 debug printfs behind ieee80211_debug >= 2.
Delta File
+3 -3 sys/net80211/ieee80211_input.c
+3 -3 1 file

OpenBSD — usr.sbin/rtadvd log.h rtadvd.c

Mark a few others functions as __dead; ok bluhm@

OpenBSD — etc/rc.d dvmrpd

Remove setproctitle() for the parent process. Because rc.d(8) uses process
titles (including flags) to distinguish between daemons, this makes it
possible to manage multiple copies of a daemon using the normal infrastructure
by symlinking rc.d scripts to a new name. ok jung@ ajacoutot@,
missed in previous commit noticed after re-checking following report in bgpd.
Delta File
+1 -2 etc/rc.d/dvmrpd
+1 -2 1 file

OpenBSD — etc/rc.d bgpd

Remove setproctitle() for the parent process. Because rc.d(8) uses process
titles (including flags) to distinguish between daemons, this makes it
possible to manage multiple copies of a daemon using the normal infrastructure
by symlinking rc.d scripts to a new name. ok jung@ ajacoutot@,
missed in previous commit, problem reported by mxb/alumni/chalmers/se.
Delta File
+1 -3 etc/rc.d/bgpd
+1 -3 1 file

OpenBSD — lib/libc/stdlib strtonum.3

compare pointer to NULL in example code
Delta File
+3 -3 lib/libc/stdlib/strtonum.3
+3 -3 1 file

OpenBSD — sys/dev ipmi.c

Comment.
Delta File
+2 -1 sys/dev/ipmi.c
+2 -1 1 file

OpenBSD — sys/dev ipmi.c

Remove a too strict assertion.
Delta File
+2 -3 sys/dev/ipmi.c
+2 -3 1 file

OpenBSD — usr.sbin/dhcpd memory.c

avoid a use after free when parsing address ranges from a config
ok krw@
Delta File
+2 -1 usr.sbin/dhcpd/memory.c
+2 -1 1 file

OpenBSD — sys/ntfs ntfs_subr.c

Convert to uiomove. While there, use size_t consistently for
variables 'left' and 'tocopy' and adapt printf and DPRINTF format
strings accordingly.

From Martin Natano.
Delta File
+31 -32 sys/ntfs/ntfs_subr.c
+31 -32 1 file

OpenBSD — usr.sbin/dhcrelay dhcpd.h bpf.c

Eliminate #include inside *.h files and include only needed headers in
each *.c file.

Inspired by mention of header silliness by Edgar Pettijohn and mmcc@
on tech@.

OpenBSD — usr.sbin/dhcpd dhcpd.h sync.c

Eliminate #include inside *.h files and include only needed headers in
each *.c file.

Inspired by mention of header silliness by Edgar Pettijohn and mmcc@
on tech@.
Delta File
+1 -32 usr.sbin/dhcpd/dhcpd.h
+13 -18 usr.sbin/dhcpd/sync.c
+25 -5 usr.sbin/dhcpd/dispatch.c
+19 -5 usr.sbin/dhcpd/bpf.c
+20 -3 usr.sbin/dhcpd/dhcpd.c
+17 -2 usr.sbin/dhcpd/icmp.c
+229 -25 17 files not shown
+324 -90 23 files

OpenBSD — sbin/dhclient dhcpd.h dispatch.c

Eliminate #include inside *.h files and include only needed headers in
each *.c file.

Inspired by mention of header silliness by Edgar Pettijohn and mmcc@
on tech@.
Delta File
+1 -34 sbin/dhclient/dhcpd.h
+24 -4 sbin/dhclient/dispatch.c
+24 -4 sbin/dhclient/dhclient.c
+20 -5 sbin/dhclient/kroute.c
+19 -3 sbin/dhclient/conflex.c
+19 -3 sbin/dhclient/bpf.c
+97 -17 7 files not shown
+204 -70 13 files

OpenBSD — sys/tmpfs tmpfs_subr.c tmpfs_vnops.c

Convert to uiomove. From Martin Natano.

OpenBSD — sys/dev/pci/drm/radeon radeon_bios.c

Enable the code that reads the BIOS from the ACPI VFCT table on platforms
with ACPI.

ok jsg@

OpenBSD — usr.bin/write write.1

Explain why we intentionally violate POSIX here, to prevent people from
being sad that they can't use UTF-8 in write(1), and to prevent that
they waste their time trying to fix it.
While here, fix some broken escaping.
OK jmc@ martijn@
Delta File
+6 -5 usr.bin/write/write.1
+6 -5 1 file