Commit Graph

12765 Commits

Author SHA1 Message Date
aymeric
e56ab6501a have '$' include the last character in the line when embedded in a command.
This fixes c$, d$, y$, and so on in vi mode.
2008-09-30 08:37:42 +00:00
pooka
d93a348b24 remove verbosity attack 2008-09-29 15:59:54 +00:00
ad
844fcfc979 make PTHREAD__COMPAT=1
Builds a libpthread that can be dropped into a NetBSD 2/3/4 chroot.

This makes threading work in the chroot when using a NetBSD 5 kernel, no
other modifications required.
2008-09-29 08:48:15 +00:00
christos
93d0aacf67 Fix a little lint. 2008-09-28 18:54:55 +00:00
christos
910c3de51d this needs finite and scalbn 2008-09-28 18:54:30 +00:00
christos
519d922f3a having 2 separate implementations of frexp ldexp and modf (one here and
one in libm) that produce different results does not make any sense. Use
the one from libm to build instead.
2008-09-28 15:19:09 +00:00
lukem
2060495782 fix unused variable if !defined(FTS_ALLOC_ALIGNED) 2008-09-27 15:12:00 +00:00
tsutsui
61a62e59f7 unsigned int32_t -> uint32_t 2008-09-26 11:41:06 +00:00
christos
389390f57e pacify lint. 2008-09-24 16:58:53 +00:00
christos
0588e62651 fix newer gcc warning. 2008-09-24 16:24:30 +00:00
christos
194e105784 From Ilya Dogolazky ilya.dogolazky at teleca dot fi:
The new algorithm does not use any array initialisation.
Instead of that the only integer variable "index" is initialized.
It is not using any bitwise operations and shifts as well.

The well-known algorithm (an efficient representation for sparse sets) is
mentioned as exercise 2.12 in "The Design and Analysis of Computer Algorithms"
by Alfred Aho, John Hopcroft and Jeffrey Ullman. It is described here
http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.30.7319
and here
http://research.swtch.com/2008/03/using-uninitialized-memory-for-fun-and.html
2008-09-24 14:36:02 +00:00
joerg
af4f585309 Switch to libarchive in src/external/bsd. 2008-09-21 19:45:59 +00:00
lukem
7fb0a8b2f3 Add fts_free() to complement fts_alloc(), and use instead of free().
Should avoid a memory leak on systems without ALIGNBYTES.
2008-09-20 00:14:12 +00:00
christos
bd88cf3b5a PR/7505: Obata Akio: add missing bn_const.c 2008-09-19 14:50:53 +00:00
christos
6f1e299202 From Ilya Dogolazky: Fix return value doc. 2008-09-17 22:08:52 +00:00
haad
664f39465e Bump libprop minor number, I forgot to do it when I have added
prop_array_add_* routines. In version 1.2 of prop_array_util.c.

Pointed by bad@.
2008-09-15 18:19:25 +00:00
drochner
dc7ba38823 fix the -0.0 case, fixes a gm4 test error reported by wiz
(normally, the libm implementation should be used)
2008-09-14 13:38:38 +00:00
wiz
7afae79e13 Bump date for previous. 2008-09-13 09:20:37 +00:00
rmind
0f80b1578d Arguments were swapped for cpuset_set(), cpuset_clr(), cpuset_isset()
functions, but man pages were not updated (hi Christos!).
2008-09-12 13:39:04 +00:00
christos
628eb1017e PR/39513: Stathis Kamperis: reboot(2) doesn't explicitly mention that combining
options is possible
Also remove RB_DFLTROOT.
2008-09-11 17:03:23 +00:00
christos
7ea3b31b66 PR/39519: Nozomu Ando: Fix incorrect change from bind9 that broke IPv4 mapped
addresses.
2008-09-11 15:40:43 +00:00
joerg
d3595ddff7 Consistently include "nbtool_config.h" when cross-compiling. 2008-09-11 12:58:00 +00:00
joerg
65f930bc37 Remove one remaining sccsid. 2008-09-11 12:33:55 +00:00
joerg
3ae583451f Prepare use of strtoull, strtoumax and strtoimax in tools/compat by
including nbtool_config.h.
2008-09-10 18:08:58 +00:00
joerg
52c4a82ef2 In preparation for providing a db fallback in libnbcompat, remove
sccsid and conditionals around __RCSID. lint understands __RCSID enough
to ignore it, undefining LIBC_SCCS is superseded by MKSTRIPIDENT.
No functional changes.
2008-09-10 17:52:35 +00:00
christos
872a7369cc Allow a single process to control multiple ttys (for pthreads using _REENTRANT)
using multiple EditLine objects. Mostly from Preston A. Elder.
2008-09-10 15:45:37 +00:00
apb
7318d748c1 Mention the word "regexp" and the fact that this inteface is obsolete
in the NAME section.

