Commit Graph

240986 Commits

Author SHA1 Message Date
skrll
9ca2ac75a1 Reduce diff to upstream by using
sys/external/bsd/{include/workqueue.h,linux/linux_work.c}

This also fixes CI20 dwctwo start up as reported by macallan@
2016-02-24 22:17:54 +00:00
skrll
2d57c14827 Trailing whitespace 2016-02-24 22:14:39 +00:00
skrll
56ee701972 Trailing whitespace. 2016-02-24 22:09:09 +00:00
skrll
62976e3600 Move linux_work.c and workqueue.h from sys/external/bsd/drm2 to
sys/external/common so that they can be used by others.

LGTM from riastradh@

These should really live outside sys/external, but that can be decided
later
2016-02-24 22:04:15 +00:00
joerg
f247f26769 Make the default CPP path a list and check if they are access(2)able.
If no match is found, fallback to looking for cpp in PATH.
2016-02-24 21:11:34 +00:00
christos
1674f8e308 Fix el_{w,}getc documentation (Ingo Schwarze) 2016-02-24 19:45:48 +00:00
christos
7fc140d15b Fixes from OpenBSD via Ingo Schwarze:
1) Missing comma after tok_str in NAME.
   OpenBSD rev. 1.38 Sep 10, 2015 (schwarze)
2) Style: void in argument list.
   OpenBSD rev. 1.39 Sep 14, 2015 (schwarze)
3) English punctuation: stray comma.
   OpenBSD rev. 1.37 Mar 13, 2015 (jmc)
2016-02-24 18:28:54 +00:00
ginsbach
7a1819b192 Remove double space before [.,:] in macro arguments. 2016-02-24 17:38:15 +00:00
christos
fe2cf455d0 Tuck in mbstate_t to the wide char version only to avoid exposing the zeroing
hack and doing it in the narrow case.
2016-02-24 17:20:01 +00:00
ginsbach
5299bba682 Add the [n]ei and [n]eei options to the synopsis; already documented in
description.
2016-02-24 17:13:48 +00:00
christos
94623721e8 Make the read_char function always take a wchar_t * argument (Ingo Schwarze) 2016-02-24 17:13:22 +00:00
wiz
60be27da02 gdb-7.11 is out. 2016-02-24 16:06:20 +00:00
wiz
4cf0de9860 file system police. 2016-02-24 15:28:36 +00:00
christos
8b2383fc90 PR/46327: David Mandelberg: Fix exit codes of background jobs (from kre) 2016-02-24 14:57:12 +00:00
christos
59f04ac937 Simple script to create node names for debugging 2016-02-24 14:51:20 +00:00
christos
22e9b677fe uncomment clean up 2016-02-24 14:42:50 +00:00
christos
b189a00530 Test improvements from kre 2016-02-24 14:42:06 +00:00
christos
750aa9221b If we don't have shared address space vfork fail back to using fork since
we are depending on the shared address space feature (from kre)
2016-02-24 14:38:40 +00:00
christos
57f3725a64 Make sh.1 catch up with reality. Document -h (such as it is...)
and also added doc for some other stuff that was missing.

Take the opportunity to clean up the way the flags are set in the
man page, so every new flag doesn't have to be added 6 times!
(Some of the lists were different from others, in ordering, and
content, for no good reason at all.)

Make a few other cleanups ... Add text about AND-OR lists,
This can be also used to justify closing an open PR:
(that "sh -c 'command &&'" is not a syntax error...).

Add doc for -F, which should default to set if the shell somehow
gets compiled without DO_SHAREDVFORK defined, (to be committed
separately)

XXX: Consider disabling DO_SHAREDVFORK if SMALL is defined?

From kre
2016-02-24 14:35:51 +00:00
christos
5f47d9bd72 A very simple, non-intrusive patch to fix a segfault (and a
functional error) in c_gets(), file chared.c.

Run any program using libedit in the default way.  At the el_[w]gets()
prompt, invoke ed-command (for example, in emacs mode, press the
escape key, then type the letter 'x').  You should see a ": " prompt.
Type the letter 'x' again.  Now press the backspace key a few times,
looking at the screen after each key press:

 - The 1st BS deletes the 'x'.
 - The 2nd BS deletes the blank after the prompt.
 - The 3rd BS deletes the colon of the prompt.
 - The 4th BS moves the cursor up one line.
 - The 5th BS gives me "Segmentation fault (core dumped)".

