Commit Graph

18315 Commits

Author SHA1 Message Date
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
christos c3337d4460 In stiffle_history(), trim excessive entries from the history and advance
history_base like the GNU implementation does. (from Bastian Maerkisch)
2016-05-08 20:15:00 +00:00
christos 7033ecf0e8 fix logic (Ingo Schwarze) 2016-05-06 21:01:19 +00:00
kre 3060c9b9b9 Make relative date changes ("+ 2 months") etc, work a little more sanely.
OK christos@
2016-05-03 18:14:54 +00:00
christos 300e2ca473 eliminate static buffer with custom resizing code. 2016-05-02 16:48:34 +00:00
christos 9ff2bfe491 fix typos from Pedro Giffuni @FreeBSD 2016-05-02 16:35:17 +00:00
wiz 7c1df76045 Add missing backslash that broke build. 2016-05-02 14:12:09 +00:00
christos 2f3aa6bd06 Add more MLINKS, sort 2016-05-02 13:01:34 +00:00
wiz 986567e424 Fix Dd argument. 2016-05-02 12:51:25 +00:00
christos ac44c4d1a4 Add more explicit xrefs 2016-05-02 12:43:35 +00:00
wiz 0ad20f8cb7 Fix Dd argument. 2016-05-02 09:39:24 +00:00
joerg e073a944c0 Fix type name. From Abhinav. 2016-05-01 21:28:21 +00:00
martin 8e6585046e Change section flags to "MG" and put it into comdat.
Makes new binutils happy.
2016-05-01 08:33:14 +00:00
martin 92f3e401cd Revert previous (fallout is more subtle but there).
Rework the conditionon so it depends on .S existence instead of an arch
list.
2016-05-01 07:25:46 +00:00
martin 318ac55504 Gcc 5.3 seems to do fine compiling this for sparc64, so exclude it
from the -O1 hack
2016-04-30 13:12:13 +00:00
joerg 5d45063308 Go back to just using normal visibility for the locale symbols. Without
an actual specifier like dllimport, protected visibility is unusable.
2016-04-29 16:26:48 +00:00
christos 3694604d12 move section around. 2016-04-29 13:17:09 +00:00
wiz eb86c933a1 Sort a bit more. 2016-04-29 12:25:51 +00:00
christos 8eca53f5f0 - merge the options descriptions, sort them.
- fix wrusage name.
2016-04-28 16:07:26 +00:00
christos 067b3315ea new man page from Ingo Schwarze. 2016-04-28 15:50:33 +00:00
christos f432b935f6 Initialize patbuf (Ingo Schwarze) 2016-04-28 12:27:45 +00:00
wiz a0a33836af Formatting, typos, whitespace fixes. 2016-04-24 09:01:45 +00:00
wiz 982b0c24c2 Fix typos, whitespace, formatting. 2016-04-24 08:59:30 +00:00
christos 3c50b65c77 commit the right file. 2016-04-24 00:05:28 +00:00
christos ed7dbad892 bump 2016-04-23 23:23:17 +00:00
christos d394d2a9b5 Add pthread_getcpuclockid(3) 2016-04-23 23:12:19 +00:00
christos 817b192df2 add clock_getcpuclockid{2,} 2016-04-23 23:11:31 +00:00
christos 5d9808ec41 Don't subtract base if not pie. 2016-04-20 14:00:16 +00:00
christos 1364b6032a From Ingo Schwarze:
- Put the data type el_rfunc_t into the public header <histedit.h>.
 - Make el_read in struct editline an opaque pointer rather
   than an embedded struct.
 - Do not include "read.h" everywhere, but only in the two files
   needing access to el_read, read.c and el.c.
 - To functions that don't need more, pass the struct el_read_t *
   rather than the full EditLine *.
 - Of course, that means that read_init() can now fail from
   memory exhaustion, but it's easy to clean up after that.
2016-04-19 19:50:53 +00:00
christos 4fc1f47d56 From Ingo Schwarze:
* Replace fcns.c by a shorter and simpler func.h
   and include it only in the one file needing it, map.c.
 * Combine help.h and help.c into a simplified help.h
   and include it only in the one file needing it, map.c.
 * Check the very simple, static files editline.c, historyn.c, and
   tokenizern.c into CVS rather than needlessly generating them.
 * So we no longer autogenerate any C files.  :-)
 * Shorten and simplify makelist by deleting the options -n, -e, -bc,
   and -m; the latter was unused and useless in the first place.
 * Move the declaration of el_func_t from fcns.h to the header
   actually needing it, map.h.  Since that header is already
   included by el.h for unrelated reasons, that makes el_func_t
   just as globally available as before.
 * No longer include the simplified fcns.h into el.h,
   include it directly into the *.c files needing it.