Previously, "man -k regex" printed the following two lines
with no hint that you needed to do "man 3 regexp" to get to
the man page associated with the first of the two lines:

regcomp, regexec, regsub, regerror (3) - regular expression handlers
regex, regcomp, regexec, regerror, regfree (3) - regular-expression library
2008-09-08 22:14:11 +00:00
pooka
24da753b34 fix type for a few functions 2008-09-07 15:14:31 +00:00
apb
a1dad6e718 Fix some errors in examples, noticed by Robert Elz:
* use \e in the source to get a backslash in the output.
* test whether the result from shquote[v]() is -1 before, not after,
  adding 1 to it.
2008-09-07 08:55:46 +00:00
wiz
91eff5cc84 Drop trailing whitespace. 2008-09-06 15:43:27 +00:00
pooka
8591ab211b Add AsiaBSDCon 2008 paper to SEE ALSO. 2008-09-06 12:39:49 +00:00
lukem
4e3bc9a2d6 Expand the description of bsize, and correct the description of the default. 2008-09-05 06:25:04 +00:00
lukem
490ac90f8e Add strunvisx(3) as a link to unvis(3) 2008-09-05 04:52:34 +00:00
dholland
629defb951 Clarify that the historic V7 sticky file semantics no longer apply. 2008-09-05 03:28:15 +00:00
pooka
1acae5309f Fix double free when i/o descriptor is violently closed. Bug was
introduced in rev 1.27.

fix provided by Taylor R Campbell in lib/39353
2008-09-04 15:30:36 +00:00
lukem
6fb06e2c97 In strsvisx(), don't attempt to read the "next" character past the end
of the provided length.
2008-09-04 09:41:44 +00:00
lukem
ec3a8384e6 support MAKEVERBOSE 2008-09-03 07:12:28 +00:00
christos
350c055a53 update to 4.26 2008-08-30 12:16:52 +00:00
dholland
43987efbe4 Grammar police. 2008-08-29 05:48:40 +00:00
gmcgarry
3c9a95916d Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
christos
5022bd798d Ignore whitespace in format string from Andy Shevchenko 2008-08-28 16:41:21 +00:00
joerg
dcb3546b5c Fix __log2 to not loop for 0x80000000 and higher. 2008-08-28 11:00:43 +00:00
christos
80a5932343 setup _POSIX2_C_BIND per SUSv3, from Andy Shevchenko 2008-08-27 08:56:49 +00:00
christos
40d362f8e0 malloc(3) and getenv(3) affect errno; make sure we save and restore it
Reported by Andy Shevchenko
2008-08-27 08:49:03 +00:00
christos
40d6ddde20 system(NULL) should return if the command interpreter is there or not.
Andy Shevchenko
2008-08-27 06:45:02 +00:00
joerg
40b37a3bf2 Convert db from UCB types to POSIX types. Prefer uint8_t for u_char as
it is mostly about the wire format.

Patched libc.so is bit-identical.

OK matt@
2008-08-26 21:18:38 +00:00
drochner
14744ddade fix range of strtouq(), from Henning Petersen per PR lib/39399 2008-08-26 12:21:24 +00:00
lukem
4638a08a72 Use Qq instead of Qc to quote a single word 2008-08-26 05:04:19 +00:00
joerg
8609f98c0c mpool.libtp seems to be an ancient copy of mpool.c, nuke it. 2008-08-25 21:24:07 +00:00
joerg
245e086321 Unify the implementation of strto{l,ul,ll,ull,imax,umax,q,uq} into one
version for signed and one version for unsigned data types.

Add a check for supported bases and set errno (userland) or panic
(kernel, libsa) otherwise.

Make strto{ll,ull,imax,umax} normal symbols and just keep the underscore
versions as strong alias.

Obtained from DragonFly, based on the wide char version from Citrus.
Reviewed by christos@
2008-08-20 12:42:26 +00:00