Commit Graph

221739 Commits

Author SHA1 Message Date
christos
5afd56a50e fix missing files 2013-10-10 15:22:11 +00:00
christos
529b25e921 remove dup info 2013-10-10 12:28:10 +00:00
matt
fa741d8823 Use MACHINE_CPU for m68k. Use similar logic for both tests. 2013-10-09 22:33:41 +00:00
christos
eaca448335 delete extra m_len initialization. 2013-10-09 20:15:39 +00:00
christos
6427a54f86 - initialize m_len m_pkthgr.len to 0 in constructors, as discussed in tech-net.
- s/MGET/m_get
- s/0/NULL
2013-10-09 20:15:20 +00:00
christos
bbb0e86c6c PR/48292: Justin Cormack: paccept creates sockets that cannot be made blocking
Reset the socket flags not just the file flags for non-blocking I/O.
XXX: pullup 6
2013-10-09 18:55:56 +00:00
macallan
da28d6ec38 support WSDISPLAYIO_GET_FBINFO 2013-10-09 17:18:23 +00:00
macallan
ddf795fb36 some cleanup:
- use macros to shorten a while lot of bus_space_write_4() lines
- update some comments
- remove debug goop and cargo culted leftovers
2013-10-09 12:03:29 +00:00
njoly
0d88813605 Follow OpenGroup online specification[1], move
fchmodat/mkdirat/mkfifoat/mknodat prototypes to <sys.stat.h>.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_stat.h.html
2013-10-09 09:38:21 +00:00
macallan
433c97e823 add hardware acceleration
For now this supports only GeForce2 MX cards but most NV1x chips should work
once their PCI iDs are added to gffb_match()
Tested only on macppc.
2013-10-09 01:28:33 +00:00
christos
f907e085f5 MGET -> m_get 2013-10-08 19:59:49 +00:00
christos
44d32d084d 0 -> NULL
MGET -> m_get
No functional change.
2013-10-08 19:58:25 +00:00
christos
dc8626c22e Improve tests so that they check the sockaddr's returned by accept(2) and
getsockname(2). Test for accept success after closed client socket.
2013-10-08 18:05:31 +00:00
christos
c5f38835d1 Centralize the sockaddr_un allocation code. Set sun_len appropriately so
that the address length returned is correct, not always 106. Note that
we do things slightly differently than linux and explain why. Unit-tests
to come.
2013-10-08 17:21:24 +00:00
christos
c7901c6669 - Instead of having accept(2) return a zero-filled sockaddr for the case
where accept(2) was called on a unix socket that called connect(2) and
  then close(2), before the connection was accepted, return the empty
  sockaddr_un.
- Fix the length of the empty sockaddr_un socket so that it reflects reality.
2013-10-08 15:09:51 +00:00
seanb
b2bc048094 POSIX says getsockopt(s, SOL_SOCKET, SO_ACCEPTCONN,,) needs to work. 2013-10-08 14:54:29 +00:00
njoly
815709f7c7 Note that sysalign checks for dev_t/time_t alignment too. 2013-10-08 11:47:57 +00:00
christos
6499af7dd8 PR/47591: Michael Plass: If the unix socket is closed before accept,
unp->unp_conn will be NULL in PRU_ACCEPT, as called from
sys_accept->so_accept. This will cause the usrreq to return with
no error, leaving the mbuf gotten from m_get() with an uninitialized
length, containing junk from a previous call. Initialize m_len to
be 0 to handle this case. This is yet another reason why Beverly's
idea of setting m_len = 0 in m_get() makes a lot of sense. Arguably
this could be an error, since the data we return now has 0 family
and length.
2013-10-08 00:29:24 +00:00
jakllsch
042369cda8 Drop trailing whitespace. 2013-10-07 19:53:05 +00:00
jakllsch
e32de526f8 Use the universal pciide_detach() for detach function of all remaining
pciide-core drivers, except pciide at pnpbios which isn't actually PCI.
2013-10-07 19:51:55 +00:00
jakllsch
fb7ab073c5 Remove unused structure. 2013-10-07 19:37:24 +00:00
matt
94de07308f iMX233/OLinuXino changes from Petri Laskso.
See http://mail-index.netbsd.org/port-arm/2013/10/07/msg002042.html
2013-10-07 17:36:40 +00:00
christos
73da111b07 fix the rest of the lint warnings [pass 1] 2013-10-07 15:17:24 +00:00
jdc
6dc8fb4754 Belatedly note root on RAIDframe support for sandpoint. 2013-10-07 10:50:37 +00:00
dholland
0a9e41d103 Use uint32_t, not u_int32_t; makes this file standalone like it ought
to be. PR 45693.
2013-10-07 07:11:40 +00:00
dholland
31c7ba91f6 Remove stray KERNEL_UNLOCK_ONE() in error path of lfs_markv().
From Wolfgang Stukenbrock in PR 44370.

This error path is only reachable if lfs_markv is handed an out of
range inode number, so it's unlikely that it gets tickled very often.

