Displaying 1 50 of 516,088 commits (0.092s)

OpenBSD — sys/arch/amd64/amd64 pmap.c

Fix a missing include in amd64 pmap.c that resulted in an erroneous memory
map entry being entered in uniprocessor (UP) kernels. Multiprocessor (MP)
kernels not affected.

ok guenther, deraadt
Delta File
+3 -1 sys/arch/amd64/amd64/pmap.c
+3 -1 1 file

OpenBSD — sys/dev/usb uhci.c usbdivar.h

XFER_FREE is not used, ciao.
Delta File
+1 -6 sys/dev/usb/uhci.c
+1 -2 sys/dev/usb/usbdivar.h
+2 -8 2 files

OpenBSD — lib/libc/stdlib malloc.3

clean up verbiage around the calculations; ok ingo jmc otto
Delta File
+6 -6 lib/libc/stdlib/malloc.3
+6 -6 1 file

OpenBSD — lib/libc/stdlib malloc.3

Don't mention old systems where realloc(NULL, n) didn't work as we
don't want to give people the idea that this is non-portable (it
has been present since C89).  OK deraadt@ schwarze@
Delta File
+7 -11 lib/libc/stdlib/malloc.3
+7 -11 1 file

OpenBSD — regress/sys/kern/sosplice/perf Makefile

Add some pkill and sleep to make socket splicing performance tests
more reliable.

OpenBSD — regress/usr.bin/mandoc/mdoc/Bd offset-empty.in offset-empty.out_ascii, regress/usr.bin/mandoc/mdoc/Bl offset.in offset.out_ascii

Major bugsquashing with respect to -offset and -width:
1. Support specifying the .Bd and .Bl -offset as a macro default width;
while here, simplify the code handling the same for .Bl -width.
2. Correct handling of .Bl -offset arguments:  unlike .Bd -offset, the
arguments "left", "indent", and "indent-two" have no special meaning.
3. Fix the scaling of string length -offset and -width arguments in -Thtml.
Triggered by an incomplete documentation patch from bentley@.

OpenBSD — sys/dev softraid.c

muliply to get correct size for free. reported by kspillner
Delta File
+2 -2 sys/dev/softraid.c
+2 -2 1 file

OpenBSD — sys/dev/usb xhci.c

Do not use void * for pointer artithmetics, it's a GNU extension, from
Patrick Wildt.
Delta File
+3 -3 sys/dev/usb/xhci.c
+3 -3 1 file

OpenBSD — sys/dev/pci xhci_pci.c, sys/dev/usb xhci.c xhcivar.h

Do not enable interrupts before attaching usb(4), fix a panic when an
Express Card is plugged with USB devices on it.

While here do not print an unitialized error value if xhci_init() fails,
from Patrick Wildt.

OpenBSD — sys/dev/usb xhci.c

Calculate the Route String when attaching a new device.  This is still
not enough to attach Super Speed devices below USB 3 hubs, but we're
getting there.

While here reset `acten` when re-enqueuing an interrupt transfers.
Delta File
+29 -13 sys/dev/usb/xhci.c
+29 -13 1 file

OpenBSD — regress/usr.bin/mandoc Makefile.inc

for convenience, let obj-clean imply clean

OpenBSD — sys/dev softraid_crypto.c

zero the correct size, then free it.
Delta File
+4 -4 sys/dev/softraid_crypto.c
+4 -4 1 file

OpenBSD — sys/dev softraid_crypto.c softraid.c

add some sizes to free()
Delta File
+13 -16 sys/dev/softraid_crypto.c
+11 -17 sys/dev/softraid.c
+24 -33 2 files

OpenBSD — lib/libevent kqueue.c event.c

Fix whitespace errors in libevent.
OK nicm@
Delta File
+15 -15 lib/libevent/kqueue.c
+11 -11 lib/libevent/event.c
+10 -10 lib/libevent/log.c
+9 -9 lib/libevent/event.h
+6 -6 lib/libevent/buffer.c
+3 -3 lib/libevent/event_tagging.c
+9 -9 3 files not shown
+63 -63 9 files

OpenBSD — usr.bin/nc netcat.c

my mistake. we already did increase buffers to 16k; increasing to 64k
would be the next stage of embiggening. restore 16k.
Delta File
+2 -2 usr.bin/nc/netcat.c
+2 -2 1 file

OpenBSD — usr.bin/nc netcat.c

rework the poll loop to poll in both directions so it doesn't get stuck
if one pipe stalls out. from a diff by Arne Becker.
(buffer size left alone for now)
Delta File
+211 -47 usr.bin/nc/netcat.c
+211 -47 1 file

OpenBSD — usr.bin/ftp fetch.c

use ressl constant; from Jan Klemkow
Delta File
+2 -2 usr.bin/ftp/fetch.c
+2 -2 1 file

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

mandoc.1: fix a macro error in previous
main.c: add -K to usage() and wrap nicely

ok schwarze

OpenBSD — lib/libevent select.c

