summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-04-13My clever "expand _PATH_STDPATH in whereis.1" logic broke the build ifPhilip Guenther
you forgot to make obj first. Switch to putting the path in the manpage and just verifying at build-time whether it's correct. Problem pointed out by rpe@
2013-04-13Give struct dhcp_synctlv_lease fields a prefix (lv_) as the fieldsKenneth R Westerback
in other structs have. Reduces potential for confusion with fields of same name but different types in leases. Use consistent variable name. No change to executable.
2013-04-13Don't dance with errno, just check the return values of fprintf(),Kenneth R Westerback
fputs() and fputc() to see if a failure occurred. Add a couple of missing checks. Replace putc() with fputc(). Shorter, nicer code. No functional change. ok fgsch@
2013-04-13Perform a warm reset instead of putting the hardware into full sleep modeStefan Sperling
to avoid system hangs upon 'ifconfig down up' with some AR5212 hardware. Linux uses the same workaround. Diff from Dinar Talypov (t.dinar.m at gmail).
2013-04-12replace MAX_LINE_SIZE and SMTP_LINE_MAX with SMTPD_MAXLINESIZE forEric Faurot
consistency and clarity. Remove useless and confusing extra byte in a few arrays based on this define. ok gilles@
2013-04-12correct spelling is "Christiaan Huygens"; from James J. LippardJason McIntyre
2013-04-12Fix the log messages displayed to the user.Brian Callahan
ok jasper@
2013-04-12usbd_setup_default_xfer() already use the default device's pipe so there'sMartin Pieuchot
no need to reset it afterward.
2013-04-12Instead of using a wrapper around usbd_transfer() when submitting aMartin Pieuchot
transfer synchronously just pass the USBD_SYNCHRONOUS flag like any other flags when creating a transfer. ok sthen@, mglocker@
2013-04-12Remove some Korean characters from the zero-width list that apparentlyNicholas Marriott
shouldn't be there, from Jeong Mok Cho.
2013-04-12Copy the client into the new cmdq in source-file so commands that workNicholas Marriott
on it (such as new-session) can work. Fixes issue reported by oss-adv at users dot sf dot net.
2013-04-12Now we can handle bitbanging enable the fallback method of gettingJonathan Gray
the crt edid if normal gmbus access failed. Seems to resolve problems Christopher Zimmermann was seeing fetching the crt edid.
2013-04-12Double-register load and store instructions using an odd-numbered register asMiod Vallat
the low part trigger an `illegal instruction' trap on the 88110 (and I can't see this documented anywhere in the manual). Of course there is code "in the wild" which uses such constructs (libgmp is one such example). Extend double_reg_fixup() to take the trap type as an extra argument, and explicitely allow ld.d or st.d instructions with odd-numbered registers at aligned addresses if we are invoked from the `illegal instruction' trap handler, to give this code a chance to run on 88110.
2013-04-12Unbreak lease synchronization by making the sync header contain theKenneth R Westerback
correct packet length even when paddding is present. Previously the HMAC calculated by the receiver would not be based on the whole packet. Problem noted and essentially identical diffs from Kapetanakis Giannis via misc@ and then Johan Ymerson via bugs@.
2013-04-11Call setlocale(LC_TIME) at startup.Nicholas Marriott
2013-04-11Do not abuse -finhibit-size-directive to control tight code alignment:Miod Vallat
- turn FUNCTION_BOUNDARY into a constant, as intended, since its value is used (among other things) to decide the alignment to expect from a function pointer value. - remove LABEL_ALIGN_AFTER_BARRIER. There is no reason to align jump destinations on half a cache line, and the MI default for this value is good enough. However, in order to preserve the intent of what FUNCTION_BOUNDARY used to be defined as, initialize align_functions to sensible values in m88k_override_options(), unless -falign-functions=... is specified.
2013-04-11Proper access of _THREAD_PRIVATE storage. Avoids a mem leak and reinitOtto Moerbeek
of resolver context for each resolver call for single threaded programs. With and ok tedu@ ok eric@
2013-04-11Fix obviously stupid bug in the PIC_{LOAD,STORE} macros when compiling withMiod Vallat
-fPIC. Harmless since we build libc -fpic so far.
2013-04-11Remove the extern keyword from function declarations, documentMartin Pieuchot
sysctl declarations, move variables and functions used in only one place in their corresponding file. No functional change. No objection from markus@, ok mikeb@
2013-04-11Merge usbd_ar_pipe in usbd_abort_pipe, no functional change.Martin Pieuchot
ok ratchov@, mglocker@
2013-04-11Send an SGR0 after turning on modifyOtherKeys to fix Terminal.app whichNicholas Marriott
treats \033[>4;1m and \033[4;1m (bold+underline). Reported & tested by otto@.
2013-04-11copy out a blank string if no wmesg, so userland can rely on readingTed Unangst
p_wmesg[0] and not find junk leftover from before
2013-04-11getpgid() and getsid() were rolled into POSIX in 2008Philip Guenther
ok millert@
2013-04-11Add 'restrict' per POSIX, per prodding by tedu@. (Might permit more warnings?)Philip Guenther
Tweak standards exposure of memchr (never) and strdup (POSIX-2008) Remove unnecessary tests of __BSD_VISIBLE ok millert@
2013-04-11quiet disconnect notifications on the server from error() back to logit()Damien Miller
if it is a normal client closure; bz#2057 ok+feedback dtucker@
2013-04-11The tweaks I suggested to the previous diff resulted in the typeflagPhilip Guenther
being checked after it was overwritten by the next block read in. Eliminate the argument aliasing that led to this being overlooked by passing rd_xheader() the size and typeflag directly. problem discovery and ok fgsch@
2013-04-10Correctly handle data memory protection ID traps: if occuring in user mode,Miod Vallat
SIGSEGV the process; if occuring in kernel mode, check for a possible pcb_onfault to recover, before otherwise panicing. ok kettenis@
2013-04-10futex: Prevent multiple futex pool initializations.Paul Irofti
This is a temporary (ugly) fix, the pool init call should be moved from linux_elf_probe into a better place.
2013-04-10futex: Sprinkle a few debug printfs that helped me in the past.Paul Irofti
2013-04-10futex: Assert that the refcount is larger than 0 when doing futex_put.Paul Irofti
2013-04-10Set EV_WRITE for jobs or run/if-shell jobs can hang. From Chris Johnsen.Nicholas Marriott
2013-04-10Fix bug where end guard in control mode was not printed after sessionNicholas Marriott
destroyed, from George Nachman.
2013-04-10Missed -o from set-window-option, from Ben Boeckel.Nicholas Marriott
2013-04-10Remove some code not needed on OpenBSD.Nicholas Marriott
2013-04-10Remove various external variable declaration from sources files andMartin Pieuchot
move them to the corresponding header with an appropriate comment if necessary. ok guenther@
2013-04-10Merge usbd_get_device_desc() into the only function using them.Martin Pieuchot
ok mglocker@
2013-04-10Instead of refetching the descriptor from the device, just use the copyMartin Pieuchot
already in memory retrieved during the autoconf USB attach logic. This is a good example of how confusing can be the usbd_get_* functions. ok mglocker@
2013-04-10Merge usb_devinfo* helper functions into usbd_print(), nothing else useMartin Pieuchot
them. ok ratchov@, mglocker@
2013-04-10Remove unused function usb_find_desc().Martin Pieuchot
2013-04-10Get the standard path from _PATH_STDPATH instead ofPhilip Guenther
sysctl({CTL_USER,USER_CS_PATH}). Expand that into the manpage too. _PATH_STDPATH suggested by miod@ Corrections from schwarze@ and jmc@ ok millert@ miod@ schwarze@ jmc@
2013-04-10Fix various glitches in queue macro usage.Philip Guenther
ok millert@
2013-04-09Add a magic number to the head of the signature block. Check for magicMike Larkin
number match during signature block read during speculative unhibernate on boot. If the magic number matches but we have otherwise chosen to not unhibernate (due to kernel/memory mismatch), clear the signature block early to avoid accidentally trying to unhibernate on subsequent boots. This prevents accidental unhibernates and endless unhibernate/reboot cycles. Add a define for HIBERNATE_DEBUG for various debugging printfs (disabled by default). Finally, change some KASSERTs to warning printfs (they probably shouldn't have been KASSERTs in the first place). "looks good" deraadt@
2013-04-09newvers.sh uses 'basename' to determine the directory name to stamp theMike Larkin
kernel version ID with, but it did not account for spaces in the name, leading to version strings like "OpenBSD 5.3-current ()". Quote the call to basename to permit paths with spaces in the name. ok halex@, deraadt@
2013-04-09Add extended header support for ustar. Currently only path and linkpath areFederico G. Schwindt
handled. input from zhuk and guenther. tested by zhuk and sthen on a bulk. ok guenther.
2013-04-09do not store a time_t or the result of a time_t division in an intGilles Chehade
prompted by deraadt@, ok claudio@ chl@ guenther@
2013-04-09Retry when SSL_read fails with SSL_ERROR_WANT_READ. Fixes the case whereStuart Henderson
an https server attempts renegotiation. ok jung@
2013-04-09When submitting a request the device's default pipe is alwaysMartin Pieuchot
used, so do not pretend to support a different one and get rid of the unused usbd_do_request_flags_pipe() function. ok mglocker@
2013-04-09There's no need for usbd_get_config_desc_full() so just call usbd_get_desc()Martin Pieuchot
directly this also makes it easier to understand which function actually generates IO. ok mglocker@
2013-04-09Remove read-only ipsec variables and directly use defines instead.Martin Pieuchot
ok mikeb@, markus@
2013-04-09show what we parsed in debug output; ok guether@Otto Moerbeek