Depending on your platform, it might take a few more or a few less
backspaces for the buffer underrun to trigger the segfault, but
you should be able to hit it sooner or later no matter what.

Run the same program again, connect again and invoke ed-command again.
Now type: 'b', backspace, 'i', backspace, 'n', backspace, 'd', enter.
The "bind" command gets executed, even though you deleted what you
typed before hitting enter.

From Ingo Schwatze.
2016-02-24 14:29:21 +00:00
christos
7ba8c71b0d Get split el_getc and el_wgetc completely and call el_wgetc internally.
Change some character constants to they wide versions. (Ingo Schwarze)
2016-02-24 14:25:38 +00:00
roy
48f2a68bff White space police. 2016-02-24 13:31:54 +00:00
roy
061eb16dc2 White space police. 2016-02-24 12:01:44 +00:00
ozaki-r
ed89e004b6 Kill confusable use of SIN_PROXY 2016-02-24 08:01:09 +00:00
christos
a70fb49099 Add one more clean file 2016-02-23 22:32:48 +00:00
christos
dd29af5a4a Remove d-exp.c (generated file) 2016-02-23 22:32:07 +00:00
christos
95b061168f name the long option after the ksh name (trackall) to indicate the intended
posix behavior not the bash one.
2016-02-23 18:30:16 +00:00
macallan
ddcf74ce02 switch sparc to new binutils 2016-02-23 18:03:31 +00:00
christos
a9d1a1847c update that -n is implemented and add -h using the long name that bash
uses. (from kre, long name from me)
2016-02-23 16:22:43 +00:00
christos
246b514f8f add t_option 2016-02-23 16:21:55 +00:00
christos
c1ce7cf3ee Add t_option, from kre (with minor edits from me) 2016-02-23 16:20:42 +00:00
wiz
935a736188 Add libc++ to two debug sets. 2016-02-23 15:22:14 +00:00
christos
aeba4f7b70 Fix quoting inside heredoc's. (from kre) 2016-02-23 14:51:25 +00:00
christos
dd10ee88d0 Add new redirection test, from kre 2016-02-23 14:21:37 +00:00
skrll
a8be279001 Sort using mkheaderlist.sh:1.3 2016-02-23 11:43:57 +00:00
skrll
09049b2f7c Sort the output 2016-02-23 11:43:04 +00:00
ginsbach
3660d7d0e7 Use warnx(3). 2016-02-22 22:01:48 +00:00
ginsbach
db3e293160 Stray '\n' in errx(3) format. 2016-02-22 21:20:29 +00:00
christos
9e6b737d5a PR/43255: Make -n apply to the -c string so sh -n -c 'commands' works
as it should. Also, other places where the shell parses strings of
commands are also now controlled by -n (traps, eval, ...)  (from kre)
2016-02-22 20:03:48 +00:00
christos
7b91d0e80f PR/43469 has been fixed 2016-02-22 20:02:29 +00:00
christos
606614c83d PR bin/43469 - correctly handle quoting of the pattern part of ${var%pat}
type expansions. (from kre)
2016-02-22 20:02:00 +00:00
christos
48d23ac8c3 new shell test 2016-02-22 19:53:16 +00:00
christos
449b5d003c Add new test 2016-02-22 19:52:03 +00:00
christos
863fff4621 Fix for PR bin/48631 - allow commands controlled
by case statements to be nothing more than redirects (from kre)
2016-02-22 19:42:46 +00:00
christos
b8f416fe8e Finish the fix for PR/48631 - that is, make the parser correctly
handle the token syntax it really should be handling (including
some that posix does not require, but is right anyway.) This is
quite similar to, and to some extent inspired by the way the FreeBSD
sh parser.c works, but the actual implementation is quite different.
(from kre)
2016-02-22 19:38:10 +00:00
christos
87624d803c KNF / whitespace fixes. No changes of substance. (from kre) 2016-02-22 19:25:26 +00:00
ginsbach
781408a293 Use errx(3). 2016-02-22 19:04:18 +00:00
roy
06d45ff91d Note import of openresolv-3.7.3 2016-02-22 10:10:15 +00:00
roy
375786737e Sync 2016-02-22 10:09:06 +00:00
roy
2644931fa7 Import openresolv-3.7.3 with the following changes:
*  Save the initial working directory and change to it just before
     running any scripts.
     This avoids scripts putting files accidently where they shouldn't.
  *  Strip trailing dot from search and domain names.
  *  man page improvements.
2016-02-22 10:07:26 +00:00