2016-04-18 17:01:19 +00:00
christos a2eaeedb12 Remove empty callbacks (Ingo Schwartze) 2016-04-17 18:39:14 +00:00
roy 67f77b27fc Removed botched debug left over. 2016-04-12 20:40:43 +00:00
roy 4b95ed965b Fix pidfile location path rules to match prior version. 2016-04-12 20:36:35 +00:00
joerg c75fe7b83c lib/50791: Instead of using sorting the arena chunks by address only,
sort by size of the longest run and address as tie break. Avoids long
linear searches for code heavy on medium sized allocations.
2016-04-12 18:07:08 +00:00
christos 20d5bea366 FIONREAD takes int as an argument (Ingo Schwarze) 2016-04-12 11:15:46 +00:00
christos 985c823c19 From Ingo Schwarze:
* Delete the stubs of the XK_EXE mechanism that was never implemented.
   From a security, stability, and simplicity perspective, i would
   consider implementing it a truly terrible idea, so let's better
   get rid of it.

 * Do not use the local variable "num" in el_wgets() alternately for
   two completely different purposes.  Only use it for the number
   of characters read, as stated in the comment (or -1 as long as
   that number is still unknown), not for the (more or less boolean)
   return value of read_getcmd().  Actually, there is no need at
   all to save the latter return value after testing it once.

 * The function read_getcmd() has very unusual return values:
   It returns -1 for success and 0 for EOF/error.  Switch that around
   to 0 for success and -1 for EOF/error to be less confusing, and
   get rid of the OKCMD preprocessor macro.

 * Get rid of one #ifdef section in el_wgets() by using
   el->el_chared.c_macro directly at the only place
   where it is used.

 * Delete the unused MIN() macro.
2016-04-12 00:16:06 +00:00
christos 39e1d6f1ed Fix indentation, Ingo Schwarze 2016-04-11 22:30:14 +00:00
christos 469d44f8e7 Get rid of private/public; keep protected (Ingo Schwarze) 2016-04-11 18:56:31 +00:00
christos a75ea7b9c4 chartype cleanups from Ingo Schwarze:
- The file tokenizer.c no longer uses chartype.h,
   so don't include the header.

 - The dummy definitions of ct_{de,en}code_string() for the
   NARROWCHAR case are only used in history.c, so move them there.

 - Now the whole content of chartype.h is for the wide character
   case only.  So remove the NARROWCHAR ifdef and include the
   header only in the wide character case.

 - In chartype.h, move ct_encode_char() below the comment explaining it.

 - No more need for underscores before ct_{de,en}code_string().

 - Make the conversion buffer resize functions private.
   They are only called from the decoding and encoding functions
   inside chartype.c, and no need can possibly arise to call them
   from anywhere else.
