summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove NULL-check before free().mmcc2015-12-191-3/+2
|
* Add pledge(2). It is not currently possible to pledge -u and -Utb2015-12-191-1/+22
| | | | | | | | | | | because of chown(2) and chmod(2). If -u and -U aren't specified, the basic pledge is "stdio rpath getpw". "getpw" is used to resolve uid and gid to names and vice versa. The -r flag makes use of rmdir(2) and unlink(2), so we need "cpath" The -t flag uses utimes(2), so we need "fattr" ok deraadt@
* move to 5.9-betaderaadt2015-12-191-2/+2
|
* make things fit, by skipping pcn* for now -- randomly firing a driver.deraadt2015-12-191-2/+2
|
* syncderaadt2015-12-1936-970/+970
|
* move to 5.9-betaderaadt2015-12-194-16/+16
|
* gethostbyname2() and gethostbyaddr() need <sys/socket.h>; discussed withtim2015-12-191-6/+8
| | | | millert@
* Style cleanup and removal of needless casts. ok tb@mmcc2015-12-191-41/+31
|
* Remove NULL-checks before free(). ok tb@mmcc2015-12-199-52/+30
|
* Switch and sync to the log.c variant from httpd/relayd/iked/snmpd/vmd.reyk2015-12-196-87/+103
| | | | OK bcook@ jung@
* Remove code that has been unused ever since we removed the agp ioctl interface.kettenis2015-12-193-655/+21
| | | | ok mpi@
* Move agp_generic_enable() prototype to agpvar.h to unbreak the build onkettenis2015-12-192-3/+3
| | | | macppc.
* Don't exit if a route can't be added. Just log particulars andkrw2015-12-191-4/+18
| | | | | | let someone else figure it out. ok mpi@
* After starting, unconditionally wait up to $daemon_timeout seconds to check thatajacoutot2015-12-191-7/+2
| | | | | | | | | | | | | | the daemon is actually running (instead of only when using rc_bg). This *may* trigger the following side effect: if a daemon starts then stops right away (because of a config parsing issue for e.g.), then it will slow down the boot process because rc will wait a bit before considering the start action failed. But at least it will allow us to detect those daemons and fix them or their rc.d(8) script. At least as far as I can tell, all base daemons should cope with it just fine. ok sthen@ robert@ on an earlier diff
* Move log_sockaddr() to from log.c to util.c as it is a local additionreyk2015-12-194-18/+20
| | | | and actually not a "logging" function. No functional change.
* Child will not return a config parsing error to the parent so rc.d will lie andajacoutot2015-12-195-6/+28
| | | | | | | | | tell you that the daemon succesfully started; prevent this by running a config check first. Note that we only do this for those particular daemons, not all that support a config test mode. ok benno@ phessler@
* Prevent GPU lockups with KMS & AGP-enable on Uninorth (G4) machines.mpi2015-12-191-3/+20
| | | | | | | | | | Based on linux commit 5613beb46d54da6ef7f1c4589e9f2e60eeb10721 found by jsg@. KMS is now usable on Uninorth machines but X11 output is still corrupted. ok kettenis@
* Enable agp(4), this makes X11 usable on my Dual G5 with radeondrm(4).mpi2015-12-191-3/+3
| | | | ok kettenis@
* Do not match Uninorth bridges until we have a working KMS with AGPmpi2015-12-191-1/+3
| | | | | | | | support for G4 machines. This allows us to enable agp(4) again for G5 machines. ok kettenis@
* Make carp_output() mpsafe.mpi2015-12-191-5/+12
| | | | | | | This is needed in order to fully unlock ARP processing with carp(4) interfaces as found the hardway by sthen@. ok sthen@, dlg@
* Tidy up _rc_wait().ajacoutot2015-12-191-11/+8
| | | | ok sthen@ robert@
* UTF-8 support:schwarze2015-12-192-9/+38
| | | | | | Let -f recognize non-ASCII blank characters and let -s count characters rather than bytes. OK zhuk@ bentley@
* Tweak pexp.ajacoutot2015-12-191-2/+2
|
* Add xs_setprop to set device propertiesmikeb2015-12-192-2/+32
|
* Fixup a few bugs in xen_intr_{establish,disestablish}mikeb2015-12-191-10/+6
| | | | | | | | | xen_intr_establish was using a variable that hasn't got its value updated in the supplementary check for event channel port unmasking. xen_intr_disestablish didn't save and correctly check the return value of xen_lookup_intsrc call and was incorrectly indexing into the pending event channel port bitmap.
* Make input off flag (selectp -d) apply to synchronize-panes too.nicm2015-12-191-2/+4
|
* Delete superfluous "continue;" just before end of loop.krw2015-12-191-2/+1
|
* More style improvement and removal of NULL/allocation casts.mmcc2015-12-192-47/+26
| | | | ok tb@
* Delete superfluous "close(s);return" just before "close(s);<functionkrw2015-12-191-3/+1
| | | | exit>".
* Remove code for unimplemented ElGamel support that's been disabled formmcc2015-12-181-20/+1
| | | | | | sixteen years. ok millert@, tb@, sthen@
* Make ix(4) mpsafer. Take advantage of intr_barrier() to eliminate the mutexkettenis2015-12-181-73/+52
| | | | | | | introduced in the previous step, and use atomic instructions to make the tx completion path mpsafe as well. ok claudio@, mpi@
* Fix SO_REUSE* flags effects when binding multicast addresses. Novgross2015-12-182-4/+4
| | | | | | regression observed on avahi. ok benno@
* Check ioctl() result with == -1, not < 0. Break long line.krw2015-12-181-3/+4
|
* Fix urtw(4) on big-endian architectures. Patch by Cedric Tessier.stsp2015-12-181-1/+6
| | | | Tested by Cedric on macppc/i386, and by myself on macppc.
* Make ix(4) mpsafer. Take advantage of intr_barrier() to eliminate the mutexkettenis2015-12-182-7/+6
| | | | | | | introduced in the previous step, and use atomic instructions to make the tx completion path mpsafe as well. ok claudio@, mpi@
* KNF: add a missing space after an 'if'.tb2015-12-181-2/+2
|
* A few more NULL casts and style tweaks. No functional change.mmcc2015-12-181-20/+16
|
* Cleanup and modernization. No functional change. Discussed with halex@.mmcc2015-12-181-51/+34
|
* Remove two error-on-NULL conditions for allocations that can't fail.mmcc2015-12-182-11/+2
| | | | ok visa@
* Add library-based __sync functions for mips64.visa2015-12-182-1/+321
| | | | Help with testing and ok kettenis@
* Introduce a new function disk_has() to inspect a disk if it has arpe2015-12-1811-78/+98
| | | | | | | | | | | | partition-table of a certain type and optionally if it has a partition of a certain type. Use disk_has() in the install.md script to replace all the various "fdisk <disk> | grep <pattern>" commands greatly simplifying things. positive feedback from sthen@ "time to get it really tested" deraadt@ OK krw@
* pledge "stdio rpath wpath cpath dpath fattr", as long as the -m optionderaadt2015-12-181-2/+6
| | | | wasn't used
* Remove leftover prototype.visa2015-12-181-2/+1
| | | | ok mpi@
* A store to FPA does not need splnet(). The operation is atomic.visa2015-12-181-7/+1
|
* unnoccupied->unoccupiedsthen2015-12-181-2/+2
|
* Fix wrong answer if the imaginary part is zero.shadchin2015-12-183-3/+9
| | | | | | NetBSD also turn off this piece of code. ok tb@
* Fix behavior csqrt, should beshadchin2015-12-183-6/+6
| | | | | | | | | | | csqrt(conj(z)) == conj(csqrt(z)) Before csqrt(-4.0 + -0.0i) = 0.0 + 2.0j but should be csqrt(-4.0 + -0.0i) = 0.0 - 2.0j ok tb@, also discussed with daniel@
* Convert arc4random() to arc4random_uniorm(). Diff by Matthew Martin.tb2015-12-182-4/+4
| | | | | | | | Ensure that arc4random_uniform() doesn't loop by redefining ND6_MAX_DESYNC_FACTOR to be 512, the largest power of two smaller than the RFC-specified 600 seconds. Suggested by florian@ and deraadt@ ok florian@, sthen@ in this form, arc4random change ok djm@, tedu@
* Simplify return call of rand() and rand_r() to make it easier to read.tb2015-12-181-2/+2
| | | | | | | | | This is slightly less robust, but RAND_MAX must be one below a power of two in both variants anyway. Based on a suggestion by Matthew Martin. ok tedu@
* Drop the now useless multicast setup comment.ajacoutot2015-12-181-7/+1
| | | | prodded by tim@, ok mpi@