The fdsz and n_events variables contain unsigned values that are
derived from size_t and passed to functions as size_t parameters.
Change them from int to size_t to avoid compiler warnings.
OK doug@ nicm@
Delta File
+6 -6 lib/libevent/select.c
+6 -6 1 file

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

support UTF-8 and ISO-8859-1 input by integrating modified parts
of kristaps@' version of the preconv(1) utility into mandoc(1);
positive feedback from bentley@ and no concern raised when shown on tech@

OpenBSD — lib/libevent event.c signal.c

After removing all the #ifdef, the wrappers in evutil are rather
useless.  Let libevent call the libc functions directly.
OK nicm@
Delta File
+16 -17 lib/libevent/event.c
+12 -14 lib/libevent/signal.c
+3 -4 lib/libevent/log.c
+2 -3 lib/libevent/buffer.c
+2 -3 lib/libevent/select.c
+2 -3 lib/libevent/evbuffer.c
+7 -9 4 files not shown
+44 -53 10 files

OpenBSD — lib/libevent kqueue.c

Remove workaround for Mac OS X kqueue bug.
OK nicm@
Delta File
+1 -22 lib/libevent/kqueue.c
+1 -22 1 file

OpenBSD — lib/libevent event_tagging.c

Do not cast a (const void *) pointer to (void *) to avoid a warning.
OK nicm@
Delta File
+2 -2 lib/libevent/event_tagging.c
+2 -2 1 file

OpenBSD — sbin/mount_vnd mount_vnd.c

dial down the direness of the warning; vnd isn't going anywhere yet
Delta File
+3 -3 sbin/mount_vnd/mount_vnd.c
+3 -3 1 file

OpenBSD — regress/usr.sbin/syslogd args-prog.pl Syslogd.pm

Add a test the checks the syslogd !prog !!prog !* feature.

OpenBSD — sbin/pfctl pfctl_parser.c parse.y

MFC pfctl fix (parse.y 1.641, pfctl_parser.c 1.300, pfctl_parser.h 1.104)
-----
Fixup incorrect expansion of the networking mask for dynamic interface
specifications under certain circumstances resulting in potentially
elevated access permissions for IPv6 traffic.  Reported by sthen@;
ok henning benno sthen
-----

OpenBSD — sbin/pfctl pfctl_parser.c parse.y

MFC pfctl fix (parse.y 1.641, pfctl_parser.c 1.300, pfctl_parser.h 1.104)
-----
Fixup incorrect expansion of the networking mask for dynamic interface
specifications under certain circumstances resulting in potentially
elevated access permissions for IPv6 traffic.  Reported by sthen@;
ok henning benno sthen
-----

OpenBSD — sbin/pfctl pfctl_parser.c parse.y

MFC pfctl fix (parse.y 1.641, pfctl_parser.c 1.300, pfctl_parser.h 1.104)
-----
Fixup incorrect expansion of the networking mask for dynamic interface
specifications under certain circumstances resulting in potentially
elevated access permissions for IPv6 traffic.  Reported by sthen@;
ok henning benno sthen
-----

OpenBSD — sbin/dhclient dhclient.c convert.c

Calling a function to htonl() a constant 32-bit value into a stack
variable and memcpy() that value into 4 bytes of malloc()'d space
seems roundabout.

Just memcpy() a four byte constant string into the malloc()'d space
as required and kill putULong(). No functional change.

OpenBSD — regress/sbin/route rttest1.ok rttest10.ok

Update test outputs to reflect the fact that routes to loopback addresses
are plain local routes.

OpenBSD — sbin/fsck_ext2fs inode.c

remove ugly return value casts
Delta File
+3 -5 sbin/fsck_ext2fs/inode.c
+3 -5 1 file

OpenBSD — sbin/iked pfkey.c, sbin/isakmpd pf_key_v2.c

convert simple cases of select() to poll()
ok doug
Delta File
+9 -21 sbin/isakmpd/pf_key_v2.c
+8 -17 sbin/iked/pfkey.c
+17 -38 2 files

OpenBSD — usr.sbin/rarpd rarpd.c

delete obscure workaround for a bug in SunOS.
(But leave the VMS workaround intact)
Delta File
+1 -9 usr.sbin/rarpd/rarpd.c
+1 -9 1 file

OpenBSD — usr.sbin/cron cron.c externs.h

use poll() instead of the select malloc/free dance which was used to
avoid fd_set overflows.

Back when I was young, I fixed these throughout the tree, and the world
continued on ignoring the issue...  The malloc/free dance was used because
poll() was not very portable yet.  Now poll() is commonplace, and we should
use this safer API.

ok guenther millert
Delta File
+6 -9 usr.sbin/cron/cron.c
+2 -1 usr.sbin/cron/externs.h
+8 -10 2 files

OpenBSD — include/rpc rpc_msg.h svc.h

Add prototypes for xdr_{accepted,rejected}_reply() and svcudp_enablecache()
(Both NetBSD and FreeBSD provide these prototypes)

