Commit Graph

18115 Commits

Author SHA1 Message Date
christos
2ebf0c7f4d Undo the __dso_protected hackery. 2016-03-08 04:00:11 +00:00
christos
95e3bb37fd PR/50907: David Binderman: Remove useless strlen()'s and memcpy()'s. 2016-03-07 14:35:39 +00:00
christos
72614d1ec0 Remove advertising clause. 2016-03-07 00:05:20 +00:00
christos
d784c57539 PR/50880: David Binderman: Remove redundant code.
While here, fix all debugging formats.
2016-03-02 19:24:20 +00:00
aymeric
904c2b2729 protect __RCSID the same way other reg*.c files do, so that we can use this
file in libnbcompat
2016-02-29 22:10:13 +00:00
riastradh
17ca604b7a Skip libctf if MKCTF=no irrespective of MKDTRACE, for real.
Apparently this logic is copied in lib/Makefile and in
external/cddl/osnet/lib/Makefile.  Is the latter even used?
2016-02-29 20:59:35 +00:00
adam
2e943c33fb Fix buidling with MKPROFILE=no 2016-02-29 14:57:07 +00:00
christos
e7df8a2227 convert to 2 clause 2016-02-29 00:54:19 +00:00
christos
fc5e336abc remove 4 clause licenses. 2016-02-28 23:02:24 +00:00
joerg
c550715550 Sync with changes in the profiling implementation of compiler-rt.
Switch to the "Linux" runtime, which is kind of misnamed for the mostly
ELF based implementation. Make sure to hook up the runtime source
only for the profile library as it uses constructors for the output
creation.
2016-02-27 19:08:23 +00:00
joerg
80b4ccd26e Long double complex multiplication and division helpers are needed on
Sparc64 and AArch64.
2016-02-27 19:06:56 +00:00
christos
a1f44db787 PR/50863: John Hein: libedit el_end() messes up term settings if piped
Keep track if we initialized the tty, and only reset it if we did.
2016-02-27 18:13:21 +00:00
christos
f98000db53 Add _SC_TIMER_MAX 2016-02-26 17:13:01 +00:00
christos
77126bb261 lint comment 2016-02-26 17:12:53 +00:00
wiz
e1ae5a11b8 Use \- for minus sign, use Ev, use Er. 2016-02-25 14:59:22 +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
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
christos
94623721e8 Make the read_char function always take a wchar_t * argument (Ingo Schwarze) 2016-02-24 17:13:22 +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
christos
ebc28b6bda PR/50133: Martin Husemann: Can't cache $TZ.
XXX: Pullup-7
2016-02-20 20:11:37 +00:00
riastradh
301aaf756f Note that SCHED_OTHER must have priority PRI_NONE. 2016-02-20 16:00:10 +00:00
christos
f9c7ee08d4 PR/50822: David Binderman: Fix copy length. 2016-02-17 19:54:11 +00:00
christos
be8ee66399 PR/50823: David Binderman: Limit scanf width 2016-02-17 19:52:20 +00:00
christos
22383670cc whitespace and header sorting changes (Ingo Schwarze). No functional changes. 2016-02-17 19:47:49 +00:00
christos
e84df91e32 More header cleanups from Ingo Schwarze. 2016-02-16 22:53:14 +00:00
christos
bc4f01ce82 - don't set _GNU_SOURCE. We are not supposed to make decisions for others.
- don't special-case wcsdup()
From Ingo Schwarze.
2016-02-16 19:29:51 +00:00
christos
23f3e7075d get rid of bool_t (Ingo Schwarze) 2016-02-16 19:11:25 +00:00
christos
747f681109 more include file cleanup (Ingo Schwarze) 2016-02-16 19:08:41 +00:00
christos
a539b892c3 include errno.h 2016-02-16 15:54:15 +00:00
christos
aefc1e4460 From Ingo Scharze:
Let "el.h" include everything needed for struct editline,
and don't include that stuff multiple times.  That also improves
consistency, also avoids circular inclusions, and also makes it
easier to follow what is going on, even though not quite as nice.
But it seems like the best we can do...
2016-02-16 15:53:48 +00:00
christos
f09cb8c626 cleanup chartype.h includes (Ingo Schwarze) 2016-02-16 14:08:25 +00:00
christos
c807fdff98 one more 2016-02-16 14:07:47 +00:00
christos
40850369f8 cleanup inclusion of histedit.h (Ingo Schwarze) 2016-02-16 14:06:05 +00:00
christos
89cffc1532 include explicitly errno.h since we use it. 2016-02-16 14:04:58 +00:00
christos
67bb823526 No need to include "sys.h" from here; it is included from config.h 2016-02-16 14:04:24 +00:00
christos
d8252c8b23 attribute unused 2016-02-15 23:36:30 +00:00
christos
67b10d3e9e OpenBSD term.c rev. 1.7 2002/11/29 20:13:39 deraadt
spelling
2016-02-15 22:53:38 +00:00
christos
f91f480498 OpenBSD readline.c rev. 1.14 2015/02/06 23:21:58 millert
use SIZE_MAX
2016-02-15 22:48:59 +00:00
christos
92b1772005 OpenBSD readline.c rev. 1.13 2015/01/13 08:33:12 reyk
rl_set_keyboard_input_timeout() for readline 4.2 compat
2016-02-15 21:58:37 +00:00
christos
f8ee3c5528 OpenBSD eln.c rev. 1.3 2011/11/27 21:46:44 pascal
kill a C++-style comment
2016-02-15 21:56:35 +00:00
christos
42e2a4d875 Compile with WIDECHAR the same way the main Makefile does (Ingo Schwarze) 2016-02-15 21:38:07 +00:00
christos
1e12a8d1ca Don't free getline memory (Ingo Schwarze). 2016-02-15 21:35:52 +00:00
christos
e8d0e8c012 forgot one fgetln define 2016-02-15 17:35:39 +00:00
christos
5390c8faa5 change tests for fgetln. 2016-02-15 16:14:39 +00:00
mbalmer
13a5a21897 Fix function name, no functional change.
Found by Travis Paul, (see PR/50786), thanks for reporting!
2016-02-15 15:56:33 +00:00
christos
a7ab79fbe5 Use getline for better portability. 2016-02-15 15:53:45 +00:00
christos
c0d16449e0 OpenBSD tokenizer.c rev. 1.8 2003/08/11 18:21:40 deraadt
don't increase amax on realloc failure
2016-02-15 15:37:20 +00:00
christos
efeef4e587 OpenBSD term.c rev. 1.13 2009/12/11 18:58:59 jacekm
fix two memory leaks
2016-02-15 15:35:03 +00:00