Commit Graph

132661 Commits

Author SHA1 Message Date
dsainty
7e7f191f7d Add a missing space in a comment 2004-12-30 09:32:13 +00:00
darrenr
760d20de7a the bitmask array in this file should be the same as the one in fil.c if
rules with v6hdr options are going to match packets.  this sorts the array
by incrementing value of the v6 option.
2004-12-30 08:29:09 +00:00
christos
1466914ff3 add size_t casts. 2004-12-30 05:11:50 +00:00
christos
bd66ab4a14 cast to size_t
remove unneeded casts.
2004-12-30 05:08:37 +00:00
christos
1c5c5f5ad5 cast to size_t/socklen_t 2004-12-30 05:07:43 +00:00
christos
1b235e3efc cast to socklen_t/size_t 2004-12-30 05:06:33 +00:00
christos
3fd676b16c cast to size_t 2004-12-30 05:01:50 +00:00
christos
1f3a2bf23d sz should be size_t 2004-12-30 05:01:19 +00:00
christos
70c807f499 - cast to size_t
- sz should be size_t
2004-12-30 05:00:42 +00:00
christos
0e1ce86abc cast 1 to size_t 2004-12-30 04:58:40 +00:00
rumble
3de38c1738 Replace the hpc0 base address with the definition from
hpc/hpcregs.h.
2004-12-30 02:41:03 +00:00
rumble
4aa50cac2f Remove a few HPC1 register definitions for ones that don't exist.
Also, HPC1_ENET_INTDELAYVAL isn't a magic number. It turns the
interrupt delay off (by being the timer trigger bit), so name it
more appropriately.
2004-12-30 02:35:41 +00:00
rumble
57329acafa Wrap seeq and hpc register reads and writes in macros for
readability. While here, engage in some KNF and 80-column policing.
No functional changes intended.
2004-12-30 02:26:20 +00:00
christos
28b908ca06 add size_t casts to silence up lint where size_t is unsigned long. 2004-12-30 02:25:51 +00:00
lukem
884b4146ae re-add inclusion of <bsd.lib.mk> for LIBDPLIBS optimization, with an
empty libinstall rule so Things Work.
2004-12-30 00:11:50 +00:00
simonb
54e42386be Remove the inclusion of <bsd.lib.mk>. There are no libraries in this
directory, only its subdirectories.
2004-12-29 22:35:35 +00:00
bjh21
73c7ba9d59 If clock_ymdhms_to_secs() fails, return ERANGE. This gets my ELC with
a broken NVRAM to boot cleanly.
2004-12-29 21:33:42 +00:00
snj
3f3ef0d7ea "\-" makes a minus, "-" does not. 2004-12-29 21:15:02 +00:00
bjh21
0b38b82a21 Document clock_ymdhms_to_secs()' returning -1 for unrepresentable input. 2004-12-29 20:56:43 +00:00
bjh21
8f7f78f2f0 In clock_ymdhms_to_secs(), rather than returning rubbish when presented with
a year before 1970 or a date beyond the time_t rollover, return -1 so callers
can detect it.  Callers which expect the function not to fail just get a
different kind of rubbish from before.
2004-12-29 20:55:57 +00:00
nathanw
74718675cc Avoid passing zero-valued timespecs to timer_settime() when we want to set
a timer, as that will clear the timer instead. Pass in a safely in-the-past
value instead.
Addresses PR lib/28700.

(XXX passing in values between 0 and 1000 nanoseconds will still fail, but
 that bug needs to be fixed in timer_settime(), not here)
2004-12-29 20:47:39 +00:00
nathanw
0e417b7b3a Add tests for pthread_cond_timedwait() at time zero, as discussed
in PR lib/28700.
2004-12-29 20:34:11 +00:00
dyoung
23e8e34093 Remove the cut & pasted copyright and apply my copyright. 2004-12-29 19:43:27 +00:00
dyoung
cef7a909d1 Add my copyright. 2004-12-29 19:41:54 +00:00
dyoung
c3a19d4272 In rtw_detach, flag the rtw as "invalid" (RTW_F_INVALID). Do not
try to power-down the RF section of an invalid rtw.

The radiotap signal quality field is 16, not 8, bits wide.  Convert
the byte order.
2004-12-29 19:41:04 +00:00
jdolecek
015f874310 fix error printf()
change one mask to use hexadecimal number instead of decimal, so it's easier
to verify
2004-12-29 18:14:12 +00:00
reinoud
533a9f0186 Remove conditional around label. Its allways used in the code and thus not
explicitly only for the protocols indicated by the #if

Allthough its unlikely a kernel will be build without NET_INET, it will
fail compilation here when NET_INET is not defined.
2004-12-29 17:57:19 +00:00
lukem
fddd5ca989 Move libpam until after everything that it depends upon.
Fixes build that starts with empty OBJ and DEST dirs.
2004-12-29 15:49:42 +00:00
lukem
178fb7b023 Use LIBDPLIBS to provide the list of libraries for the modules to depend
upon, because:
 * it's MUCH quicker; no need to calculate the OBJDIRS of every library
   we might require in every subdir.
   (make obj drops from 21s to 3s on my system.)
 * it's more robust when building to a fresh DESTDIR.
