Commit Graph

221759 Commits

Author SHA1 Message Date
riz
6ec333eb37 Catch up to recent changes in config_pending_{incr,decr}(). 2013-10-13 06:55:34 +00:00
christos
977d05954e make the driver able to send scsi commands; now the disks are found.
it was converted incorrectly to device_t.
2013-10-13 04:24:21 +00:00
wiz
c9283f1155 Sort. More markup. 2013-10-12 22:37:43 +00:00
christos
fcf88edc55 adjust for recent deferred changes. 2013-10-12 21:11:42 +00:00
kefren
ee8be8cbb6 zeroize the rest of the comparable struct before adding it to the rb tree 2013-10-12 18:55:40 +00:00
mbalmer
b65f3decc3 no need to check free() arguments against NULL 2013-10-12 18:46:12 +00:00
christos
0703489a8c more tests 2013-10-12 17:26:32 +00:00
mbalmer
6c154a3125 it's Lua, not lua 2013-10-12 17:25:18 +00:00
mbalmer
cb23152c39 add Lua scripting support to bozohttpd, see httpd(8) for details 2013-10-12 17:24:06 +00:00
christos
6b629de220 - add 64 bit fifo support
- handle fibrilation better
2013-10-12 16:52:21 +00:00
christos
11beb626a3 Pass the device name in, so we can debug what deferred drivers did not work. 2013-10-12 16:49:00 +00:00
christos
c3caf0b851 provide a better printf for the panic message 2013-10-12 16:42:27 +00:00
christos
0d05158efc add new t_tcp test 2013-10-12 15:30:37 +00:00
christos
ee07b6a10b new test to check if non-blocking sockets are reset to blocking on the
accepted file descriptor.
2013-10-12 15:29:16 +00:00
njoly
4bbb86b347 llib-lctf.ln is dtrace specific. 2013-10-12 07:51:54 +00:00
mbalmer
bee8901ae3 remove trailing whitespace 2013-10-12 07:49:40 +00:00
pgoyette
5beb5eb050 Rework previous (1.24) change. Rather than depending on the
file's flags to decide if decompress cleanup is needed, just
check to see if the open() allocated the 'struct sd *' used for
decompression.

This fixes recent problem where presence of a "load=ffs" command
in my /boot.cfg resulted in a "heap full" error at boot time.

OK martin@
2013-10-11 16:30:31 +00:00
isaki
0d986a3507 FATANH(-0) is -0, not +0.
This bug was introduced by the mistake of my test program.
Last week, I talked about the probelm (my FATANH(-0) returns +0 ?)
by NetBSD seminar at Open Source Conference 2013 Hiroshima,
and tsutsui@ confirmed that returns -0.
2013-10-11 03:37:08 +00:00
nisimura
bbf0c42bc0 remove garbage lines mistakenly included when def.mk generation. 2013-10-11 01:20:52 +00:00
christos
4b23c29b39 make this work on linux 2013-10-10 16:01:55 +00:00
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