Commit Graph

249444 Commits

Author SHA1 Message Date
knakahara
9d434f8937 fix PR kern/52068 (82574 Tx csum offload bug in not only i386 but also amd64).
The packets sent from txq[1] could not be enabled any tx offload.
This has been enbugged since r1.454.
2017-03-21 10:39:52 +00:00
riastradh
beaabe9bc1 regen 2017-03-21 10:20:38 +00:00
riastradh
5d01d2672d Tiny fix for namecache locking rules. 2017-03-21 10:20:12 +00:00
wiz
465830a019 Add width argument to list. 2017-03-21 10:12:28 +00:00
maya
ea9463715e Update mtime even if oip->i_size == length
PR kern/51762, LFS version.
2017-03-21 09:53:00 +00:00
nat
cf3b979950 Renane ioctl AUDIO_SETPROC to AUDIO_SETCHAN.
Add an ioctl to return channel number (AUDIO_GETCHAN). This can be used
on audio/sound/audioctl devices.

Return EIO in read/write/ioctl/poll/stat if fp has been closed or is
invalid.

Update audio.4, audioio.h and audioctl(1) to reflect these changes.
2017-03-21 07:04:29 +00:00
ozaki-r
3772aa0189 Add a test case for PR kern/52083 2017-03-21 04:03:17 +00:00
ozaki-r
20fd1f7ca2 Fix typo 2017-03-21 02:24:35 +00:00
scole
1c8dc2cc2e Add most common thai length/area measurements of wah rai ngan 2017-03-21 01:21:59 +00:00
kre
cd91c66b27 Ugh. This stuff is disgusting. We really need an arch dependent
PRIxOFF (and PRIdOFF) to print off_t's in a way that matches the
arch's definition of off_t.

In the meantime fall back on %jx and an (intmax_t) cast.   Ugly.
(And the way it is written is even uglier...)
2017-03-20 22:57:04 +00:00
nat
333c92f0be Adjust array bounds depending on type in macros for mix/saturate/recswvol. 2017-03-20 22:42:39 +00:00
kre
996a70951c At the suggestion of Matthew Sporleder (on current-users@) reword some
of the description of arithmetic expressions to make it a bit more
human friendly.

