Commit Graph

242408 Commits

Author SHA1 Message Date
maxv
9acd6328a2 Switch to C-style comments, and reduce a little the diff between i386 and
amd64. No functional changes.
2016-05-11 17:48:05 +00:00
kre
5ab36d6022 Add a test for fd redirections on functions in loops (the etcupdate issue)
and also fix a quoting bug which was causing a test to fail, though
ATF was ignoring (an ATF bug to be investigated later.)

OK christos@
2016-05-11 17:43:17 +00:00
kre
fa4e47f7be It was twenty(-two) years ago today
J.T. Conklin told us not this way
Berkeley 4.4 lite's changed which file
And it's traced differently all this while
2016-05-11 17:28:30 +00:00
nonaka
f9c340b5f1 Don't establish interrupt in nvme_pci_attach() when multi queue isn't used. 2016-05-11 13:55:28 +00:00
martin
61342e9f06 Switch alpha and sparc64 back to gcc 4.8 and old binutils for now - too much
fallout from gcc 5.3 and no quick solution, it needs more work.
Binutils 2.26 does not play well with old gcc and causes random fallout
when building pkgs (e.g. /usr/pkg/lib/libgthread-2.0.so.0:
Trying to call undefined weak symbol `__deregister_frame_info' when
build gstremeer0.10)
2016-05-11 13:41:56 +00:00
skrll
55aaabd6e7 Add kernhist to SYS_GDBINIT 2016-05-11 10:39:31 +00:00
mrg
97e7e7950b add a gdb script to dump kernel histories. based upon a script by skrll,
updated by myself to run faster and more stupidly (but more workingly.)

normal gdb scripts don't seem to be able to call printf with the format
string as a variable, so we simply print the format itself as a string
and the (upto 4) arguments as unsigned long (how they're strored.)
2016-05-11 09:22:55 +00:00
skrll
eb30461f6b Update with info about tty/storage reservations 2016-05-11 06:42:06 +00:00
skrll
7dda1ddd26 Pullin opt_usb for UPLCOM_DEBUG 2016-05-11 06:38:04 +00:00
skrll
f70cf9b35a fix build 2016-05-11 06:07:52 +00:00
msaitoh
20025a8603 Add Precision Time Management (PTM) ECN. 2016-05-11 05:12:57 +00:00
msaitoh
9ea1e5fd3d Fix compile error on some archs (e.g. i386). 2016-05-11 04:37:09 +00:00
knakahara
fef3d1b2f0 Interrupt handlers read wm_rxqueue or wm_txqueue, so they must be freed after
disestablishing interrupt handlers.
2016-05-11 03:46:06 +00:00
rtr
a44831a800 provide const versions of container_of macros.
discussed with riastradh@ by email
2016-05-11 03:17:22 +00:00
riastradh
4637147e3e Use bus_space_subregion to get fifo channels out of mmio registers.
Evidently it is not enough to just map them separately.  Ran out of
time to investigate why, last time I poked at this and confirmed this
change works.
2016-05-11 02:28:33 +00:00
msaitoh
9da5129c92 Do I219 TX DMA workaround only when TDLEN(0) != 0 2016-05-11 02:23:50 +00:00
ozaki-r
472a3b6444 Fix builds of ALL kernels that define DEBUG_EXEC 2016-05-11 02:18:27 +00:00
riastradh
fc1fa2bfde Enable nouveau in i386/ALL. Omit incorrect option NV_DEBUG.
NV_DEBUG does not appear except as a macro function in nouveau, which
is broken by defining it on the command line.

From coypu.
2016-05-11 02:09:10 +00:00
sjg
1ea1c693f3 Allow for ignoring paths that match a set of patterns.
This can be expensive, so use with caution.
2016-05-10 23:45:45 +00:00
skrll
c1b93d26f6 Remove comment about splusb and replace with KASSERT(mutex_owned()) 2016-05-10 21:15:54 +00:00
skrll
5bb7bdaa1e More debug 2016-05-10 21:13:48 +00:00
pooka
c8a34480e3 Avoid '.' in variable names which are expected to be passed to
this Makefile via the env.

That character is strictly speaking not allowed by POSIX in an exported
variable name, and at least dash >= 0.58 refuses to export such variables.

Furthermore, since the individual CFLAGS/CPPFLAGS/etc. variables
are not comprehensive enough for all cases (e.g. HURD), just
support the .includable version from now on, i.e.
RUMPCOMP_MAKEFILEINC_rumpdev_pci.

curious failure mode debugged by Martin Lucina
2016-05-10 19:38:29 +00:00
palle
a86d6c4649 Update TODO: sun4v interrupts works (mostly) + note issue with mpt(4) on sun4v systems 2016-05-10 19:35:08 +00:00
mrg
d8ed176f44 move the ufs_lookup hack to the global section and update it to current
reality.  add a section for the crt hacks.
2016-05-10 19:32:47 +00:00
palle
7820dc41e7 sun4v: make device interrupts work. Introduce a new intrhand_alloc() function for allocation of interrupt handlers and adapt to this. Parts from OpenBSD. ok martin@ 2016-05-10 19:23:59 +00:00
reinoud
46e9cd4dbd Rework VAT searching on recordable media. It is now a lot more resilliant to
errors and it allows for VAT searching on crashed writeouts.

While here, make sure the node pointer is always initialised in
udf_get_node().
2016-05-10 15:23:39 +00:00
kre
4a9319b47c PR bin/48875 - minor correction (well, not so minor) - commands in loops
must be assumed to have something following, even if the loop itself doesn't,
so redirected fd's around func calls need to be saved.   Should fix etcupdate
2016-05-10 15:14:30 +00:00
pooka
ae809f65ce sprinkle _KERNEL_OPT 2016-05-10 15:14:03 +00:00
skrll
0f41c69003 Fixup ucom_cleanup to not forget our pipe handles.
Simplify ucomreadcb by dealing with the USBD_CANCELLED separately and
not taking sc_lock.  We can't hold sc_lock while aborting now.
2016-05-10 10:40:33 +00:00
martin
f5d70023d1 We need the -O1 hack (for gcc 5.3) for crtbegin.c as well.
Works around PR toolchain/51121.
2016-05-10 10:23:09 +00:00
mrg
a3ddb94352 update the micron smart codes for 247/248 to match data i found in
micron's "TN-FD-33: M510DC SSD SMART Implementation Introduction"
document.

these two values can be used to calculate the write amplication
factor:

   WAF = ( A247 + A248 ) / A247
2016-05-10 08:08:59 +00:00
sjg
83317c9428 Apply realpath() to p before matching against metaIgnorePaths. 2016-05-10 00:02:31 +00:00
kre
07e424459c PR bin/48875 PR bin/51123 This adds tests more that verify fide descriptor
redirection works correctly (including that the bugs reported in those PRs
are fixed.)  Note that the tests for 48875 are slow, so one of the new
test cases ends up running > 25 seconds (just doing sleeps) - each individual
test is just a few seconds, but there are several of them.

OK christos@
2016-05-09 22:34:37 +00:00
skrll
45619026b1 Don't forget to use HTOO32 when adding OHCI_TD_R to td_flags for short
reads.

Should fix problems with BE machines and ohci as reported on
current-users by Michael
2016-05-09 21:52:43 +00:00
christos
a2d6b270ec s/protected/libedit_private/g 2016-05-09 21:46:56 +00:00
christos
137ae6aea4 Instead of compiling all the source files together in one big file, use
protected visibility to achieve the same effect.
2016-05-09 21:38:27 +00:00
christos
ecb8efd172 Elide gcc warning about intermediate const casts caused by visibility change. 2016-05-09 21:37:34 +00:00
christos
f9ed317e87 GNU readline(3) regards history chronologically, that is, from the
perspective of the dawn of time, so "next" means "newer" and "previous"
means "older".  Libedit, by contrast, uses reverse chronology and
regards history from the perspective of the present, such that "next"
means "longer ago" and "previous" means "not so long ago".

The following patch fixes previous_history() and next_history()
as proposed by Bastian Maerkisch.

But there is a related problem demonstrated by Bastian's regression
tests that his patch did not fix:  next_history() can advance not
only to the newest entry, but beyond it, which core libedit cannot
do.  So that feature must be implemented locally in readline.c.

With that, the last of Bastians tests is fixed, test_movement_direction().

This patch also improves libedit documentation to more clearly state
what "previous" and "next" mean.  GNU readline documentation is
just as unclear, but we can't easily fix that since libedit doesn't
include its own readline.3 manual.

(Ingo Schwarze)
2016-05-09 21:27:55 +00:00
christos
05b61ce72a The libedit implementation of history_get() also differs from the GNU
implementation:  libedit goes to the entry with the given number
stored in the HistEvent structure, while GNU subtracts history_base,
then advances that many entries from the oldest one.  If entries were
removed in between, GNU advances further than libedit.

The call sequence H_CURR, H_DELDATA, H_CURR, H_NEXT_EVDATA looks
weird, as if part of that must somehow be redundant.  But actually,
the user interface is so counter-intuitive that every single step
is really required.

 - The first H_CURR is needed to be able to go back after an error.
 - The H_DELDATA is needed to move the cursor.  Even though it takes
   a pointer to ev, that structure is not filled in when the call
   succeeds.  H_DELDATA only moves the cursor, it doesn't tell us
   the new event number.
 - Consequently, the second H_CURR is required to get ev.num filled
   in.  But it doesn't return the data because ev has no field for
   that.
 - So even though the cursor is already positioned correctly,
   H_NEXT_EVDATA is needed as the final step merely to get the data.

(Ingo Schwarze)
2016-05-09 21:25:11 +00:00
kre
8a99e51de9 PR bin/48875 - avoid holding (replaced) file descriptors open when running a
command in the current shell (so they can be restored for the next command)
in cases where it is obvious that there is not going to be a following
command to use them.   This fixes the problem reported in the PR (though
there are still plenty of situations where a FD could be closed but isn't,
we do not do full fd flow eveluation to determine whether a fd will be
used or not).

This is the change that was just committed and then backed out again...

OK christos@
2016-05-09 21:03:10 +00:00
kre
baf83b5f55 Revert previous. These changes are intended to get made (and will
be in a minute or two) but not as part of that commit...   The log
entry certainly does not apply.
2016-05-09 20:55:51 +00:00
kre
07ee700a7e Finish the fd reassignment fixes from 1.43 and 1.45 ... if we are moving
a fd to an unspecified high fd number, we certainly do not want to hand
that high fd off to other processes after an exec, so always set close-on-exec
on the result (even if lack of fd's means no fd alteration happens.)
This will (eventually) allow some other code that sets close-on-exec to
be removed, but for now, doing it twice won't hurt.   Also, in a N>&M
type redirection, do not set close-on-exec if we don't want it.

OK christos@
2016-05-09 20:50:08 +00:00
kre
183536927f PR bin/48489 -- Shell "simple commands" are now not allowed to be
completely empty, they must have something (var assignment, redirect,
or command, or multiple of those) to avoid a syntax error.  This
matches the requirements of the grammar in the standard.   Correct the
parser (using FreeBSD's sh as a guide) and update the man page to
remove text that noted a couple of places this was previously OK.

OK christos@
2016-05-09 20:36:07 +00:00
martin
6f47729145 Avoid a "conversion to '__uint16_t' from 'int' may alter its value"
error on some architectures (like m68k).
2016-05-09 20:28:08 +00:00
skrll
f92670f913 Use the MI usb majors 2016-05-09 15:23:23 +00:00
christos
c7f0ba033b Account for the CRC len (Jean-Jacques.Puig) 2016-05-09 15:11:35 +00:00
christos
d7ac614b0a Don't increment the reference count only when it was 0...
From Jean-Jacques.Puig
2016-05-09 15:05:15 +00:00
roy
52185fadf0 Note import of dhcpcd-6.11.0 2016-05-09 10:21:42 +00:00
roy
ea7c879358 Define _OPENBSD_SOURCE so dhcpcd can access reallocarray(3). 2016-05-09 10:19:26 +00:00
roy
bc693cba55 Sync 2016-05-09 10:15:59 +00:00