Commit Graph

297 Commits

Author SHA1 Message Date
ross 9856438e91 generate & symbolically 2002-02-07 09:24:04 +00:00
ross 814f296b77 Generate <>& symbolically. 2002-02-07 07:00:09 +00:00
tv 9fbd88883c Roll in fixes to permit cross-compiling from non-NetBSD hosts. This
round has been tested on Solaris/x86 and Linux hosts.

* Add host tools cap_mkdb, ctags, m4, uudecode.
* Protect __RCSID() and __COPYRIGHT() better.
* Reduce the number of places that need to include "config.h", to keep
  sources closer to their "vanilla" versions.
* Add more compat #defines and autoconf-checked functions.
2002-01-31 22:43:33 +00:00
tv a328e34106 Make almost all tools compile and run properly on non-NetBSD hosts. (In
particular, most tools now run correctly on Solaris 7.)
2002-01-29 10:20:28 +00:00
wiz bae3b2f44b Punctuation fixes. 2002-01-28 02:07:57 +00:00
kleink f100d16fcf C99: support INF, INFINITY, NAN and NAN(n-char-sequence-opt) arguments. 2002-01-28 00:10:04 +00:00
wiz 626980860b Use .Pp instead of empty lines. 2002-01-15 02:37:56 +00:00
wiz a62d4fbf73 Use Aq for email address. 2002-01-15 02:37:32 +00:00
thorpej 10b6bfb636 Make a note about the alignment requirement of the state array
passed to initstate(3).  This is actually documented in comments
in the code.
2002-01-08 02:19:56 +00:00
thorpej 3181978909 Make this actually work on LP64 platforms. It has been broken
since some "cleanups" in the master (UCB?) version of this file
were made in 1994 (which assumed the size of long is 4 bytes).

This fixes krb5-enabled logins on the Alpha.
2002-01-08 02:11:39 +00:00
thorpej 846f87dbb9 Use __sh__ instead of __sh3__. 2001-12-15 03:39:53 +00:00
lukem 50f5afd52e fix WARNS=2 (-Wshadow) warnings 2001-11-04 13:57:29 +00:00
kleink e8befb717e Inspired by Stevens' APUE and the implementation example in XSH:
* Don't return if wait()ing for the child is interrupted.
* Fix a race condition for the parent's SIG{INT,QUIT} disposition.
* While we're here, convert from using signal(3) to sigaction(2).
2001-10-31 13:31:26 +00:00
wiz 4e59d26612 Drop unnecessary whitespace and .Pp, sort SEE ALSO, sort sections,
and some minor fixes.
2001-09-16 01:31:51 +00:00
enami 0af73d03a2 Sort SEE ALSO and remove trailing comma. 2001-09-16 01:09:18 +00:00
fvdl a067632dd5 Add x86_64 to the list of if defined(blah) for endian determination
(surely this can be done in a better way).
2001-06-19 22:08:07 +00:00
assar 12df1a8eb8 remove confusing comparison with srand (it does not return the old seed)
use .Sh AUTHORS and .An for author
2001-06-09 01:43:53 +00:00
simonb 8e610505cb Add sradixsort to the NAME section. 2001-06-07 13:17:09 +00:00
mycroft d44a3af5c0 Add an underscore for consistency. 2001-05-10 06:10:35 +00:00
kleink 714d58eb51 For consistency add a _DIAGASSERT() case, and remove some cruft. 2001-05-07 08:32:20 +00:00
kleink b03ace75dd Add a _DIAGASSERT() case, and remove some cruft. 2001-05-07 08:29:25 +00:00
kleink cb31d8175c Use <stddef.h> rather than <stdio.h> if it's just NULL that's wanted. 2001-05-07 08:26:13 +00:00
lukem 3b2a77c393 need stdio.h for NULL... 2001-05-07 02:51:59 +00:00
christos b2126f94bb More fixes:
1. use uintptr_t instead of u_long
2. check for overflow in map_pages and malloc_pages
3. bring in fixes from FreeBSD [int -> size_t, and a missing THREAD_UNLOCK]
4. rewrite map_pages to use sbrk() only to grow memory (avoids extra syscall
   and elides bug in brk(2) that ross is fixing)
5. restore the break point to its original value if the mmap(2) for the page
   directory or the alignment sbrk breaks.

