summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-11-21The drm irq stuff isn't actually used on OpenBSD. Using the PCI deviceMark Kettenis
interrupt line register as the irq number doesn't really work as the contents of that register might be 0, and the code has checks for non-zero irq numbers in places. Insteadmake drm_dev_to_irq() return -1, which is an obviously bogus, but non-zero value. This should fix inteldrm(4) on recent Apple hardware.
2015-11-21Make this work with 64-bit memory BARs such as those found on the newMark Kettenis
pcengines APU. ok deraadt@
2015-11-21Partial revert of revision 1.26:Ingo Schwarze
Do *not* install the CMS_* manuals for now given that the code is currently disabled. Cluestick applied by jsing@.
2015-11-21better fixes for running tail without -f. from Martijn van DurenTed Unangst
2015-11-21Once again, fix the license text. After many years, we just cannotReyk Floeter
get rid of the "LOSS OF MIND" joke. Haha. We keep on removing it and it shows up again because it accidentally gets synced from somewhere else. bgpd and ospfd don't have it anymore, but their offsprings still carry it. If you see it, remove it, and, in the OpenBSD ISC case, use the original text from /usr/share/misc/license.template. All authors agree.
2015-11-21remove fancy null check function in favor of checking for null.Ted Unangst
from Ricardo Mestre
2015-11-21change type of yy_size_t back to int for now. we have some prebuiltTed Unangst
lexers under gnu/ that define it this way, leading to badness. fuller assessment and repairs probably forthmcoming. discovered by deraadt on BE64 architectures (sparc64). ok deraadt
2015-11-21While here, fix two size format string warnings.Reyk Floeter
2015-11-21Move local logging functions to util.c and copy log.c from iked. NowReyk Floeter
a copy of the same log.c file is shared by relayd, httpd, iked, and snmpd. No functional changes.
2015-11-21Move local logging functions to util.c (which is shared with ikectl),Reyk Floeter
sync log.c with relayd and httpd - all three daemons are using a copy of the same file now. Nevertheless, adding "extern int debug/verbose" in util.c is not super nice but helps for now. No functional change.
2015-11-21add "getpw" promise to calendar(1) (in doall case only)Sebastien Marie
used with -a in order to iterate on all users using getpwent(3). ok matthieu@ pascal@
2015-11-21Move local logging functions into httpd.c, and sync log.c with relayd -Reyk Floeter
both daemons are now sharing the same file. No functional changes.
2015-11-21Move local logging functions from log.c to new file util.c (that isReyk Floeter
also shared with relayctl). This allows us to unify common log.c with other daemons. It also clarifies the Copyright: log.c is by Henning, relayd's additions were from me. No functional or code changes, but it will make future updates easier.
2015-11-21Retire ml_requeue(9) and mq_requeue(9).Martin Pieuchot
As Kenjiro Cho pointed out it is very hard to cancel a dequeue operation for some queueing disciplines when such it keeps some internal states. As you can see, APIs can also Live Fast & Die Young. ok dlg@
2015-11-21Add a comment after every #endifMartin Pieuchot
requested by sashan@
2015-11-21Use if_get() rather than dereferencing rt_ifp directly.Martin Pieuchot
Inputs from and ok florian@, ok sthen@, visa@, sashan@
2015-11-21Use if_get() rather than dereferencing rt_ifp directly.Martin Pieuchot
ok sthen@, visa@, sashan@, florian@
2015-11-21Prevent disabling vmm mode if a VM is still running.Martin Pieuchot
Return EAGAIN in this case: # vmmctl -d vmmctl: disable VMM command failed (35) - Resource temporarily unavailable ok mlarkin@
2015-11-21Do not create a VM if vmm mode hasn't been enable.Martin Pieuchot
Currently one MUST do "vmmctl -e" before creating a vm with "vmm -S ...". Lately this could be done automagically by vmd(8) but the kernel should not allow things that wont fly. While here, disable vmm mode in error path if at least one of the CPUs failed to enable it. ok mlarkin@
2015-11-21Do not use boolean_t outside of /sys/uvmMartin Pieuchot
ok mlarkin@
2015-11-21dont check IFF_OACTIVE to see if the port is busy.David Gwynne
dont check if its busy at all, actually. fine with reyk@
2015-11-21Install terminfo files into /usr/share/terminfo (as well asNicholas Marriott
/usr/share/misc/terminfo.db for the moment). ok millert
2015-11-21fix NAME; ok schwarzeJason McIntyre
2015-11-21remove completely pledge_socket() from listen(2) and accept(2).Sebastien Marie
with pledge_socket(p, -1, state) we only check for "dns" promise against SS_DNS socket. But it isn't possible to pass a SS_DNS socket to listen(2) or accept(2) (EINVAL). So this deeper check is a bit useless... ok deraadt@
2015-11-21point to netintro(4) rather than (now removed) networking(4);Jason McIntyre
2015-11-21Add V4L2_FMT_FLAG_EMULATEDIngo Feinerer
2015-11-21zap mlinks for advansys(4), pnp(4), and networking(4), all of whichJason McIntyre
are aliases rather than actual things; ok schwarze
2015-11-21pledge the wyrmsTheo de Raadt
2015-11-21Drop sysctl leftovers.Visa Hankala
2015-11-21pledge "stdio rpath wpath cpath"Theo de Raadt
from Ricardo Mestre
2015-11-21syncTheo de Raadt
2015-11-21Nuke long standing annoyance of EDIT() macros and switch both Xedit()Kenneth R Westerback
and Xgedit() to a new mechanism. Keep a copy of the old partition and compare final edited version to that to decide if it is dirty. Fixes a number of (but not all!) nits in editing partitions. Original problem(s) noted by, suggestions from, much testing and ok tim@
2015-11-21simplify ifq_deq_rollback by only having it unlock.David Gwynne
hfsc needed a rollback ifqop to requeue the mbuf because it used ml_dequeue in the begin op. now it uses MBUF_LIST_FIRST to get a ref to the first mbuf in deq_begin. now the disciplines dont need a rollback op, so ifq_deq_rollback can be simplified to just releasing the mutex. based on a discussion with kenjiro cho
2015-11-21error: too many arguments to function 'ifq_deq_begin'David Gwynne
found by deraadt@
2015-11-21provide MBUF_LIST_FIRST and MBUF_LIST_NEXT for iterating over an mbuf_list.David Gwynne
MBUF_LIST_FOREACH is then rewritten on top of those. this makes it easier to get at the head of a list too, which may make the hfsc ifq backend nicer. based on a discussion with kenjiro cho ok mpi@
2015-11-20POSIX says that ffs(), strcasecmp(), strncasecmp(), r?index() andTodd C. Miller
the b* byte functions belong in strings.h, not string.h so break them out of string.h into a new strings.h. As long as there is no POSIX or X/OPEN define in use string.h will pull in strings.h. OK naddy@ deraadt@
2015-11-20bgpd has been naughty. It tries to play with AF_UNIX sockets withoutFlorian Obser
pledging "unix". Move control_listen up to the main process which already has pledge("unix"). accept(2) was already allowed. (Technically no longer necessary since listen(2) is now allowed, too, but this moves it to the right place.) OK claudio@, deraadt@
2015-11-20Neuter the pledge domain checking for listen, getpeername, and getsocknameTheo de Raadt
also. The idea is much like rpath is with files, you get an fd and then you can play with it somewhat. In the socket space once you have a fd, you can play with it somewhat. So you cannot bind, but you can accept. You can listen, getpeername, getsockname, and of course set/getsockopt is somewhat available.. yes, this makes pledge the anti-capsicum, kind of like salt from Secovlje.. reasoning due to a conversation with tedu
2015-11-20allow comment change for all supported formatsAlexander Hall
ok djm@
2015-11-20Memory leaks and an uninitialized part of utf8_data, from Patrick Palka.Nicholas Marriott
2015-11-20Fix multiple issues regarding process group and signal mask handlingIngo Schwarze
found by tb@ and millert@; parts of the code, in particular in tag.c, by millert@; OK millert@.
2015-11-20syncTheo de Raadt
2015-11-20Document that the status argument may be NULL; OK millert@Tim van der Molen
2015-11-20Permit msync(2) in the "stdio" set; only a few programs use it relatedTheo de Raadt
to mmap, but thinking about it nothing feels risky Long discussions with florian
2015-11-20pledge "stdio rpath wpath cpath fattr flock tty"Theo de Raadt
ok millert
2015-11-20Remove login_tis, no one should be using the TIS authenticationTodd C. Miller
server these days.
2015-11-20honestly i think you should just zap that paragraph - it doesn;t maketb
sense to document that posix more or less says something should happen, and that it does. jmc
2015-11-20cleanup powerhooks links tooTheo de Raadt
2015-11-20switch back to yaccing parse.y, it seems to work.Ted Unangst
2015-11-20ansiTed Unangst