ajacoutot [Sat, 12 Jul 2014 16:26:35 +0000 (16:26 +0000)]
Extend output a bit.
guenther [Sat, 12 Jul 2014 16:25:08 +0000 (16:25 +0000)]
Tackle the endian.h mess. Make it so that:
* you can #include <sys/endian.h> instead of <machine/endian.h>,
and ditto <endian.h> (fixes code that pulls in <sys/endian.h> first)
* those will always export the symbols that POSIX specified for
<endian.h>, including the new {be,le}{16,32,64}toh() set. c.f.
http://austingroupbugs.net/view.php?id=162
if __BSD_VISIBLE then you also get the symbols that our <machine/endian.h>
currently exports (ntohs, NTOHS, dlg's bemtoh*, etc)
* when doing POSIX compiles (not __BSD_VISIBLE), then <netinet/in.h> and
<arpa/inet.h> will *stop* exporting the extra symbols like BYTE_ORDER
and betoh*
ok deraadt@
matthieu [Sat, 12 Jul 2014 16:23:43 +0000 (16:23 +0000)]
Import a copy of ucpp, lightweight cpp that doesn't depend
on the 'comp' set. Moving from xenocara with a new name.
ok deraadt@.
schwarze [Sat, 12 Jul 2014 16:13:36 +0000 (16:13 +0000)]
Start fixing issues that beck@ helped find:
Distinguish between man(1) and apropos(1) mode by adding back the classical
QUERY_STRING variable "apropos=". Change the default back to "apropos=0".
Control it by adding a HTML <SELECT> element for it.
Rename the "expr=" QUERY_STRING variable back to its classical name "query=",
i don't see how the new name is better than the classical one.
While here, drop the concept of a "legacy mode". Simply continue to
support the features, and use what we consider best.
henning [Sat, 12 Jul 2014 16:10:04 +0000 (16:10 +0000)]
/* this has no effect on IP, and will kill all ISO connections XXX */
farewell, then. has been #ifdef notyet for the last 19 years
mpi [Sat, 12 Jul 2014 16:07:06 +0000 (16:07 +0000)]
Grammar, from stsp@
miod [Sat, 12 Jul 2014 16:03:36 +0000 (16:03 +0000)]
if (x) FOO_free(x) -> FOO_free(x).
Improves readability, keeps the code smaller so that it is warmer in your
cache.
review & ok deraadt@
jsing [Sat, 12 Jul 2014 16:01:28 +0000 (16:01 +0000)]
Add an initial regress test for libressl, which calls ressl from Go and
makes it talk to a Go TLS server.
ajacoutot [Sat, 12 Jul 2014 16:00:27 +0000 (16:00 +0000)]
cksum -> sha256
That means sysmerge(8) may be a little more interactive the next time you
run it.
ajacoutot [Sat, 12 Jul 2014 15:58:14 +0000 (15:58 +0000)]
Use sha256(1) for compared files, just like we do for examples.
pirofti [Sat, 12 Jul 2014 15:53:44 +0000 (15:53 +0000)]
Add support for Get Port Status requests.
miod [Sat, 12 Jul 2014 15:53:34 +0000 (15:53 +0000)]
more MLINKs
benno [Sat, 12 Jul 2014 15:47:18 +0000 (15:47 +0000)]
fix relay "append header" action, add regression test for append
ok reyk
beck [Sat, 12 Jul 2014 15:43:49 +0000 (15:43 +0000)]
guard inclusion of sys/sysctl.h so we can detect at compile time and
keep linux distros happy that don't have it.
ok bcook@
ajacoutot [Sat, 12 Jul 2014 15:38:42 +0000 (15:38 +0000)]
Create the examples checksum for sysmerge at release time.
"move ahead" deraadt@
robert [Sat, 12 Jul 2014 15:32:43 +0000 (15:32 +0000)]
replace the heavy shell magic in quirks to handle backward compat with simpler
methods
ajacoutot [Sat, 12 Jul 2014 15:31:54 +0000 (15:31 +0000)]
Initial support for /etc/examples.
pirofti [Sat, 12 Jul 2014 15:30:43 +0000 (15:30 +0000)]
Add support for Get Hub Descriptor requests.
rpe [Sat, 12 Jul 2014 15:27:15 +0000 (15:27 +0000)]
xbase has its own cpp now so it doesn't depend on comp anymore.
Remove the code introduced in r1.723 to tie them together.
OK deraadt@
stsp [Sat, 12 Jul 2014 15:26:54 +0000 (15:26 +0000)]
Rework zyd(4)'s register read/write methods to eliminate race conditions.
Read commands were issued via asynchronous transfers and replies were
expected after a fixed tsleep() timeout. Upon timeout zyd simply freed
the xfer even if it was still in-flight within the USB stack. This could
cause havoc such as making all USB ports on the system unusable until reboot.
ehci_freex: xfer=0xfffffe811e63e9d8 not busy, 0x4f4e5155
("busy" here would indicate the xfer is done and marked for being freed)
To fix this, issue read commands with synchronous transfers so the xfer
can always complete. Split read/write code paths into separate methods.
Add a flag that tells us if a reply was received in interrupt context
while the read path waited in tsleep().
With and ok mpi@
miod [Sat, 12 Jul 2014 14:58:32 +0000 (14:58 +0000)]
Principle of least surprise: make CMAC_CTX_free(), OCSP_REQ_CTX_free() and
X509_STORE_CTX_free() accept NULL pointers as input without dereferencing them,
like all the other well-behaved *_CTX_free() functions do.
yasuoka [Sat, 12 Jul 2014 14:55:22 +0000 (14:55 +0000)]
Fix the sentence in the BUGS section. Colon is usable for password.
Also add a mention about the escape sequence for the password.
pointed out giovanni
ajacoutot [Sat, 12 Jul 2014 14:51:07 +0000 (14:51 +0000)]
Shuffle more stuffs around, remove most commented blocks, just sort by
number and make the file easier on the eyes.
discussed with deraadt@
deraadt [Sat, 12 Jul 2014 14:48:00 +0000 (14:48 +0000)]
remove gratuitous differences, ok beck
deraadt [Sat, 12 Jul 2014 14:46:31 +0000 (14:46 +0000)]
remove gratuitous differences, ok beck bcook
yasuoka [Sat, 12 Jul 2014 14:43:32 +0000 (14:43 +0000)]
Correct the sentence in the BUGS section. Colon chars are usable as a
string value and usage of it in type is documented in the other section.
ok jmc
stsp [Sat, 12 Jul 2014 14:39:31 +0000 (14:39 +0000)]
Fix netstart after autoconf6 change so 'rtsol' lines in hostname.if work again.
found by pelikan@; ok pelikan@ henning@
ajacoutot [Sat, 12 Jul 2014 14:38:38 +0000 (14:38 +0000)]
Sync with IANA.
"fine" claudio@ deraadt@
pirofti [Sat, 12 Jul 2014 14:37:17 +0000 (14:37 +0000)]
I don't need to treat the (half-)empty Tx and Rx FIFO cases.
Only the DMA-challenged host controllers need to, so don't panic!
While at it add some more debug messages when the interrupt returns 0.
reyk [Sat, 12 Jul 2014 14:34:13 +0000 (14:34 +0000)]
Move HTTP error codes into http.h.
ok benno@
pirofti [Sat, 12 Jul 2014 14:31:20 +0000 (14:31 +0000)]
Add support for the CLEAR FEATURE requests.
mpi [Sat, 12 Jul 2014 14:26:00 +0000 (14:26 +0000)]
Always create a local route for every configured IPv4 address on the
machine and restore the original behavior of RTM_ADD and RTM_DELETE
by always generating one message per locally configured address.
This time, make sure the local route is removed during an address change,
since at least pppoe(4) do some funky magics with wildcard addresses that
might corrupt the routing tree, as found by naddy@
Also do not add a local route if the specified address is 0.0.0.0, to
prevent a tree corruption, as found by guenther@.
Putting this in now so that it gets tested, claudio@ agrees. Please
contact me if you find any route-related regression caused by this
change.
jsg [Sat, 12 Jul 2014 14:18:06 +0000 (14:18 +0000)]
remove ifdef'd out valleyview/baytrail device lists
on linux versions before 3.11 i915_pci_probe() doesn't match valleyview
unless i915_preliminary_hw_support is specified as a module parameter.
our drm code is currently based on linux 3.8, so it seems unlikely
that the valleyview support we have works.
jasper [Sat, 12 Jul 2014 14:15:06 +0000 (14:15 +0000)]
fix annoying bug where the first character would be eaten, cnischar() was
wreaking havoc.
from miod@
reyk [Sat, 12 Jul 2014 14:15:04 +0000 (14:15 +0000)]
Sync msgbuf_write() changes from relayd.
Please note that proc.c should be kept identical in relayd, iked and
snmpd (currently without the includes).
ok benno@
jasper [Sat, 12 Jul 2014 14:12:53 +0000 (14:12 +0000)]
- fill in cninit to enable rts
uebayasi [Sat, 12 Jul 2014 14:12:44 +0000 (14:12 +0000)]
boot(9), reboot(9): Migrate MD callers of boot(9) to reboot(9)
I have found that some ports call boot(9) from machine-dependent code to
reboot system. These should be changed to either:
- Sending signal to init(8) to trigger it to shutdown system cleanly, like
acpi(4) does, in cases where found problems don't prevent system from working
immediately, or
- Just doing panic(9) if the situation is severely broken.
For now, just rewrite boot() to reboot(). Actual fixes follow.
Discussed with & OK from kettenis@
yasuoka [Sat, 12 Jul 2014 14:04:18 +0000 (14:04 +0000)]
Use imsg(3) for the IPC between the privileged process and the
non-privileged process to be unify the way. Also fix style.
schwarze [Sat, 12 Jul 2014 13:59:54 +0000 (13:59 +0000)]
Fix whatis(1) to correctly match words instead of any substrings.
While here, also provide an internal mode (MANSEARCH_MAN) to match
complete names, to be used by man.cgi(8).
mpi [Sat, 12 Jul 2014 13:43:08 +0000 (13:43 +0000)]
Change config_deactivate(9) to always unset the DVF_ACTIVE flag so
that drivers can check for this flag to know they have to stop doing
any hardware access and release their reference.
While here makes the ca_activate() function optional and propagates
DVACT_DEACTIVATE to the children of a device that do not implement this
interface like it is done during suspend/resume.
ok uebayasi@, deraadt@
deraadt [Sat, 12 Jul 2014 13:24:54 +0000 (13:24 +0000)]
Split arc4random_uniform into it's own file, to assist other projects
now using this as upstream code. The particular problem is systems
that contain older arc4random derivations lacking arc4random_uniform().
ok tedu miod
pelikan [Sat, 12 Jul 2014 13:23:59 +0000 (13:23 +0000)]
fix a type error on BE architectures
beck [Sat, 12 Jul 2014 13:19:44 +0000 (13:19 +0000)]
Solaris uses a symbolic link for /dev/urandom which harms best practice of
using O_NOFOLLOW - cope with it as best as possible by trying two
different paths. - written by deraadt@ and kettenis@
jsing [Sat, 12 Jul 2014 13:11:53 +0000 (13:11 +0000)]
Remove remnants from PSK, KRB5 and SRP.
ok beck@ miod@
jmc [Sat, 12 Jul 2014 12:46:28 +0000 (12:46 +0000)]
tweak previous;
jasper [Sat, 12 Jul 2014 12:16:36 +0000 (12:16 +0000)]
- rewrite register reading/writing to use octeon_xkphys_{read,write}_8 which
is the right approach
- write into _THR instead of _RBR for cnputc() as per miod's suggestion
this doesn't fix the first character that gets eaten, but it's the right way
to move forward.
with pirofti@
jsg [Sat, 12 Jul 2014 11:33:13 +0000 (11:33 +0000)]
Remove the qli driver for QLogic 4010 & 4022 iSCSI.
It was never enabled and is apparently unfinished.
ok deraadt@ krw@ claudio@ kettenis@
henning [Sat, 12 Jul 2014 11:27:45 +0000 (11:27 +0000)]
sizeof(afh), afh being uint32, is cooler than literal "4"
spotted by Kent R. Spillner <kspillner acm org>
miod [Sat, 12 Jul 2014 11:25:25 +0000 (11:25 +0000)]
typos
pelikan [Sat, 12 Jul 2014 11:03:11 +0000 (11:03 +0000)]
in-memory superblock was being filled in two places -> merge them
ok tedu
pelikan [Sat, 12 Jul 2014 10:55:33 +0000 (10:55 +0000)]
pull dirblock search code from ext2fs_lookup() like FreeBSD has done
ok tedu
tedu [Sat, 12 Jul 2014 10:51:35 +0000 (10:51 +0000)]
remove bluetooth types
tedu [Sat, 12 Jul 2014 10:47:21 +0000 (10:47 +0000)]
remove bluetooth malloc types
robert [Sat, 12 Jul 2014 10:14:03 +0000 (10:14 +0000)]
Make rc.conf a parsed configuration file and stop sourcing it as a shell
script.
From now on rc.conf has a fixed syntax (key=val) and it is not allowed
to add anything to it besides the supported syntax, it all going to be
ignored.
discussed with and help from deraadt@ and halex@
jsg [Sat, 12 Jul 2014 10:10:14 +0000 (10:10 +0000)]
regen
jsg [Sat, 12 Jul 2014 10:08:53 +0000 (10:08 +0000)]
add some more matrox devices found in servers
jsing [Sat, 12 Jul 2014 10:06:04 +0000 (10:06 +0000)]
Place comments in a block above the if statement, rather than attempting
to interleave them within the conditions. Also fix wrapping and
indentation.
miod [Sat, 12 Jul 2014 09:47:05 +0000 (09:47 +0000)]
Pull in more atomic functions to avoid <sys/atomic.h> trying to use gcc4
built-ins which aren't available on vax. (A similar diff for m88k is in the
pipeline as well)
espie [Sat, 12 Jul 2014 09:38:39 +0000 (09:38 +0000)]
a bit more detail
yuo [Sat, 12 Jul 2014 09:33:48 +0000 (09:33 +0000)]
regen
yuo [Sat, 12 Jul 2014 09:32:47 +0000 (09:32 +0000)]
fix location of 7 Series xHCI entry
no side effect
pelikan [Sat, 12 Jul 2014 09:30:02 +0000 (09:30 +0000)]
print more useful information on wrong superblocks.
Function renames for consistency and readability. No functional change.
robert [Sat, 12 Jul 2014 09:26:27 +0000 (09:26 +0000)]
document the GitHub support in bsd.port.mk
pelikan [Sat, 12 Jul 2014 09:04:35 +0000 (09:04 +0000)]
revert previous unwanted commit. sorry!
krw [Sat, 12 Jul 2014 09:04:21 +0000 (09:04 +0000)]
Bring back resolv.conf write reduction. Race was something else.
kettenis [Sat, 12 Jul 2014 09:02:24 +0000 (09:02 +0000)]
Add a function to drop all clean pages on the page daemon queues and call
it when we hibernate.
ok mlarkin@, miod@, deraadt@
pelikan [Sat, 12 Jul 2014 08:53:38 +0000 (08:53 +0000)]
*** empty log message ***
mpi [Sat, 12 Jul 2014 08:48:19 +0000 (08:48 +0000)]
Improve the definition of USBD_FORCE_SHORT_XFER, prompted by a question
from stsp@.
tedu [Sat, 12 Jul 2014 08:29:56 +0000 (08:29 +0000)]
mlarkin found disabled code to print a battleship. improve it and enable.
ok mlarkin
mpi [Sat, 12 Jul 2014 08:21:10 +0000 (08:21 +0000)]
Use the correct poll interval for HS root hub before it gets copied, no
real impact since this descriptor is not used in the kernel. From NetBSD.
ajacoutot [Sat, 12 Jul 2014 08:01:47 +0000 (08:01 +0000)]
Move things around (no change):
- some unofficial services became official
- move kerberos next to afs
mpi [Sat, 12 Jul 2014 07:59:23 +0000 (07:59 +0000)]
Kill a bunch of DVACT_DEACTIVATE handlers whose only purpose were to
set the 'dying' flag of a device. Such handlers are useless now that
usbd_detach() already set this flag.
Even if the purpose of this flag is questionnable on OpenBSD because
DVACT_DEACTIVATE acts as a pre-detach event, this is just a first small
step towards the simplification of the autoconf(9) device states.
This cleaning is now possible thanks to the work of pirofti@ to convert
all the USB drivers to properly use usbd_is_dying().
Discussed many times with deraadt@
guenther [Sat, 12 Jul 2014 07:52:36 +0000 (07:52 +0000)]
Make disabling last cipher work.
From Thijs Alkemade via OpenSSL trunk
ok miod@
blambert [Sat, 12 Jul 2014 07:39:11 +0000 (07:39 +0000)]
essentially mechanical conversion of softraid rebuild from
workq to taskq
ok jsing@
blambert [Sat, 12 Jul 2014 07:20:00 +0000 (07:20 +0000)]
move macppc abtn(4) driver from workq to taskq
thanks to Fred Crowson (fred () crowsons ! net) who was able
to make sure his cd would still eject when the button was pushed,
and stsp@ who lent me his macppc laptop
mpi [Sat, 12 Jul 2014 07:18:16 +0000 (07:18 +0000)]
Remove incorrect comment about how autoconf(9) works and document
that usbd_detach() should only be called by the thread doing USB
bus exploration to prevent attach/detach races.
mpi [Sat, 12 Jul 2014 07:11:17 +0000 (07:11 +0000)]
Only detach the USB device you disconnected, fix a regression reported
by guenther@.
While here set the dying flag of the disconnected device so that most of
the DVACT_ACTIVATE handlers can go.
deraadt [Sat, 12 Jul 2014 03:54:25 +0000 (03:54 +0000)]
sync
deraadt [Sat, 12 Jul 2014 03:52:39 +0000 (03:52 +0000)]
move exports, ftpchroot, hosts.lpd, printcap, and remote to the examples
directory.
ok robert
guenther [Sat, 12 Jul 2014 03:48:04 +0000 (03:48 +0000)]
The statdb code has never been complete here
guenther [Sat, 12 Jul 2014 03:46:42 +0000 (03:46 +0000)]
Kill never enabled #ifdefs
deraadt [Sat, 12 Jul 2014 03:41:04 +0000 (03:41 +0000)]
Remove a pile of (obviously unused) #ifdef SYSV and BSD41 and BSD42
code that catches lots of signals, and then re-enters curses... before
exiting.
guenther [Sat, 12 Jul 2014 03:40:16 +0000 (03:40 +0000)]
config-def.h is now unnecessary; merge config-data.h into defs.h
guenther [Sat, 12 Jul 2014 03:32:00 +0000 (03:32 +0000)]
Kill os-openbsd.h: we have <paths.h>, _PATH_RSH, and utimes()
deraadt [Sat, 12 Jul 2014 03:27:23 +0000 (03:27 +0000)]
-DOPENSSL_NO_KRB5 is no longer needed
ok guenther
lteo [Sat, 12 Jul 2014 03:27:00 +0000 (03:27 +0000)]
Implement checksum offload for divert(4): simply set the checksum flag
and let the stack take care of the checksums for reinjected outbound
packets.
Reinjected inbound packets will continue to have their checksums
calculated manually but we can now take advantage of in_proto_cksum_out
and in6_proto_cksum_out to streamline the way their checksums are done.
help from florian@ and henning@, feedback from naddy@
ok florian@ henning@
guenther [Sat, 12 Jul 2014 03:25:03 +0000 (03:25 +0000)]
SETARGS and NEED_HASMNTOPT paths are dead; rshrcmd() and libz stuff are
no longer (were never?) used
guenther [Sat, 12 Jul 2014 03:19:43 +0000 (03:19 +0000)]
Deleted unused local prototypes for systems stuff
guenther [Sat, 12 Jul 2014 03:13:12 +0000 (03:13 +0000)]
No really, assume POSIX: errno is declared for us and sys/stat.h has
S_IX{USR,GRP,OTH}
guenther [Sat, 12 Jul 2014 03:10:03 +0000 (03:10 +0000)]
Rename 'link' parameter to eliminate shadow warnings
guenther [Sat, 12 Jul 2014 03:09:29 +0000 (03:09 +0000)]
Delete unused global
guenther [Sat, 12 Jul 2014 03:07:22 +0000 (03:07 +0000)]
Eliminate some annoying variable shadowing
guenther [Sat, 12 Jul 2014 03:02:27 +0000 (03:02 +0000)]
Yes, we have setproctitle(). Delete that and several unused HAVE_* #defines
guenther [Sat, 12 Jul 2014 02:58:18 +0000 (02:58 +0000)]
Unused variable from oldrdist cleanup
deraadt [Sat, 12 Jul 2014 02:56:01 +0000 (02:56 +0000)]
The hosts.lpd file must exist, or no permission is granted. Change the
the log messages to clarify the reason for the failure to clarify the
condition.
ok guenther
guenther [Sat, 12 Jul 2014 02:51:52 +0000 (02:51 +0000)]
Welcome to 1989: assume the compiler support const
guenther [Sat, 12 Jul 2014 02:48:33 +0000 (02:48 +0000)]
Per C99, wchar.h has to forward declare struct tm
guenther [Sat, 12 Jul 2014 02:47:51 +0000 (02:47 +0000)]
If a constant string needs a name, use a static const array instead
of a pointer or non-const array, as that minimizes the symbols,
maximizes the placement into read-only memory, and avoids warnings
from gcc -Wformat=2 when they're used as format strings.
deraadt [Sat, 12 Jul 2014 02:47:45 +0000 (02:47 +0000)]
odds are that some ABI change occured today, no matter how careful everyone
is
deraadt [Sat, 12 Jul 2014 02:44:54 +0000 (02:44 +0000)]
enough churn, a crank is advised by guenther..