reviewed by: chuq and ross
tested by: make build and reboot
Now memtest nearly works; unfortunately there is no way currently to lower
the break point as we free, so memtest keeps trying to reduce memory when
mlock() fails and that does not work.
2001-05-06 04:48:41 +00:00
christos fa27739cb4 PR/12810: Chris ?: malloc core-dumps when given large number as the argument.
This is because integer overflow occurs in the computation of the size of
the page directory array. We now detect that, and return ENOMEM.
2001-05-03 15:35:12 +00:00
kleink fe3c9ceaf7 * Move definitions of exact-width integer types from <machine/types.h>
to <sys/types.h> and <sys/stdint.h>.
* Add a new C99 <stdint.h> header, which provides integer types of
  explicit width, related limits and integer constant macros.
* Extend <inttypes.h> to provide <stdint.h> definitions and format
  macros for printf() and scanf().
* Add C99 strtoimax() and strtoumax() functions.
* Use the latter within scanf().
* Add C99 %j, %t and %z printf()/scanf() conversions for
  intmax_t, pointer-type and size_t arguments.
2001-04-28 15:41:28 +00:00
joda 77dec036c1 don't claim that options are illegal, cf lib/12715 2001-04-24 09:07:43 +00:00
cgd e8c9c330a8 document EXIT_SUCCESS and EXIT_FAILURE, since they've been around
since ANSI and (for portability, since ANSI) in some circles they're
the preferred exit status codes.
2001-03-22 01:37:46 +00:00
kleink 77fbd9fe1c Sprinkle some restrict qualifiers. 2001-03-21 22:42:28 +00:00
fair 0b6f011535 Add documentation of nmemb parameter, per PR 10567 2001-03-16 07:47:29 +00:00
bjh21 fe6fa58436 Add support for ARM VFP-format doubles, conditional on __VFP_FP__. 2001-02-21 18:09:25 +00:00
lukem 2e118c9dce fix _DIAGASSERT usage in hsearch() 2001-02-21 16:31:01 +00:00
cgd 0fd3d5e599 nuke a ref to __progname that somehow crept in 2001-02-19 22:43:21 +00:00
cgd 6b25d77513 convert from __progname to getprogname() 2001-02-19 22:22:16 +00:00
ross 687259968d LP64 2001-02-19 21:26:04 +00:00
msaitoh 36db62c9dc add hcreate.3 2001-02-16 12:25:09 +00:00
cgd d563d62f6c update for current status of implementation 2001-02-14 05:59:56 +00:00
cgd 579369d368 build new hsearch() code 2001-02-14 05:44:29 +00:00
cgd 51a7af156e add new, from scratch implementation of hsearch() et al that actually works 2001-02-14 05:41:25 +00:00
cgd 66678fd1bb move db/man/hcreate.3 to stdlib/hcreate.3 2001-02-14 05:41:01 +00:00
cgd e76f9e3425 don't extern char *__progname; it's never used! 2001-02-12 23:59:17 +00:00
bjh21 b2ffea9b75 __arm26__ || __arm32__ -> __arm__
Not least because the unified NetBSD/arm compiler probably won't predefine
__arm26__ or __arm32__.
2001-02-09 18:38:32 +00:00
jdolecek ae76c71d75 slighly clarify how endbyte is used, so that this matches implementation more closely 2001-01-12 19:23:11 +00:00
lukem b8d674b457 link sradixsort(3) -> radixsort(3) 2001-01-08 14:06:09 +00:00
jdolecek 75ee9a37dd we now have utrace, support it here 2001-01-05 22:29:28 +00:00
lukem c5b9e1cef5 sprinkle _DIAGASSERT() around 2001-01-04 03:35:29 +00:00
itojun 408f4697a6 first import of citrus LC_CTYPE locale. singlebyte only at this moment.
shot-term TODO:
- enable multibyte locales.  this includes loadable locale modules
  (#ifdef DLRUNE).
- populate LC_CTYPE definition files.
- other functions such as iconv()
- make libc functions more friendly with multibyte.
- multilingualize other LC_xx
- torture tests

XXX don't forget to "make depend" when you rebuild libc, multibyte.c is
moved from lib/libc/stdlib to lib/libc/locale.
2000-12-21 11:29:47 +00:00
christos bebeeecd5b fix sbrk casts 2000-12-20 20:56:01 +00:00
christos 6bae1e9ae7 avoid nested extern declaration 2000-12-20 18:38:30 +00:00
christos b8e7598d98 fix nested extern 2000-12-20 15:59:51 +00:00