ok millert@
Delta File
+4 -1 include/rpc/rpc_msg.h
+2 -1 include/rpc/svc.h
+6 -2 2 files

OpenBSD — usr.sbin/rdate ntp.c

use poll() instead of select(), thereby removing the fd_set malloc/free
dance which was used to avoid fd_set overflow with high file descriptor
values.
ok doug
Delta File
+11 -24 usr.sbin/rdate/ntp.c
+11 -24 1 file

OpenBSD — regress/usr.bin/mandoc/char/unicode named.out_ascii named.in

test various recent improvements of special character rendering

OpenBSD — usr.bin/mandoc chars.in

Some fine tuning of console rendering of named special characters.
Correct ASCII rendering: \(lb \(<> \(sd
Make ASCII rendering agree with groff, using backspace overstrike:
\(da \(ua \(dA \(uA \(fa \(c* \(c+ \(ib \(ip \(/_ \(pp \(is \(dd \(dg
Delta File
+20 -20 usr.bin/mandoc/chars.in
+20 -20 1 file

OpenBSD — usr.sbin/inetd inetd.c Makefile

replace the use of select and hand rolled deferral of signal handling
with libevent.

this has been in snaps for a while without any negative (or positive)
feedback.

review and tweaks by bluhm@ nicm@
ok bluhm@ deraadt@
Delta File
+72 -209 usr.sbin/inetd/inetd.c
+3 -1 usr.sbin/inetd/Makefile
+75 -210 2 files

OpenBSD — usr.bin/mandoc term.c html.c

In terminal output, unify handling of Unicode and numbered character
escape sequences just like it was earlier implemented for -Thtml.
Do not let control characters other than ASCII 9 (horizontal tab)
propagate to the output, even though groff allows them; but that
really doesn't look like a great idea.

Let mchars_num2char() return int such that we can distinguish invalid \N
syntax from \N'0'.  This also reduces the danger of signed char issues
popping up.

OpenBSD — regress/sbin/pfctl pf102.in pf102.ok

add a regression test for the pfctl parser bug recently fixed by
mikeb@ in pfctl/parse.y rev 1.641.
with feedback from mikeb sthen and henning

OpenBSD — usr.bin/mandoc term.c term_ascii.c

In -Tascii mode, print "<?>" only for Unicode escapes of unknown
representation, not for character escapes with unknown names.
According to groff, the latter produce no output, and we now warn
about them.

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

Make the character table available to libroff so it can check the
validity of character escape names and warn about unknown ones.
This requires mchars_spec2cp() to report unknown names again.
Fortunately, that doesn't require changing the calling code because
according to groff, invalid character escapes should not produce
output anyway, and now that we warn about them, that's fine.
Delta File
+20 -18 usr.bin/mandoc/main.c
+4 -22 usr.bin/mandoc/html.c
+11 -9 usr.bin/mandoc/term_ascii.c
+8 -7 usr.bin/mandoc/term_ps.c
+7 -8 usr.bin/mandoc/main.h
+10 -3 usr.bin/mandoc/roff.c
+31 -35 11 files not shown
+91 -102 17 files

OpenBSD — usr.bin/mandoc mandoc.c chars.c

Tighten Unicode escape name parsing.
Accept only 0xXXXX, 0xYXXXX, 0x10XXXX with Y != 0.
This simplifies mchars_num2uc().
Delta File
+10 -5 usr.bin/mandoc/mandoc.c
+4 -9 usr.bin/mandoc/chars.c
+14 -14 2 files

OpenBSD — sys/netinet in_pcb.c

Select a proper source address when the bound address is
INADDR_BROADCAST the same as INADDR_ANY.

ok mpi
Delta File
+5 -4 sys/netinet/in_pcb.c
+5 -4 1 file

OpenBSD — sys/net pipex.c

Fix pipex(4) to return multicast packets to the caller so that npppd can
handle them.  Also use M_NOWAIT for copying a multicast packet.
Delta File
+22 -3 sys/net/pipex.c
+22 -3 1 file

OpenBSD — sys/net pipex.c

Initialize the lists of the hash tables and the virtual pipex
sesssion for multicast in proper way.
Delta File
+8 -5 sys/net/pipex.c
+8 -5 1 file

OpenBSD — sys/net pipex.c

Fix pipex(4) to initialize DF bit in IP header for L2TP message.
Without this, the packets larger than the minimum MTU on the routes to
the L2TP peer had been dropped.
Delta File
+2 -1 sys/net/pipex.c
+2 -1 1 file

OpenBSD — lib/libssl/src/crypto/aes aes_x86core.c, lib/libssl/src/crypto/bf bf_enc.c bf_ofb64.c

deregister; no binary change
ok jsing@ miod@

OpenBSD — usr.sbin/apmd apmd.c

Remove now useless defines

ok tedu@
Delta File
+1 -6 usr.sbin/apmd/apmd.c
+1 -6 1 file