Commit Graph

230717 Commits

Author SHA1 Message Date
ozaki-r
9acfc293f2 Add ETHERCAP_VLAN_MTU capability to vioif 2014-10-09 04:58:42 +00:00
ozaki-r
a87495cc1c Do KASSERT(KERNEL_LOCKED_P()) only when NET_MPSAFE off
When NET_MPSAFE, bridge_enqueue calls vlan_start w/o KERNEL_LOCK.
2014-10-09 04:48:12 +00:00
wiz
00e22b0153 Drop trailing whitespace. 2014-10-08 22:10:04 +00:00
martin
bdbd5db812 More interrupt handling, more debug code, less magic numbers. 2014-10-08 18:24:21 +00:00
martin
bad1510796 Fix a few bits, add more status bit definitions and some comments.
Remove driver specific preference definitions.
2014-10-08 18:23:32 +00:00
apb
82cbb6b06d Improved handling of local times.
* A magic value USE_LOCAL_TIME (defined as 99999) may be passed as the
  Timezone to Convert(), instructing it to use mktime() to work
  in the local time zone, instead of using mktime_z to work in UTC
  (and then adding the specified timezone offset).
* Some old code is removed now that there's no need to find the local
  timezone offset.
* Allow either one or both of the now and zone arguments to
  parsedate() to be NULL, treating them independently.  Previously,
  if either one was NULL, the other was ignored.
* If the zone argument is specified, then the current date is calculated
  in the specified zone, not in local time.

Also add some disabled debug code.

This should fix PR lib/47916.
2014-10-08 17:38:28 +00:00
apb
4206688740 2013-07-09 was in British Summer TIme, so use tzoff=-60, not 0. 2014-10-08 17:23:03 +00:00
apb
5b0c63042a When tests fail, print all args, notjust the date string. 2014-10-08 17:21:40 +00:00
apb
8afaf3e03b The tzoff argument is in minutes (behind/west of UTC), not seconds.
While here, also say that time = NULL and tzoff = NULL are independent.
The code doesn't yet implement that, but it will soon.
2014-10-08 17:06:18 +00:00
taca
e8af77a953 Make behavior of getsockname(2) (and maybe getpeername(2)) as the same as
NetBSD 6.1_STABLE and other operating system (OS X 10.9.5).

* sa_len of sockaddr_un strucrure is always set to sizeof(sun_path).
* pathname stored in sun_path is alwasys '\0' terminated (except length
  of sun_path is sizeof(sun_path)?).

Should be fix PR kern/49247, runtime problem of lmtp service of dovecot2 on
NetBSD current and NetBSD 7.0_BETA.
2014-10-08 16:13:02 +00:00
apb
bb7c1cf124 Add a new non-terminal "time_numericzone" for a time with
a numeric timezone.  Move some productions from "time" to "time_numericzone".
Increment yyHaveZone when encountering one of these.

Previously, input of the form "HH:MM:SS +ZZZZ" would not have set the
yyhaveZone flag.
2014-10-08 14:43:48 +00:00
apb
7ab26473da A time like HH:MM:SS.sss says nothing about whether DST is on or off. 2014-10-08 14:32:29 +00:00
apb
4e0616873f Add tests for PR lib/47916. Some of these fail. 2014-10-08 13:26:47 +00:00
martin
6a83d78f0f Make yeartot() declaration match prototype. 2014-10-08 13:13:34 +00:00
macallan
4268f6a212 Ths has been sitting in my tree for years...
Allow the Xserver to map PCI IO space. Not needed for Sun-branded graphics
cards but Xorg can actually cold boot a few others, which will need it.
( if only to access standard VGA registers )
2014-10-08 10:30:27 +00:00
msaitoh
293393def8 Fix typo. 2014-10-08 05:44:03 +00:00
ozaki-r
91a7ee4dbe Add missing semicolon 2014-10-08 03:34:44 +00:00
ozaki-r
f0449171ba Don't turn promisc off in vioif_deferred_init if already configured as promisc 2014-10-08 01:45:14 +00:00
apb
ba5f5ce70d Document that years in ISO 8601 dates are taken literally.
"69-09-10" is in the year 69, not 2069.
2014-10-07 22:39:32 +00:00
apb
cad616778a Adapt to a recent change in parsedate().
"9/10/69" still refers to 2069, and "9/10/70" still refers to 1970,
but "69-09-10" and "70-09-10" now refer to the years 69 and 70.
2014-10-07 22:33:52 +00:00
apb
a777540768 Some years don't need the "maybe add 1900 or 2000" adjustment
that was designed for handling two-digit abbreviated years.
For example, "1/2/70" still refers to the year 1970, as before,
but "70-01-02" now refers to the year 70.

* Add a new yyHaveFullYear member to struct dateinfo, to record whether
  or not the year needs to be adjusted.
* Code that parses years sets yyHaveFullYear=1 if they know that the
  year should not be adjusted (as is the case for ISO 8601 dates), or if
  they perform their own adjustment (as is the case for CVS timestamps).
* Move the year adjustment code into a new function, AdjustYear,
  instead of inline in Convert().
* Make Convert() assume the year doesn't need to be adjusted,
  and make Convert's callers first call AdjustYear() if appropriate.