2016-04-11 16:06:52 +00:00
christos 47c9654d15 make this work with pie binaries (subtract dli_fbase from addresses). 2016-04-11 15:30:18 +00:00
wiz 16a8980036 Add serial commas. Fix minus. Sort SEE ALSO. Fix xref. 2016-04-11 08:49:57 +00:00
roy aae35f25ba Bump libutil for new pidfile functions. 2016-04-11 08:44:40 +00:00
christos 0594af8028 Char -> wchar_t from Ingo Schwarze. 2016-04-11 00:50:13 +00:00
christos 6b3f51ca99 there is no pflags, just flags. 2016-04-11 00:47:19 +00:00
christos 0aefc7f9ad more macro WIDECHAR undoing from Ingo Schwarze. 2016-04-11 00:22:48 +00:00
roy 6b9006e83c Implement pidfile_lock, pidfile_read and pidfile_clean.
Discussed on tech-net@, ok core@.
2016-04-10 19:05:50 +00:00
christos 2dd09931ab Change some 0's to NULL's from Pedro Giffuni 2016-04-09 18:47:05 +00:00
christos fcf85103b4 More WIDECHAR elimination (Ingo Schwarze) 2016-04-09 18:43:17 +00:00
dholland eb0c9743f2 _SC_PAGESIZE is not the page size; it's a symbolic code for retrieving
the page size.
2016-04-07 06:21:48 +00:00
christos ee5f11c12c pretty-print link addresses. 2016-04-06 18:04:58 +00:00
roy cdda39d7e5 Revert prior, no idea why it was causing me problems, but it no longer does. 2016-04-06 11:07:58 +00:00
wiz 54920d4dc7 Drop trailing whitespace. 2016-04-06 08:18:35 +00:00
christos 7ffce30f1b revert part of previous; not needed. 2016-04-06 04:09:10 +00:00
christos a071bd3ff9 - clarify si_signo difference for waitid and wait6 as per POSIX.
- implement it.
- document WIFCONTINUED
2016-04-06 03:50:03 +00:00
dholland 3f5237a6a3 improve usage 2016-04-06 03:38:31 +00:00
roy da98c8b8e3 Stop calling reallocarr and just do the same bounds checking but without
messing around with copying pointers which was causing ssh to crash.
2016-04-05 15:01:26 +00:00
christos d6b67564a6 some ports need <sys/wait.h> 2016-04-04 22:14:38 +00:00
christos cacc57bfc6 catch up with p_xstat split. 2016-04-04 21:08:44 +00:00
martin 53a4b022d2 For the benefit of compilers not using our native C runtime environment,
install a "sysident.o" file providing the note identifying NetBSD
executables (and marking the currently installed version).
2016-04-04 18:29:07 +00:00
wiz 386cb828c3 Use more markup, fix a typo. 2016-04-04 13:13:09 +00:00
christos eb687c986e simplify 2016-04-03 01:49:51 +00:00
christos aad157eb21 add idtype.h to mklintstub and say who generates it. 2016-04-03 00:48:29 +00:00
christos 406ebcd6ac userland bits for wait6/waitid. 2016-04-03 00:19:42 +00:00
christos 8b22ec00d4 - if we are freeing cur_term, set it to NULL.
- preserve and free "last" properly.

$ cat foo.c
#include <stdio.h>
#include <termcap.h>

int
main(void)
{
	tgetent(NULL, "dumb");
	tgetent(NULL, "network");
	tgetflag("so");
	return 0;
}
$ cc foo.c -lterminfo
$ MALLOC_OPTIONS=J ./a.out
Boom.

XXX: pullup-7
2016-04-01 19:59:08 +00:00
msaitoh 43e79b977e Add malloc.conf.5 (link to jemalloc.3). 2016-04-01 12:37:48 +00:00
martin a13d81e5df No fenv for m68k with SOFTFLOAT for now - so at least it builds. 2016-03-30 07:44:06 +00:00
martin a49d73fd0a Drop fixxfdi.c for m68k (where double == long double and this isn't needed
but causes duplicate symbols with softfloat, if compiling MKSOFTFLOAT=yes)
2016-03-30 07:25:33 +00:00
skrll e4a98f388f crt0-common.c is miscompiled by gcc 5.3 on evbarm with -O2 so use -O1. Do
this for all non-x86 arches.
2016-03-29 21:23:05 +00:00
martin 60de583e7a Avoid warnings (signed/unsigned comparision and unused variable) 2016-03-29 18:42:29 +00:00
mrg 19cbd6805c distinguish between partial and failed read, so that "read 0xffffffff bytes failed"
is not output..
2016-03-29 06:51:40 +00:00
mrg 09a7b9833f add a hack for GCC 5 and non-x86 platforms:
build crtbeginS.o with -O1 as GCC tries to be very smart with the
__DTOR_LIST__ as it believes it knows the size of the array at
compile time (which is not true until link time).  on SPARC and
MIPS, the result was emitting a call to 0.

technically, i believe that GCC isn't "wrong" to make this choice,
as the array is declared with a well-known initialiser size in the
crtbegin.c compilation unit, and we have noticed that the libgcc
version of this code has some hacks added, most likely to avoid
being bitten by this optimisation.