2004-12-29 15:04:06 +00:00
lukem
72352e0662 document LIBDPLIBS 2004-12-29 14:46:24 +00:00
lukem
e0f9049e4d When setting DPADD based on LIBDPLIBS, only add the .so if it exists
and fallback to the .a instead.  This allows the use of libraries
which are .so only, have both .so & .a, and are .a only.
2004-12-29 14:41:05 +00:00
grant
52d13a428a when generating maps, use -n argument to stdhosts(1) so ipv6 addresses
are allowed.
2004-12-29 13:08:24 +00:00
agc
6e58e2a640 Introduce a new abstraction in the C code, called MaxPathSize. All
previous occurrences of MAXPATHLEN and FILENAME_MAX have been changed
to use MaxPathSize instead.

If MAXPATHLEN is not defined, then assume a default value of 1024
(this is primarily for use on the Hurd).

The reason for this is that some older platforms define FILENAME_MAX
to be 14, although MAXPATHLEN is 1024. On BSD-derived systems,
FILENAME_MAX And MAXPATHLEN are both 1024.

Bump pkg_install version to 20041226.

These modifications have been tested so far on a NetBSD-current bulk
build.
2004-12-29 11:34:59 +00:00
skrll
c3dc5c50d9 Add the missing suspended state 'U'.
Bump date.
2004-12-29 08:48:09 +00:00
imp
ed235136f1 regen for usbdevs 1.392 2004-12-29 08:40:30 +00:00
imp
b5cc71aac7 From FreeBSD:
Add note about where to find official USB VIDs.
2004-12-29 08:38:44 +00:00
rumble
d4734bb3d4 Fix the HPC1 transmit logic, which was previously very broken.
HPC1 does not mark transmitted descriptors like HPC3. We must
query the HPC1 chip to determine what it expects the next
descriptor to be, reclaim used ones, and restart if necessary. Each
revision's corresponding logic now lives in its own
sq_txring_hpc{1,3} function.

HPC1's transmit interrupt conditions also differ from HPC3, so
remove the INTR bits from descriptors when tagging new packets on
to the end of the chain in order to avoid unwanted interrupts.

Also, be extra careful when restarting the transmit ring. Since
transmit interrupts seem to be relatively slow on HPC1, sq_start
may be called while the DMA engine is quiescent, and before a
transmit interrupt is asserted. We cannot behave like HPC3, which
begins transmission from the first packet pulled from IFQ if the
DMA engine is quiescent as this would skip enqueued packets. It
appears that sq_start is never called before HPC3 asserts an
interrupt, which restarts the transmit queue at the appropriate
place. However, this often happens with HPC1 and we cannot assume
that if DMA is inactive in sq_start, then all previously queued
packets have fled the coop.
XXX Is there a similar race possible with HPC3?

HPC3 logic should remain functionally unchanged, and HPC1 should
finally work properly.
2004-12-29 06:57:52 +00:00
joff
38cddbe010 Add epcom serial UART char device found on Cirrus Logic EP93xx ARM9 SoC's 2004-12-29 06:36:46 +00:00
joff
5beb7d303e improve intr handling behavior in light of the fact that there is no transmit completion irqs on epcom 2004-12-29 06:31:32 +00:00
rumble
5cf01464f1 HPC1 seems to benefit from larger rings. This should be especially
true on the transmit side, which appears to be significantly slower at
interrupting than HPC3.

XXX I used to be able to occasionally wedge the chip with
SQ_NTXDESC == 32, but have not yet been able to reproduce that
behaviour this evening with a larger value.
2004-12-29 06:28:14 +00:00
joff
193578fd49 Bump UPAGES back down to 8KB now that real issue was found with ep93xx intr handling 2004-12-29 04:47:44 +00:00
joff
54fe88f7fd Fix the potential recursion processing soft interrupts that was eating
all the stack.
2004-12-29 04:46:13 +00:00
christos
bc6fc4a390 Build libpam last because the modules need to access other libraries. 2004-12-29 04:16:46 +00:00
christos
bfc0dd3a06 Link with libraries from the source build directory. 2004-12-29 04:16:17 +00:00
rumble
e837411407 Remove the static sq_trace array and make it per-device as
multiple seeq interfaces may exist. While here, add a few trace
actions, move the related macros into sqvar.h, and enhance the
sq_trace_dump output a bit.
2004-12-29 02:11:31 +00:00
christos
f3ff62b84d Add comments in the pmake style, and factor out a local variable.
No functional change.
2004-12-29 01:55:25 +00:00
dyoung
c75b3dae43 Remove some dead code. 2004-12-29 01:13:07 +00:00
dyoung
9bd9e3df21 Remove unused rtw_softc variables and some other dead code. 2004-12-29 01:11:24 +00:00
dyoung
c3b84ef737 I like the tlp/atw-style names for software descriptors, txsoft,
better than txctl.  Change from rtw_txctl/rtw_rxctl to
rtw_txsoft/rtw_rxsoft.  Change the descriptor blocks' names to
match: rtw_txctl_blk becomes rtw_txsoft_blk.  Change the member-name
prefixes for both software and hardware descriptors.
2004-12-29 01:06:52 +00:00
nathanw
fae5965c52 Implement pthread_attr_{set,get}schedpolicy() at the same level as the other
scheduling stuff: only handle SCHED_OTHER. Like the rest of the scheduling
stuff, this is for the benefit of code that can't be bothered to test against
_POSIX_THREAD_PRIORITY_SCHEDULING.
2004-12-29 00:59:57 +00:00