2014-10-07 22:27:14 +00:00
christos
c3777759a4 don't define functions we define in our own headers 2014-10-07 22:20:33 +00:00
christos
6eda9e7a82 Fix backslashes 2014-10-07 22:20:17 +00:00
christos
092796a0e8 add defines 2014-10-07 22:20:02 +00:00
christos
d953dfb290 remove version stuff 2014-10-07 22:14:46 +00:00
christos
30173ba7ad set some variables we need 2014-10-07 22:14:05 +00:00
christos
b9c0573bec mention new tzcode. 2014-10-07 21:52:41 +00:00
christos
1f6103b179 Sync with tzcode2014h 2014-10-07 21:51:03 +00:00
christos
3a0f0eb646 sync function signatures with tzcode 2014-10-07 21:50:36 +00:00
matt
80324f8437 fix some c&p bugs. 2014-10-07 21:32:10 +00:00
apb
cf077958e6 Add comments for some non-obvious cases.
Also add a test with year=70, which is documented to be treated as 1970.
2014-10-07 19:26:31 +00:00
apb
fc447ec4e5 Add local parsecheck() function and use it for several tests.
Instead of just checking that parsedate(3) does not return an error,
also pass the result through localtime_r(3) or gmtime_r(3) and check the
year/month/day/hour/minute/second fields in the resulting struct tm.
2014-10-07 19:20:28 +00:00
roy
ccc4fd50bb sleep for 0.05 seconds instead of 2 seconds when checking if the pids
are still alive for a much faster exit.
2014-10-07 19:09:45 +00:00
gson
660533ae91 In the exp2_values test case, provide separate expected return values
for the float case, reflecting the actual exp2f() argument value after
rounding to float precision.  Fixes PR lib/49256.  Thanks to Makoto
Kamada and Tetsuya Isaki for the analysis.
2014-10-07 16:53:44 +00:00
msaitoh
41b9704662 No functional change.
- 0 -> NULL
- Don't use cast.
- Style fix.
- Fix typos in comment.
2014-10-07 15:34:05 +00:00
he
89a215e851 Do the previous correctly... 2014-10-07 12:58:09 +00:00
justin
87c18243d5 Canonical Minix check as pointed out by Marc 2014-10-07 12:48:02 +00:00
he
d01de6e07a As is evidenced by several of our 32-bit MIPS ports, it's wrong to
print vsize_t with PRIx64 -- instead use our own PRIxVSIZE macro.
2014-10-07 11:37:06 +00:00
ryo
8bc1f582cb add support imx6 I2C Controller 2014-10-07 09:36:09 +00:00
ryo
506baf549a forgot to commit about changes of ccm 2014-10-07 09:32:47 +00:00
ozaki-r
5ffd005a96 Tidy up locking in wm_ioctl 2014-10-07 08:45:02 +00:00
mlelstv
4418265934 fwrev is a timestamp, print in decimal. 2014-10-07 08:37:18 +00:00
skrll
ceca98f903 Mailbox improvements from mlelstv@
Serialise access to the mailbox and use interrupts.

XXX if (cold) should go
2014-10-07 08:30:05 +00:00
ozaki-r
77ea368b90 Don't call ifmedia_ioctl with holding locks 2014-10-07 07:04:35 +00:00
skrll
0fe4d97eb3 IPL_BIO -> IPL_VM
No functional change. No code change... It's the same thing!
2014-10-07 06:44:38 +00:00
roy
9370e2c6c5 Note import of dhcpcd-6.5.0 2014-10-06 18:30:24 +00:00
roy
77cf2730df Sync 2014-10-06 18:22:29 +00:00
roy
041ac88e49 Import dhcpcd-6.5.0 with the following changes:
*  Fix an unaligned access error on BeagleBone Black with FreeBSD.
     Thanks to Guy Yur for the patch.
  *  Remove the fast loop trying to up an interface which does not
     report carrier.
  *  Remove vis based encoding - instead validate against option type and
     stop at invalid [1]
     This removes all shell escaped encoding - dhcpcd will assume that IF
     the --script option is a shell, it will quote variables correctly.
     The stock dhcpcd-run-hooks does.
  *  dhcpcd -V now prints how the variables will be decoded.
  *  Changed some options in dhcpcd-definitions.conf to more sensible defaults.
  *  Don't daemonise on delegated address dad.
  *  Don't drop delegated reject route when forking.
  *  Fix IPv6 handling of link-local addresses on KAME stacks.
  *  Work on OpenBSD-5.6 without any special interface setup needed.
  *  Callout to handlecarrier when we don't have real carrier support and
     rely on looking at IFF_UP and IFF_RUNNING.
     This allows our hooks to know that dhcpcd thinks we have a carrier or not.

[1] DHCP option encodings defined in dhcpcd-definitions.conf
  *  domain (RFC3397)/dname (string) is strict domain name allowance
     (ie, [alnum] with _- (but not at the start or end))
  *  string is now printable ascii (1-127) until invalid
  *  ascii is all ascii (1-127) until invalid
  *  raw is all chars (1-255) until NUL
  *  binhex is a hex representation of the option including embedded NULs
  *  ssid is still escpaed octal because it's expected to be human readable
     AND can technically be all NUL
  *  everything else has strict option -> value encoding
2014-10-06 18:20:16 +00:00
christos
1f0b2731c3 PR/49054: Uwe Toenjes: Some RAID controllers return more bytes in the
scsi 3 inquiry command than expected by the size of the scsi 3 inquiry
packet. This can be detected by looking at the additional_length field
returned by the scsi 2 inquiry. If that's the case, avoid doing the
scsi 3 inquiry because we can't handle the extra bytes later.
XXX: Pullup -7
2014-10-06 14:42:08 +00:00
he
60c92b53ed Make this build again without debugging enabled; DPRINTF() can end up
as empty, and in an if conditional, you then need braces if that's the
only potential body.
2014-10-06 14:26:44 +00:00