Commit Graph

182231 Commits

Author SHA1 Message Date
dsl
6054206dee Replace with a version that:
1) doesn't do byte compares to find which byte matched
2) doesn't do byte compares if any top bits are set
3) doesn't use a loop when the input is misaligned
4) has less mispredicted branches
Passes regression tests and 'build.sh' doesn't explode (and more than usual).
2009-07-18 11:41:23 +00:00
dsl
8122d522e6 Presence of index.o in existing libc.a causes duplicate symbol now that
strchr.[cS] provides its definition.
2009-07-18 09:50:32 +00:00
dsl
6dffe8d42b Remove references to index.c and rindex.c (strchr.c and strrchr.c
now provide the definitions).
2009-07-18 09:44:30 +00:00
dsl
32b43c9199 Remove index() and rindex() from the list (in comment) 2009-07-18 09:41:23 +00:00
dsl
8b3b305143 Add tests that scan for 0x0 and 0xff.
Remove the 'answers' section from the test definition, instead use our
own version of strchr() to determine the what the answer should be.
On error report which test we are doing, and the answer we got.
If symbol "test_strchr" exists, test that function instead of strchr().
(With a very dodgy strchr() other things fail badly.
2009-07-18 09:20:46 +00:00
mbalmer
6ef876ad7c Use EXIT_FAILURE/EXIT_SUCCESS instead of numerical values when exiting. 2009-07-18 08:35:19 +00:00
wiz
0e3d8a6be4 Make HTML-ready. 2009-07-18 06:31:54 +00:00
pgoyette
0eb19985a4 We can try to trick the compiler, but at least we need to let it
compile!  (Hello, dsl!)
2009-07-18 04:34:32 +00:00
ad
5c5bb856e1 Don't send the quiet banner to the log, since the usual noise gets dumped
there anyway.
2009-07-17 23:31:51 +00:00
dyoung
b734bafe0e Fix spelling: situatations -> situations. 2009-07-17 22:17:37 +00:00
dsl
ea7ea23a08 Pollute the space either side of the string being compared with the test
pattern.
2009-07-17 22:07:36 +00:00
minskim
fa2e2e84e9 Note ip(4) change: IP_MINTTL. 2009-07-17 22:05:38 +00:00
minskim
20bf08088e Bump date for the previous change. 2009-07-17 22:04:18 +00:00
minskim
d0a9c36e4a Add the IP_MINTTL socket option.
The IP_MINTTL option may be used on SOCK_STREAM sockets to discard
packets with a TTL lower than the option value.  This can be used to
implement the Generalized TTL Security Mechanism (GTSM) according to
RFC 3682.

OK'ed by christos@.
2009-07-17 22:02:54 +00:00
jakllsch
0f020c836e doswitch() has changed the value of argc by the time it's checked here,
adjust accordingly.
2009-07-17 20:31:20 +00:00
dsl
082a39150a Delete files that are no longer needed. 2009-07-17 19:42:04 +00:00
dsl
53a0f227e6 Change all archs so that strchr.[cS] and strrchr.[cS] exist and generate
duplicate symbols for index() and rindex().
2009-07-17 19:37:57 +00:00
dsl
03c902aa70 Change all archs so that strchr.[cS] and strrchr.[cS] exist and generate
duplicate symbols for index() and rindex().
libc and kernel build ok for affected archs (i386, amd64, vax, sun3,
evbmips-eb) all seem ok.
(vax might lose an asm index() - but comments imply it is worse than the C)
2009-07-17 19:37:54 +00:00
minskim
5731aa1460 Delete trailing whitespace. 2009-07-17 18:09:25 +00:00
christos
cfb4e5f917 Simplify the code. No functional change. 2009-07-17 12:28:27 +00:00
christos
e2d0108bb8 - off by one in the term.h case.
- make code more similar to tcsh (if we want to handle wide chars, this is
  needed; for now it is a no-op)
2009-07-17 12:27:57 +00:00
christos
59a88754a7 handle prompt_esc properly. 2009-07-17 12:26:26 +00:00
christos
537657ed45 Use the proper prompt printing function. 2009-07-17 12:25:52 +00:00
dyoung
b43b2d186c A definition in aic79xxvar.h somehow shadows pci_attach_args (ctags
bug?), so leave  it out of the tags computation for now.
2009-07-16 23:53:10 +00:00
dyoung
ca53a4b923 Callers expect getdiskinfo() to return -1 on error, so do that.
Simplify getdiskinfo() a bit while I am here: don't save error
codes that we will never refer to again.
2009-07-16 23:50:32 +00:00
tonnerre
7c437b76bb Fix behavior of dhcpd in the case where clientid and hardware ethernet
definitions are mixed. Fixes a refcount assertion.
2009-07-16 22:44:27 +00:00
dsl
487c31f545 Add asm files for str(r)chr by copying the files for (r)index from
src/libc/arch/mips/string.
Add XLEAF() for index entry points.
2009-07-16 21:25:36 +00:00
jakllsch
18f1b5273b Ignore scancodes E0 2A, E0 AA, E0 36, E0 B6 when decoding.
For the 10 keys on the editing keypad, these prefix/postfix
scancodes indicate the state of the Left Shift and Right Shift
keys and Num Lock indicator.

This change prevents a spurious WSCONS_EVENT_KEY_UP event upon
press as well as the corresponding WSCONS_EVENT_KEY_DOWN event
upon release.
2009-07-16 20:44:54 +00:00
jakllsch
4bdc2d7f77 Correctly bus_dmamap_sync() the transmit descriptors.
Previously the sync could run off the end and not sync
the beginning of the ring.  Logic gleaned from if_nfe.
2009-07-16 20:14:17 +00:00
dyoung
bbc238f2cd Let us detach & re-attach children of mfi0. Detach mfi0 at shutdown.
Detachment may fail after freeing some but not all resources, so
take care not to re-release any resource during detachment.

Tested on a Dell PowerEdge 1950.
2009-07-16 18:58:38 +00:00
dyoung
ebab3c38ca device_t/softc split. Tested and shown to work on a Dell PowerEdge
1950.
2009-07-16 18:10:00 +00:00
christos
ba603ac79f a little more diagnostic 2009-07-16 14:21:12 +00:00
christos
6a588dd8e6 handle protection fault properly. 2009-07-16 14:18:09 +00:00
yamt
805e61e887 draft-ietf-syslog-protocol-23 -> RFC 5424 2009-07-16 13:33:44 +00:00
yamt
d3f7e0ef11 update 2009-07-16 13:28:17 +00:00
tsutsui
78b680c5cf Revert previous per comment from ad@ in PR 41668, which is no longer orphaned. 2009-07-16 10:43:22 +00:00
wiz
ce0cbbff10 New sentence, new line. 2009-07-16 07:31:48 +00:00
minskim
bc24900fc3 Note ip(4) changes. 2009-07-16 04:18:21 +00:00
minskim
ca28940e0e Add the IP_RECVTTL option support.
If the IP_RECVTTL option is enabled on a SOCK_DGRAM socket, the
recvmsg(2) call will return the TTL of the received datagram.  The
msg_control field in the msghdr structure points to a buffer that
contains a cmsghdr structure followed by the TTL value.

Modeled after FreeBSD implementation.
2009-07-16 04:09:51 +00:00
dyoung
c85f1bbee5 Try to detach ancestors (sd0 at scsibus0, scsibus0 at mfi0), first,
to avoid dangling references to envsys(4) sensors and such if
detaching the ancestors should fail.
2009-07-16 01:30:10 +00:00
dyoung
78500bdfd5 Add a rudimentary detachment hook for mfi(4). 2009-07-16 01:01:46 +00:00
rmind
569aa0de8b Revert previous: disable direct I/O on pipe, it cought a problem with emap. 2009-07-15 21:09:41 +00:00
christos
6c781e23d6 use the proper structure to get interface data. We depend on having the
NetBSD-specific ZIFDATA call to do the selection of the ioctl style.
From Patrick Welche.
2009-07-15 18:05:17 +00:00
tsutsui
73cf34a890 Add MONOLITHIC kernel to i386 release binaries. PR#41668 2009-07-15 14:11:02 +00:00
joerg
86a313cf0e .Xr takes exactly two arguments plus separators, so fix the use here. 2009-07-15 09:50:08 +00:00
wiz
0cb83a1a01 New sentence, new line. Add RCS Id. Make HTML-ready. 2009-07-14 21:40:02 +00:00
tls
44571ac47c Clarify accf_http manual page per wiz's request. 2009-07-14 21:37:50 +00:00
apb
3ac228d1b2 Declare "com" as volatile in execute(), to make it safe to use
across setjmp/longjmp.

Inspired by PR 41255 from Kurt Lidl, but this change makes "com" a
volatile pointer to const non-volatile data, whereas the PR made it a
non-volatile pointer to const volatile data.
2009-07-14 21:15:48 +00:00
apb
0a2587be49 Initialise the "fork" local variable in hfslib_get_file_extents().
This variable was not actually used uninitialised, but some compilers
(e.g. gcc-4.3.3) warned that the variable might be used uninitialised.
Inspired by PR 41255 from Kurt Lidl.
2009-07-14 21:12:18 +00:00
apb
3e4a7fe1fe Don't assume that two identical-looking string literals will have the
same address and will therefore be comparable with the == operator.
Instead, use a const variable.
Inspired by PR 41255 from Kurt Lidl.
2009-07-14 21:08:31 +00:00