1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00
Commit Graph

169135 Commits

Author SHA1 Message Date
zhuk
ee46766511 Zap extraneous SYNOPSIS sections.
The gettytab(5) and termcap(5) get FILES, others don't need anything.

With input from & okay schwarze@
2016-01-08 20:26:54 +00:00
mestre
747bd22203 ANSIfy sail(6) plus some cleanup
OK tb@
2016-01-08 20:26:33 +00:00
mestre
96822cf7b9 Headers clean up 2016-01-08 20:23:54 +00:00
mestre
44d3f3fb69 Remove unnecessary headers an sort 2016-01-08 20:19:06 +00:00
mestre
ab8b84f49d Straightforward headers cleanup 2016-01-08 20:15:15 +00:00
chrisz
0173e407e1 Add missing space in "Delivered-to:%s\n" header.
OK sunil@
2016-01-08 19:31:29 +00:00
mestre
211c418389 ANSIfy monop(6)
OK tb@
2016-01-08 18:20:33 +00:00
mestre
91d732828b Headers cleanup and removal where suitable
OK tb@
2016-01-08 18:19:47 +00:00
mestre
56f9a7dc4a ANSIfy mille(6)
OK tb@
2016-01-08 18:09:59 +00:00
mestre
182ed36cc5 Headers cleanup and also the following:
mille.h:
#define CTRL locally, which is used by move.c and misc.c, to avoid including
termios.h or sys/ttydefaults.h where it's actually defined

varpush.c:
Change _PATH_DEVNULL to "/dev/null" since other systems may not have it defined
but also avoids including <paths.h>

Included a few sugestions from tb@ who also gave his OK
2016-01-08 18:05:58 +00:00
schwarze
30e5ee0603 Delete the redundant "nchild" member of struct roff_node, replacing
most uses by one, a few by two pointer checks, and only one by a
tiny loop - not only making data smaller, but code shorter as well.

This gets rid of an implicit invariant that confused both static
analysis tools and human auditors.  No functional change.
2016-01-08 17:48:04 +00:00
deraadt
e94523bc71 sync 2016-01-08 17:34:28 +00:00
jcs
74a4d65524 redefine 3 UHID_* vars that moved 2016-01-08 16:59:33 +00:00
jcs
9b8ad5878c pull in dev/hid/hid.h for moved HIO_* vars 2016-01-08 16:57:26 +00:00
jcs
8a8338e368 protect structs in hid.h with #ifdef _KERNEL, to allow inclusion in
libusbhid
2016-01-08 16:55:32 +00:00
ratchov
190b46731f Fix changes that last commit undid by mistake, sorry. 2016-01-08 16:22:09 +00:00
ratchov
26308fb1dc Make code fit in 80 columns, remove trailing spaces & tabs. 2016-01-08 16:17:31 +00:00
deraadt
758f5c0227 sync 2016-01-08 16:00:16 +00:00
ratchov
ea4468e3e9 move code to add a midi port in a new mkport() routine 2016-01-08 15:55:05 +00:00
jcs
8a83145e2c Move HID support files out of dev/usb into new dev/hid directory
These files aren't USB-specific and were used by the previous
Bluetooth implementation, and will be used by the upcoming
HID-over-i2C implementation

ok deraadt
previous version ok kettenis and mpi
2016-01-08 15:54:12 +00:00
schwarze
dd978576b3 Prefer warn(3) over perror(3) at the few places where it was used.
It is useful to see the program name.
Suggested by Christos Zoulas (NetBSD).
2016-01-08 15:01:58 +00:00
reyk
ff8eeb3fa4 mikeb@ doesn't like RCS ids, so I add the OpenBSD one for him. 2016-01-08 14:59:37 +00:00
ratchov
b9b781a084 Make mkopt() return NULL on failure 2016-01-08 13:56:33 +00:00
mpi
f97093e3a2 Get rid of the arp and revarp input queues.
Packets of types ARP and REVARP are now processed in the softnet task,
directly from ether_input() and without holding the KERNEL_LOCK.

Tested by many, ok dlg@
2016-01-08 13:53:24 +00:00
tb
95d0ce2685 add missing 'void'
ok mestre@
2016-01-08 13:40:05 +00:00
tb
8a9ce47a2b Structural integrity hasn't improved in over twenty years.
ok mestre@
2016-01-08 13:33:42 +00:00
ratchov
a78786c809 Unbreak support for multiple -L options. 2016-01-08 13:32:17 +00:00
ratchov
f7e5b9455d don't call unlink() to delete socket as this would require cpath 2016-01-08 13:28:08 +00:00
ratchov
640e693513 No need to include sys/queue.h 2016-01-08 13:19:34 +00:00
schwarze
9b414e5525 Next step in UTF-8 support:
1. Improve all functions involving words by allowing non-ASCII
characters to be part of words.
2. Allow insertion of non-ASCII characters without screwing up the
display, by backing up to the start byte after inserting a continuation
byte, and starting to re-print there.
3. Fix forward movement which i didn't get quite right in my previous
commit: Always advance to a start byte, never to a final continuation
byte, or the next insertion would split the character in the middle.

