Commit Graph

418 Commits

Author SHA1 Message Date
perry 46359204cf __inline__ -> inline 2005-12-24 21:42:02 +00:00
perry 4e11af46bc Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 21:11:15 +00:00
christos e5548b402a Use reach-over sources from common/lib/libc 2005-12-20 19:31:47 +00:00
christos bea4991aaa Older gcc does not support #ifdef inside macro expansion. 2005-12-04 17:57:25 +00:00
yamt e301b762a1 redo the previous; constify rather than making a string writable. 2005-12-02 14:19:43 +00:00
yamt a6a060b04b note that "argv" is not really const. 2005-12-02 14:11:01 +00:00
yamt 9de32b7fa1 don't make internal functions pretend to take a const argument. 2005-12-02 14:08:51 +00:00
christos 03256c6e55 WARNS=4 2005-11-29 03:11:58 +00:00
wiz 72a37764e0 Punctuation nits; grammar fix. 2005-09-26 10:54:46 +00:00
christos cc85a7cfd9 add getenv_r and ttyname_r 2005-09-25 20:08:01 +00:00
christos 5b84b3983f compat core reorg. 2005-09-13 01:44:08 +00:00
christos 86741d79ab - Fix the remaining indr_references so that they define lint symbols.
- Add an internal symbol for strerror_r (thanks klaus for noticing)
- Remove internal __strerror
2005-07-30 15:21:20 +00:00
christos fce61e5249 revert previous, my include files were out of day. 2005-07-16 17:32:09 +00:00
christos b5626a3a22 Fix prototype inconsistency, discovered by lint2 fixes. 2005-07-16 17:15:46 +00:00
wiz 2c8c6850a4 Remove superfluous Pp, sort sections. 2005-07-12 08:28:42 +00:00
wiz d2aabe58d4 Remove superfluous Pp. 2005-07-12 08:28:27 +00:00
drochner e0d7e15c44 tolerate NULL pointers at some places 2005-07-06 17:17:15 +00:00
drochner 45ec6e4557 add some clarification, and refer to POSIX
partly borrowed from FreeBSD
2005-07-06 17:02:56 +00:00
drochner 64df4b988e fix for non-const lsearch() arg, also fix return values and the
description of the comparision function, and refer to POSIX
partly borrowed from FreeBSD
2005-07-06 16:57:28 +00:00
drochner ecef4b3d3f The source array of lsearch() shouldn't be "const".
Being here, cleanup the const castaway stuff.
2005-07-06 15:47:15 +00:00
drochner e866f2794b Move insque/remque/lsearch/lfind from libcompat to libc,
they are in XPG4-UNIX, XSH5.0, mentioned in SUSv3 etc.
Minimal update of the manpages. (more needed)
2005-07-06 14:43:24 +00:00
lukem 88c3eadbfa Add missing __RCSID() 2005-06-12 05:21:25 +00:00
christos 631ccd6107 Revert the previous patch. It is not worth it optimizing the code to avoid
compiler errors because it makes it gratutiously different.
2005-04-24 23:29:06 +00:00
christos 19139351d0 Simplify the code and avoid a compiler issue with -O6 on sparc64:
Error: Illegal operands: There are only 32 single precision f registers; [0-31]
2005-04-24 19:33:52 +00:00
wiz 9899f59159 Grammar fix. 2005-04-19 00:15:50 +00:00
wiz 7224809d57 Document index argument, and mention that long_options
needs to be terminated with a structure containing zeroes.
Slightly modified version of patch from PR 30002 by Kailash Sethuraman.
Bump date.
2005-04-18 10:56:33 +00:00
kleink d6a0715a49 Due to their "inverse" treatment of the fraction's MSb, update NAN
conversion to construct a quiet NaN on hppa, mips, sh3, and sh5 as well.
Also, remove the portion constructing a ROP on vax; this is not required
by the standard, and in its consequences it is not an appropriate
substitute for a qNaN.
2005-04-15 22:46:21 +00:00
wiz c2fd74dc8e Remove duplicate words; grammar fix. 2005-04-04 08:19:00 +00:00
wiz 11f7061e02 Drop trailing whitespace. 2005-04-04 08:14:49 +00:00
christos ada3b096d0 Add FreeBSD's strfmon(3). From Rui Paulo. No bump this time. Take advantage
of the getpwent_r bump.
2005-04-03 20:09:29 +00:00
kleink a6636f0f7b Avoid lint warning after previous. 2005-03-23 08:16:53 +00:00
kleink 98061f1fca * Add restrict qualifiers to tdelete() function arguments.
* Const-poison tfind()'s rootp argument, per SVID Issue 1 and later.
2005-03-22 20:13:42 +00:00
christos 1a940a96f9 remove extraneous `*' that caused a core-dump. 2005-02-17 21:22:25 +00:00
christos 3f899b0a98 do some manual CSE. 2005-02-17 19:58:21 +00:00
tron f82977b51c Fix lint warning caused by last change. 2005-02-17 19:15:38 +00:00
enami aa6d8c7778 Jump to just before the copy instead of after it. Saves 8 byte on i386. 2005-02-17 04:30:23 +00:00
enami d02f179fc6 Simplify, KNF and plug leaks. Compile test only. 2005-02-17 04:16:09 +00:00
christos 81a2ba5600 Simplify and KNF. Instead of keeping track if the pointer was allocated,
keep a copy of the pointer itself and only re-use it if the current
environment is equal to the saved pointer. Idea from OpenBSD. Avoids
problem of re-allocing a non-allocated pointer if a program resets the
environment after it has been grown.
2005-02-17 02:17:43 +00:00
kleink fd5cb0acea A little libc namespace housekeeping exercise:
* Make vfprintf_unlocked() an internal function, c.f. __svfscanf_unlocked().
* Add internal names for arc4random(), endnetpath(), fhstatvfs(),
  fstatvfs(), mkstemp(), shquote(), statvfs(), taddr2uaddr(), uaddr2taddr(),
  uuid_create_nil(), uuid_is_nil(), and wcwidth().
* Include namespace.h where supposed to.
2005-02-09 21:35:46 +00:00
jmc 9da9dc64b7 Add heapsort to libnbcompat 2004-11-28 06:57:14 +00:00
dsl 1793b7dd69 Use (unsigned char) cast to sanitise arguments to ctype functions. 2004-10-28 21:14:52 +00:00
dsl d349cd6749 Fix a load of international alphabet problems with isxxx() and toupper()
Change isspace(*char_ptr) to isspace(*char_ptr & 0xff) so that the correct
piece of memory is looked at for the bit mask.
gcc optimises out the '& 0xff' (on i386 at least).
Fixes problems found by gcc when the splurious (int) cast is removed
from the #defines in ctype.h
2004-10-27 19:59:24 +00:00
yamt 91ee88d04d actually add _Exit. 2004-08-05 00:17:02 +00:00
kleink 2d356478dd Make the spelling of reentrant match the rest of the system. 2004-07-01 10:38:28 +00:00
jmc b2f782612f Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944
2004-06-20 22:20:14 +00:00
wiz 508c6e7767 Uppercase Dt argument; \-1, not -1; sort SEE ALSO; & -> \*[Am]. 2004-05-28 00:10:57 +00:00
wiz 714885bde5 Drop trailing whitespace. 2004-05-28 00:06:50 +00:00
christos 892ad9caae unix/98 pty functions and manual pages. 2004-05-27 02:58:48 +00:00
kleink f379d2c8ac There are two instances of getsubopt.c, one in gen, which came by the
ways of 386BSD, and one in stdlib, which is from Lite-2.  The former was
picked up by the build process and has seen a little more maintenance
while the latter's location is "right", so bring the latter up to par
with the former and dispose of the (now) latter.

Reported by David A. Holland in PR lib/25160, which is worded in a
far less mind-boggling fashion than the above.
2004-05-09 19:34:11 +00:00
simonb 04680727b1 s/this this/this/. 2004-04-23 02:48:12 +00:00