It isn't clear to me that we need the kernel lock in here at all, as
the path to lfs_markv that's actually used at this point (via fcntl)
doesn't take it. But, one thing at a time.
2013-10-07 05:19:23 +00:00
dholland
af9796645f english usage patrol 2013-10-07 05:06:45 +00:00
dholland
49c2ea4f59 Update SYNOPSIS; PR 48080. Bump date. 2013-10-07 04:04:57 +00:00
dholland
04fb430032 Save errno around fwrite(), which can otherwise trash it; PR 47813.
This appears to fully resolve the problem described in the PR, even
though one might think it wouldn't.
2013-10-07 02:00:46 +00:00
dholland
603ad97a41 Merge some of the cleanup from PR 21894. Do a bit more of my own.
lint still squawks quite a bit, and it woudl probably be worthwhile
for someone to go through and make all the signedness consistent, but
I think I've got the valuable bits.
2013-10-07 00:16:19 +00:00
ast
83d9b54597 Fix PR bin/48202 [non-critical/low]:
sh +nounset and `for X; do` iteration fails if parameter set empty
by applying and testing FreeBSD's patch of Oct 24 2009 for this; see
  http://svnweb.freebsd.org/base/head/bin/sh/expand.c?r1=198453&r2=198454
Also created an ATF test in tests/bin/sh/t_expand.sh for this error and
corrected a space->tabs problem there as well.
2013-10-06 21:05:50 +00:00
jym
c8b47a469d Enable VerifyHostKeyDNS (SSHFP records verification) from DNS for hosts
under NetBSD.org domain.

Multiple TNF hosts have an up-to-date SSHFP record inside the DNS.
This offers a second channel verification for host key fingerprints
(weaker than known_hosts, but spoofing a host on first connect would
also require DNS forgery).

This can provide a trusted second channel (like DANE TLSA records) once
DNSSEC gets more widely used, but for now it is purely informational.

No regression expected, except that the ssh client will print a message
upon first connect to confirm/infirm that it got a correct SSHFP record
from DNS.

Only done for NetBSD.org domain, SSHFP are sadly more an exception than
the rule.

Notified on netbsd-users@, no objection after a week -- committed.
2013-10-06 17:25:34 +00:00
christos
8818316ba3 add more compression suffixes and local suffixes. 2013-10-06 17:14:49 +00:00
christos
b496a26a9d Recognize .gz and .bz2 suffixes so $ man ./man.1.gz works. From Franco Fichter
via dfly.
2013-10-06 16:43:41 +00:00
jakllsch
5dbec99fd5 Correct acpi_md_OsWritable() logic so that it can return TRUE.
From Masanori Kanaoka in PR 47571.
2013-10-06 16:34:48 +00:00
christos
7d79a7ccd9 Be more permissive in interpreting man pages as filenames, from Franco
Fichter via dfly. fixes:
	$ man usr.bin/man/man.1
2013-10-06 16:29:26 +00:00
apb
d53a09e4f6 Suggest using -b 1023/255/63 for modern disks where the BIOS is
configured to use LBA-Assisted translation.
2013-10-06 12:27:15 +00:00
wiz
3961ed8afd bump date for previous. 2013-10-06 08:27:00 +00:00
dholland
10d3e932da I'm a document, Jim, not a shell script.
Fix this to not use .sy to generate portions of the document.
Instead, generate the necessary bits with sed beforehand.

Apparently -ms is too feeble to be able to generate tables of contents
with automatically generated page numbers, so add the expected page
numbers into the document and make it possible to turn on a
rudimentary mechanism for crosschecking them. (This mechanism still
requires .sy though. Improvements welcome.)

This makes it unnecessary to build the document twice, or to use
groff in unsafe mode.
2013-10-06 05:45:19 +00:00
christos
891807de18 remove unrelated diff. 2013-10-06 01:21:24 +00:00
christos
4973924c26 update gcc info 2013-10-06 00:48:03 +00:00
christos
3c64f4a96f bump date 2013-10-06 00:46:07 +00:00
christos
661d78dfcf mention increased tcp window size, from logan 2013-10-05 23:34:33 +00:00
christos
d67ce930dc fix the source too, not just the doc. 2013-10-05 23:22:34 +00:00
christos
cef26ebe03 Add SIOCGIFINDEX from Ty Sarna and Matthew Sporleder. 2013-10-05 23:16:54 +00:00
rmind
4da50fc205 bpf_filter: re-use some code. No functional change intended. 2013-10-05 22:38:52 +00:00
jnemeth
de9c4809eb regen 2013-10-05 22:01:12 +00:00
jnemeth
b412ddd3f1 add Keyspan USA-19H serial adapter 2013-10-05 22:00:28 +00:00
ast
9994c709c8 Fixed spelling of 'appeared'. 2013-10-05 21:24:36 +00:00
christos
ebc3424719 dollarize NetBSD tag 2013-10-05 18:38:03 +00:00