OK mpi@
2016-01-08 13:17:57 +00:00
ratchov
a447b73f63 Make listen_new_xxx() routines return NULL on failure and check the
returned value wheneverer they are called.
2016-01-08 13:14:11 +00:00
ratchov
babe36e98e On programming error, flush log buffer and abort() rather than
calling exit().
2016-01-08 13:09:42 +00:00
reyk
6bde4a5847 Keep the pledge of the vmm and vm processes disabled for now as long
as there is some more expected progress in the kernel interface.  It
can be tested, and should work, with the previous kernel commit of the
"vmm" pledge, but is not called.
2016-01-08 11:28:05 +00:00
mpi
5efa9773d8 Work around buggy zero-length packets produced by the DP83816A.
From Nathanael Rensen, ok dlg@
2016-01-08 11:23:30 +00:00
reyk
8bc79b2370 Add "vmm" pledge to allow restricted ioctl access to /dev/vmm.
This will allow to pledge vmd(8)'s vmm and vm processes, so that VMs
themselves run "sandboxed", including their host-side virtio layer.
It will remain disabled for now (in userland) to not get into the way
of ongoing development and upcoming changes in vmd and the ioctl
interface.

OK mlarkin@ deraadt@ "kernel side in, but not the callers in userland"
2016-01-08 11:20:58 +00:00
ratchov
cadb423773 Use unorderd list to store sub-device configuration (we don't use
order anymore). No behaviour change.
2016-01-08 10:54:07 +00:00
ratchov
bdf6eb58f2 remove redundant debug message 2016-01-08 10:50:26 +00:00
ratchov
753b38d141 Don't calculate clock deltas is there are no time-outs. Removes (harmless)
warnings about out-of-bounds clock deltas.
2016-01-08 10:44:15 +00:00
jmc
48e0dafc50 various tweaks; 2016-01-08 10:20:05 +00:00
mpi
9010a3cbbe Enable uonerng(4) where ualea(4) is already present. 2016-01-08 09:48:41 +00:00
mpi
0667ff19da uonerng(4) a driver for the Moonbase Otago OneRNG, from Devin Reade.
ok deraadt@
2016-01-08 09:36:59 +00:00
mpi
b74ca2dbee regen 2016-01-08 09:31:57 +00:00
mpi
4e2359d49e OpenMoko OneRNG, from Devin Reade. 2016-01-08 09:31:32 +00:00
stefan
08891ec3bf Must set MAX_PORTS to 65536, since we assign to
ioports_map[VMM_PCI_IO_BAR_END (= 65535)]. Fixes an off-by-one.

ok mlarkin@, reyk@
2016-01-08 08:12:21 +00:00
stefan
bdaf925e42 Use off_t to store the offset we want to access the NVRAM at
and check that is valid. Ensures that NVRAM is accessed at
sensible offsets.

Convert i386/nvram.c to uiomove() while there.

Diff from Martin Natano, thanks!

ok kettenis@, deraadt@
2016-01-08 08:00:12 +00:00
stefan
5547a3bd6e Use uiomove() instead of uiomovei().
Diff from Martin Natano, thanks!

ok kettenis@, deraadt@
2016-01-08 07:54:02 +00:00
jmc
5c18a548d3 tweak; from julian hsiao 2016-01-08 07:43:38 +00:00
guenther
8144d7f0d0 On the recvmsg() side, cmsgs are in mbuf chains, not a contiguous buffer.
ktrace each cmsg instead of reading beyond the end of the first cmsg.

problem report and testing by abieber@
ok millert@ deraadt@
2016-01-08 05:50:08 +00:00
visa
75c26c4d33 Make sure the new rendezvous state is visible to other CPUs before
sending IPIs. Without this, a rendezvous can fail if write buffering is
enabled on octeon.
2016-01-08 05:26:25 +00:00
schwarze
723ae0ef17 Simplify the mparse_open() interface.
Just return the file descriptor or -1 on error;
there is just one kind of error anyway.
Suggested by Christos Zoulas (NetBSD).
2016-01-08 02:53:09 +00:00