this makes sshd work for me on earm and sparc with GCC 5.
2016-03-27 00:03:06 +00:00
martin 1d9390077f Do not store FP registers in softfloat userland 2016-03-26 11:57:32 +00:00
martin 6e8af743d4 Make sure to define __SOFT_FP__ when building a SOFTFLOAT userland 2016-03-26 07:31:11 +00:00
riastradh bec9c2fe3c KNF 2016-03-25 22:13:23 +00:00
christos 4e541d85ca Start removing the WIDECHAR ifdefs; building without it has stopped working
anyway. (Ingo Schwarze)
2016-03-23 22:27:48 +00:00
christos 62666ab4cc put back NUL check (Ingo Schwarze) 2016-03-22 01:38:17 +00:00
christos 6b5dea1b27 Fix reversed condition in tty_end() (Ingo Schwarze)
Also don't succeed if calling setup twice.
2016-03-22 01:34:32 +00:00
wiz 1b0989ebef Sort errors. Improve markup. 2016-03-20 20:09:49 +00:00
skrll 3593a88925 Update {read,write}fpsr to work everywhere 2016-03-20 14:22:46 +00:00
christos 4f0a81a7d2 Save and restore all the registers we need instead of playing tricks and
"knowing" which registers the compiler clobbers. gcc-5.3 clobbers both
rcx and rdx...
2016-03-19 21:27:38 +00:00
dholland 71d3320a40 Sync documentation of struct ktr_header with reality:
- there is a ktr_version field
   - the ordering of ktr_type and ktr_version is byte-order dependent
   - ktr_time is now a timespec, not a timeval
   - there's now a ktr_lid field
   - there is no such thing as a ktr_buf field and it's certainly not
     a caddr_t.

XXX: I would appreciate it if someone who knows how this stuff works
XXX: could review this file in case it's still lying in some more
XXX: subtle way.
2016-03-19 17:15:13 +00:00
dholland 02cda16070 Update documented prerequisite includes. PR 50633 and PR 50634.
Remove sys/uio.h, and swap sys/param.h for sys/types.h as sys/ktrace.h
depends on MAXCOMLEN.

Bump date; first time since 1993.
2016-03-19 17:05:36 +00:00
ginsbach bec9db1ba3 Use the correct upper bounds for the types array. The correct upper
bound is typecnt not timecnt.  Now perpetual 'standard' time zones
will work correctly as they have a typecnt of 1 but a timecnt of 0.
2016-03-18 12:41:25 +00:00
nros 71f379ad51 Added ldexpl to ldexp manpage since it is missing.
Also added ldexpf manpage link since it is missing.
2016-03-17 18:29:58 +00:00
christos 3ae9c71097 undo the dso protected for clang 2016-03-17 17:38:14 +00:00
wiz 310b2e7c40 Fix typo, add whitespace for better formatting, bump date for previous. 2016-03-17 09:44:56 +00:00
wiz 7230ee2fa7 Bump date for previous. 2016-03-17 09:43:38 +00:00
riastradh dcfb17cada strtod yields ERANGE for below-subnormal magnitudes, not underflow.
For a floating-point computation, in the language of IEEE 754,
`underflow' means the output was rounded and is too small to be
represented *normally*.

There are many nonzero floating-point numbers to which the exact
output may have been rounded -- namely subnormals.  The condition
under which strtod returns ERANGE for small magnitudes is when the
magnitude of the exact result is so small it is rounded to zero, not
even to a subnormal.

While here, use parallel language about large magnitudes instead of
the (albeit correct) word `overflow', to avoid temptation to treat
`underflow' as the opposite notion with zero instead of infinity.
2016-03-17 03:26:15 +00:00
mrg 25c9b8d685 don't build libmudflap* for GCC 5.3.
also, disable libasan here as well (for now).
2016-03-17 00:09:47 +00:00
nros cf57e34dd1 Add fabsl to the manpage describing the fabs functions. 2016-03-17 00:00:44 +00:00
christos 1417657ee3 change static to volatile. 2016-03-16 22:32:32 +00:00
christos 9dca99590e Avoid setjmp clobbering. 2016-03-16 21:38:22 +00:00
nros ccbaa1faff Add modfl to the modf manpage, the link to modfl was already there but the
content was missing.
2016-03-15 15:29:19 +00:00
christos e4c8546a4c Sync with 2016b 2016-03-15 15:16:01 +00:00
christos d7904a2801 PR/50937: Henning Petersen: Fix subnormal printf for long double x86. From
FreeBSD PR 85080.
2016-03-13 19:44:58 +00:00
mrg 8872ffd0f4 remove some more GCC 4.5 code. make GCC 5.3 be HAVE_GCC=53, so that,
for example, HAVE_GCC >= 48 works properly.
2016-03-13 01:06:51 +00:00
christos 23a151b438 PR/50919: David Binderman: Re-do all the debug stuff in a more sustainable way. 2016-03-09 19:47:13 +00:00
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