While here fix a few other minor errors, and bump date.
2017-03-20 22:17:56 +00:00
christos
0fb210a2c1 elide compiler stupidity. 2017-03-20 22:05:27 +00:00
skrll
4cdfaee5d1 +KDTRACE_HOOKS and INSECURE 2017-03-20 21:30:47 +00:00
skrll
08fa3118c0 convert spaces to tab 2017-03-20 21:08:55 +00:00
christos
010ddb1dfc Make this compile again (gcc does not like strcmp(maybe-NULL, maybe-NULL);
simplify the life of the {compiler,human eyes}.
2017-03-20 20:44:06 +00:00
christos
f85b99dc0a Make this compile again: use ce instead of clr_eol which gcc thinks might
be NULL.
2017-03-20 20:42:39 +00:00
christos
12423e3e50 comment out unused code. 2017-03-20 18:19:34 +00:00
christos
476172bce3 set cloexec to the rc postprocessor fd (rudolf in tech-userlevel) 2017-03-20 16:02:48 +00:00
skrll
47c0068dba Ensure we pass the prot in flags to pmap_enter when creating a wired
mapping
2017-03-20 15:51:41 +00:00
roy
0f7015d835 Ensure there is a terminal to return capabilities from. 2017-03-20 14:46:28 +00:00
skrll
ec008a6479 Disable DIAGNOSTIC - it is already enabled in GENERIC.common 2017-03-20 14:06:43 +00:00
kre
ae3f786bf5 That will teach me to commit from the version I've actually
been testing, rather than the "other version" ...
2017-03-20 13:12:35 +00:00
wiz
7c2da65e86 Fix typo. 2017-03-20 12:16:07 +00:00
kre
62e20444ec The sh $(()) update is signifigant enough to mention... 2017-03-20 12:06:03 +00:00
kre
a787cac634 PR bin/52090 - the $* tests are no longer expected to fail. 2017-03-20 11:48:41 +00:00
kre
bda1f28d90 PR bin/52090 - fix expansion of unquoted $* 2017-03-20 11:48:01 +00:00
kre
0c0af3f55d Add tests for the $(( )) assignment operators PR bin/50958 2017-03-20 11:32:51 +00:00
kre
4d6f79f52d Alternative way of writing (part of) the arithmetic lexical analyzer
- committed separately to make it easier to swap back if desired.

This version avoids open coding is_name() and isdigit() - measurements
show it is perhaps fractionally faster (though the difference is so small
as to probably be statistically insignifigant - if I were a statician
I might understand that) and just a little larger than the previous version.
2017-03-20 11:31:00 +00:00
kre
cc8e58edf3 Finish support for all required $(( )) (shell arithmetic) operators,
closing PR bin/50958

That meant adding the assignment operators ('=', and all of the +=, *= ...)
Currently, ++, --, and ',' are not implemented (none of those are required
by posix) but support for them (most likely ',' first) might be added later.

To do this, I removed the yacc/lex arithmetic parser completely, and
replaced it with a hand written recursive descent parser, that I obtained
from FreeBSD, who earlier had obtained it from dash (Herbert Xu).

While doing the import, I cleaned up the sources (changed some file names
to avoid requiring a clean build, or signifigant surgery to the obj
directories if "build.sh -u" was to be used - "build.sh -u" should work
fine as it is now) removed some dashisms, applied some KNF, ...
2017-03-20 11:26:07 +00:00
kre
6c932ac002 Third time lucky...
Why is there no PRI[xd]OFF ?   How are off_t's intended to be printed?

If a PRIxOFF gets added in some appropriate place, the XXX lines in this
commit can go away.

(I understand not having PRI[xd]VOFF).
2017-03-20 10:44:24 +00:00
roy
3cd3ec3cb0 Put back filter(3) I mistakenly removed in r1.29 2017-03-20 10:20:16 +00:00
kre
dfa5db8c47 One more (should have noticed last time) and this time fix the
format the way it should have been fixed, not just what was easiest...
2017-03-20 07:31:28 +00:00
kre
48097a21f3 Perhaps fix printf format for KASSERTMSG (unbreak i386 build maybe).
This can be revisited by anyone who wants to do things better...
2017-03-20 04:35:04 +00:00
riastradh
27568595fc #if DIAGNOSTIC panic ---> KASSERT; __diagused police 2017-03-20 01:24:06 +00:00
riastradh
fe6928ab88 Gather alldevs into a cacheline-aligned struct. 2017-03-20 01:13:07 +00:00
riastradh
8a00741dd2 Omit needless volatile qualifiers.
All these variables are used exclusively with alldevs_mtx held, not
atomics.  No need for volatile voodoo here.
2017-03-20 01:06:29 +00:00
riastradh
1d7e0698c7 Assert ownership of alldevs_mtx, as required for config_makeroom.
The one caller in config_unit_alloc guarantees ownership, via
config_alldevs_enter and preserved by config_makeroom.
2017-03-20 01:05:03 +00:00
riastradh
f7e6ff90f6 Make sure we hold alldevs_mtx for access to alldevs in deviter.
- Extend alldevs_mtx section in deviter_init.
- Assert ownership of alldevs_mtx in private functions:
  . deviter_reinit
  . deviter_next1
  . deviter_next2
- Acquire alldevs_mtx in deviter_next.

(alldevs_mtx is not relevant to the struct deviter object, which is
private to the caller who must guarantee exclusive access to it.)
2017-03-20 00:30:03 +00:00
riastradh
291c0f694c #if DIAGNOSTIC panic ---> KASSERT 2017-03-19 23:47:46 +00:00
riastradh
b80fae26a9 __diagused police 2017-03-19 23:44:34 +00:00
riastradh
4ad0abb18f __diagused police 2017-03-19 23:30:39 +00:00
riastradh
4c213dd2b6 Fix inadvertently reversed sense of comparisons. 2017-03-19 22:48:00 +00:00
riastradh
c44c8b5563 #if DIAGNOSTIC panic ---> KASSERT 2017-03-19 22:19:05 +00:00
kre
86dd15a646 PR bin/52090
Add 5 new test cases to test various ways that $* can be expanded.
Currently 3 of the 5 are marked as "expected to fail" because of the
bug in this PR.
2017-03-19 20:29:30 +00:00
jakllsch
8455add462 Fix configure script to not always provide an extern for strsep(). 2017-03-19 16:51:45 +00:00
christos
20db644786 don't redefine EFTYPE (tools build, defined by compat_defs.h) 2017-03-19 15:34:26 +00:00
skrll
b2fbbaafb9 Support __HAVE_MM_MD_DIRECT_MAPPED_PHYS 2017-03-19 12:46:21 +00:00
tsutsui
d7673846d0 Mention about addition of luna68k's front panel LCD driver. 2017-03-19 11:22:32 +00:00
riastradh
626cf737cf regen 2017-03-19 10:21:25 +00:00