summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* get the args right for the fallback atomic_{cas,swap}_ptrdlg2015-01-231-5/+5
| | | | | implementations, and then cast the pointer to the right type for the gcc builtins.
* zap trailing whitespace;jmc2015-01-231-2/+2
|
* Remove the OK and ERR macros. They obfuscate the code and don'ttedu2015-01-239-61/+52
| | | | | | | | | help legibility. (unix system calls use 0 for ok, but hundreds of other projects use 1 to indicate success.) Despite the name, many system calls (e.g., open) also return not OK values for success. It also cleans up some weird code like int crontab_fd = OK - 1; This diff is mechanical in nature. Later I will fix the bugs it reveals. ok deraadt
* don't need to define debugging 0 anymoretedu2015-01-232-4/+4
|
* minor debug removal cleanuptedu2015-01-232-6/+4
|
* remove debug code.tedu2015-01-2314-368/+23
| | | | | | | | | | I think the level of debug code in cron is excessive for a program that has reached feature complete. If cron needs to provide more information to the user about its operational status, I think syslog would be more appropriate. (The debug flags also disable forking into the background, so they aren't even that useful for debugging a live system.) ok deraadt millert
* Wonders of roff(7): Integer numbers in numerical expressions can carryschwarze2015-01-235-7/+92
| | | | | scaling units, and some manuals (e.g. in devel/grcs) actually use that, so let's support it. Missing feature reported by naddy@.
* Slightly improve \w width measurements:schwarze2015-01-221-2/+20
| | | | | | | Count special characters with the same width as ASCII characters and treat all other escape sequences as if they had a width of 0. Certainly not perfect, but a bit better. For example, GNU RCS ci(1) needs this; reported by naddy@.
* delete useless casts. ok deraadt guenther millerttedu2015-01-226-18/+18
|
* remove a stupid -Wstrict-prototype warning by making the hash functiontedu2015-01-222-4/+4
| | | | static. noticed by florian riehm
* Traditional roff(7) explicitly allows certain control charactersschwarze2015-01-222-9/+12
| | | | | | | in the input stream (SOH, STX, ETX, ENQ, ACK, BEL, BS) for specific purposes (leaders, backspace, delimiters, .tr), but making sure these don't leak through to the output is tricky, so mark them as unsupported for now.
* Fix logic botch causing warnings with Clang. Reported by dhill, matchesmiod2015-01-222-12/+12
| | | | similar changes in FreeBSD a few years ago.
* Possibly uninitialized variable. From Clang via dhill.miod2015-01-221-1/+1
|
* heirarchy -> hierarchy;jmc2015-01-221-2/+2
|
* Document that changes made to the directory hierarchy of the chrootmillert2015-01-221-2/+7
| | | | | jail may inadvertanly allow a process to escape. Also mention the problem of directory fd passing. Based on a diff from deraadt@
* Provide a warning about chroot misuses (which sadly, seem to have becomederaadt2015-01-221-4/+13
| | | | | | quite popular because shiny). sshd cannot detect/manage/do anything about these cases, best we can do is warn in the right spot in the man page. ok markus
* pool_setipl() on both pmap pools as a workaround for some sort of MPderaadt2015-01-221-1/+3
| | | | | | race. This will certainly be revisited, but too much time has been spent on it for now. ok mpi
* Don't let a failing mparse_open() clobber the filename pointer;schwarze2015-01-221-3/+7
| | | | | fixes error message content and a use after free for .so with non-existent target when -Wall or -Tlint is given.
* Processing $OpenBSD$ as well as sccs's @(#) is an OpenBSD extension, andkrw2015-01-222-6/+25
| | | | | | | should stop displaying the line at the 2nd '$'. Clarify intended behaviour in man page. ok millert@ beck@ deraadt@
* Use /etc/services names in all the default pf rules (most alreadykrw2015-01-221-5/+5
| | | | | | | | | did). This allows any local changes to /etc/services to be effective if all you have is the default. Issue pointed out by Brian S. Vangsgaard on bugs@. Thanks! ok phessler@ deraadt@
* Clean up includes, while here fix a white space which lead to a falseflorian2015-01-221-5/+5
| | | | | positive during grep'ing. OK reyk
* Let powerpc's bus_space(9) use the same pmap and uvm interfaces than thempi2015-01-223-89/+76
| | | | | | | | | | | | | | | | other archs. Specify the caching policy by passing PMAP_* flags to pmap_kenter_pa() like the majority of our archs do and kill pmap_kenter_cache(). Spread some pmap_update() along the way. While here remove the unused flag argument from pmap_fill_pte(). Finally convert the bus map/unmap functions to km_alloc/free() instead of uvm_km_valloc/free(). Inputs from kettenis@ and miod@, ok miod@
* Clean up the relayd headers with help of include-what-you-use and somereyk2015-01-2227-226/+113
| | | | | | | manual review. Based on common practice, relayd.h now includes the necessary headers for itself. OK benno@
* Only allow the -r flag when sending a message; from Martin Brandenburgmillert2015-01-221-3/+5
|
* spacingreyk2015-01-221-8/+11
|
* spacingreyk2015-01-225-15/+18
|
* wrap long lines; spacing.reyk2015-01-221-27/+41
| | | | | Repeat after me: "Lines are not longer than 80 characters long" and "mg(1) is the only true editor, I'll use ESC-q to wrap the lines".
* Replace some obvious '$OpenBSD' and '$OpenBSD:' typos with '$OpenBSD$'.krw2015-01-2211-11/+11
| | | | | | Pointed out by dickman@. ok sthen@ phessler@
* syncderaadt2015-01-2219-54/+55
|
* Use field names in struct initialisers.jsing2015-01-226-66/+66
| | | | No change to generated assembly.
* last entry in NAME should not have a trailing comma;jmc2015-01-221-2/+2
|
* Reduce the number of intermediate buffers by pre-allocating DMA buffersmpi2015-01-223-50/+61
| | | | | | | in the report functions instead of letting the stack do it magically for us. Reviewed and tested by David Higgs, thanks!
* Use correct error type and remove unused interface pointer.mpi2015-01-221-5/+3
| | | | From Fabian Raetz.
* Add MLINK for tls_config_set_ca_mem()reyk2015-01-221-1/+2
|
* LibreSSL now supports loading of CA certificates from memory, replacereyk2015-01-227-330/+8
| | | | | | | | | | | | the internal and long-serving ssl_ctx_load_verify_memory() function with a call to the SSL_CTX_load_verify_mem() API function. The ssl_privsep.c file with hacks for using OpenSSL in privsep'ed processes can now go away; portable versions of smtpd and relayd should start depending on LibreSSL or they have to carry ssl_privsep.c in openbsd-compat to work with legacy OpenSSL. No functional change. Based on previous discussions with gilles@ bluhm@ and many others OK bluhm@ (as part of the libcrypto/libssl/libtls diff)
* Allow to to load the CA chain directly from memory instead ofreyk2015-01-226-8/+39
| | | | | | | | specifying a file. This enables CA verification in privsep'ed processes that are running chroot'ed without direct access to the certificate files. With feedback, tests, and OK from bluhm@
* Support CA verification in chroot'ed processes without direct filereyk2015-01-226-6/+20
| | | | | | | | | | access to the certificates. SSL_CTX_load_verify_mem() is a frontend to the new X509_STORE_load_mem() function that allows to load the CA chain from a memory buffer that is holding the PEM-encoded files. This function allows to handle the verification in privsep'ed code. Adopted for LibreSSL based on older code from relayd (by pyr@ and myself) With feedback and OK bluhm@
* Add X509_STORE_load_mem() to load certificates from a memory bufferreyk2015-01-229-8/+338
| | | | | | | | | | | instead of disk. OpenSSL didn't provide a built-in API from loading certificates in a chroot'ed process that doesn't have direct access to the files. X509_STORE_load_mem() provides a new backend that will be used by libssl and libtls to implement such privsep-friendly functionality. Adopted for LibreSSL based on older code from relayd (by pyr@ and myself) With feedback and OK bluhm@
* delete annoying white space that annoyderaadt2015-01-227-31/+31
|
* Make it obvious which openssl test complained and whether it was expected.doug2015-01-221-2/+5
| | | | ok bcook@
* Recognise 'F'/'f' constant suffix for single precision floating point.jsg2015-01-221-1/+7
| | | | | | | Prevents indent from inserting a space which broke the build of the development version of Mesa. ok millert@ deraadt@
* pool_chk_page iterates over a pages free item lists and checks thatdlg2015-01-221-11/+10
| | | | | | | | | | | | | | | | | | | | the items address is within the page. it does that by masking the item address with the page mask and comparing that to the page address. however, if we're using large pages with external page headers, we dont request that the large page be aligned to its size. eg, on an arch with 4k pages, an 8k large page could be aligned to 4k, so masking bits to get the page address wont work. these incorrect checks were distracting while i was debugging large pages on landisk. this changes it to do range checks to see if the item is within the page. it also checks if the item is on the page before checking if its magic values or poison is right. ok miod@
* Assume that the size of a pointer will not change at runtime.bcook2015-01-222-56/+30
| | | | | | | Change the runtime check for whether a long is smaller than a pointer to a compile-time check. Replace the silly hash for LLP64 platforms. ok tedu@
* amd's nfs_prot.x file has some tweaks from the standard; automate them with ed.guenther2015-01-229-629/+1129
| | | | | | | | | Regenerate the amd's NFS RPC stubs with a current rpcgen, automating the post-generation tweaks to the svc stubs. However, do follow the modern naming style where the svc stubs have a _svc suffix. As a side benefit, this eliminates the need to #include <nfs/nfsproto.h> This is all a prelude to updating amd to talk NFSv3 with the kernel for its own "toplvl" mounts, to squash another y2038 issue.
* bring back r1.80:dlg2015-01-221-2/+5
| | | | | | | | | | pass the size of the softc to free. this time we only dereference the cfattach structure if we actually need it once the refcount has dropped to 0. tested by krw@ who found the original panic r1.80 was backed out for. putting this in again so i can find out when else will break.
* Make syslogd tests more reliable on slow machines. All tests passbluhm2015-01-223-4/+8
| | | | on my old sparc64.
* Do not need to include <sys/cdefs.h> when headers included above end upderaadt2015-01-221-3/+1
| | | | doing so.
* tweak previous; ok schwarzejmc2015-01-211-2/+2
|
* 3 different .h files here include ioccom.h. Do not need to include it directlyderaadt2015-01-211-2/+1
|
* if_media.c needs net/if_var.h. This fixes the build with IFMEDIA_DEBUG.deraadt2015-01-211-1/+2
| | | | from Fabian Raetz