Commit Graph

396 Commits

Author SHA1 Message Date
thorpej
f759ceb8bf Only define MADV_FREE do MADV_DONTNEED if it's not already defined
by <sys/mman.h>.
1999-07-04 03:12:47 +00:00
tls
e89d5d52c5 The 'new malloc' (phk's malloc, from FreeBSD) is now our only malloc. 1999-06-26 04:44:36 +00:00
tls
3e2a95b2e4 add FreeBSD's malloc, compiled in only if MALLOC_NEW is set in mk.conf 1999-06-17 19:33:36 +00:00
christos
4a522f3501 add a const castaway lint comment. 1999-05-03 15:34:05 +00:00
tron
beee4cf82e Fix typo noted by NAKAJIMA Yoshihiro in PR lib/7328. 1999-04-06 19:44:42 +00:00
garbled
38c96853cf Last of the .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Wheee!
1999-03-22 19:44:33 +00:00
kleink
10ec438820 Add 3 additional slots to the statically allocated exit handler array to
guarantee the ANSI-defined 32 registrations being possible despite those exit
handler registrations made by the startup code (a.out: 2, ELF: 3).
1999-03-22 19:09:10 +00:00
erh
bdfd2b2770 Add missing .El lines. 1999-03-09 19:45:09 +00:00
drochner
a34eb7c1b7 use ${ARCHDIR} instead of ${.CURDIR}/arch/${MACHINE_ARCH} where appropriate
libc builds on pmax again
1999-02-24 15:05:20 +00:00
christos
7975455d45 t{search,find,walk,delete} from OpenBSD via Neil A. Carson 1999-02-22 10:33:15 +00:00
bad
855e0d3934 getopt() does not return -1 when encountering an unknown option.
Also, minor KNF nit in an example.
1999-02-07 16:52:56 +00:00
kleink
4ba3ee1071 Serialize freelist access with a mutex. 1999-02-06 16:01:22 +00:00
kleink
e2b924d2ae Add l64a_r(), a reentrant version of l64a(); found in the Multithreading
Extension of SVID4.
1999-02-06 15:04:05 +00:00
simonb
bf0aa4630d Changes from Niklas Hallqvist from OpenBSD. Commit message there was:
Make code ANSI/ISO C conformant.  Formerly undefined constructs were used
  making load/store architectures (like mips&alpha) fail whn compiled with
  gcc -O2.

Tested on mips and i386 ok.  Can someone with an alpha test this please?
1999-02-06 02:05:01 +00:00
kleink
fd13be3c46 Protect access of state with a mutex. Miscellaneous notes:
* still needs an implementation-independent ("reentrant.h") method for
disabling cancellation,
* break a leg to leave realloc() `storage compaction' as was for non-reentrant
code,
* use of stdio in assertion code is unsafe.
1999-01-29 08:11:36 +00:00
kleink
2125814fb5 1003.2-92 specifies the string "--" to be recognized as the option list
delimiter as opposed to any string merely beginning with '-''-'; change to
match the standard.  From Simon J. Gerraty <sjg@quick.com.au> in PR lib/6762.
1999-01-09 20:31:07 +00:00
christos
eeb9152be3 Since we are forcing unsigned shifts for portability, define Unsigned_shifts 1998-11-16 17:43:32 +00:00
christos
33edc15a8c delint 1998-11-15 17:13:51 +00:00
kleink
2cf006181e Slight formatting glitch. 1998-10-19 15:52:37 +00:00
matt
3a1b5096a9 More vax -> __vax__ cruft. 1998-10-19 03:32:27 +00:00
kleink
cd85b5e5ac Protect __atexit manipulation and traversal with a mutex. 1998-10-18 14:36:30 +00:00
kleink
5e62d8161d Exit via _exit() rather than exit(), as the latter would cause exit handlers
installed using atexit() to be executed which is supposed to happen on
`normal termination' of the process only, whereas abort() is specifically
defined to cause `abnormal termination'.
1998-10-12 15:56:16 +00:00
christos
50157f6e5e Adapt to posix signal system calls. 1998-09-26 23:54:25 +00:00
kleink
4bbb5fd353 Add a multiple-reader/single-writer lock to protect environ. 1998-09-11 21:03:18 +00:00
kleink
c9f14e5e97 Addendum to previous commit: remove stdio usage from sections during which
random_mutex is locked, because
* a cancellation point may occur during fprintf(), and no cancellation handler
  had been installed, and
* the XSH5 specifcation of these functions does not permit output to stderr.
Therefore, in initstate() and setstate(), return a null pointer if the supplied
state is not valid.  This also fixes a bug in setstate() which caused corrupt
state information being used despite printing an error message.
1998-09-09 19:34:00 +00:00
kleink
7c5f290f7e Add a mutex to protect the state. 1998-09-09 12:27:32 +00:00
lukem
ce83c69e00 first pass at fixing up capitalization of function names and
arguments; ensure that each is correct with respect to the
implementation, rather than being correct as per english.
1998-08-29 08:32:32 +00:00
perry
69d1215a28 make memcpy into memmove in some cases 1998-08-26 00:29:29 +00:00
perry
a843f0f8a5 bzero->memset, bcopy->memcpy, bcmp->memcmp 1998-08-10 02:43:08 +00:00
ross
871fe159d1 English. 1998-07-29 03:38:30 +00:00
mycroft
982e920022 const poisoning. 1998-07-26 14:13:00 +00:00
mycroft
9ad899cc18 constify some tables. 1998-07-26 11:24:14 +00:00
kleink
e4baf78ef2 It's 1998, actually. 1998-06-14 17:54:59 +00:00
kleink
d393974f10 Add a manual page for a64l() and l64a(). 1998-06-14 17:47:15 +00:00
kleink
d4cc868265 Per XPG4.2, if the `value' argument evaluates to 0L, don't return a NULL
pointer but a pointer to an empty string.
1998-06-14 17:28:15 +00:00
fair
aba63e6a51 fix mdoc references and mistakes 1998-04-28 21:19:49 +00:00
fair
c46ab392dc Principally, change foo(N) to .Xr foo N
Also, do some other mdoc tagging.
1998-04-28 04:07:04 +00:00
perry
ebc2166ef6 changes to (partially) quiet lint. 1998-02-28 00:09:45 +00:00
kleink
5f311d2174 Cast size_t to long for printing. 1998-02-06 14:35:46 +00:00
kleink
ee3e47997f Update standards section for putenv(). 1998-02-06 13:53:17 +00:00
perry
312aca536f add LIBRARY section to man page 1998-02-05 18:45:17 +00:00
kleink
df0d6631b5 Per XPG4.2, change the `n' argument of initstate() to size_t. (Since it was
recently changed from int to long (lite-2 import), I saw no reason to delay
this `alignment'.)
1998-02-04 21:06:14 +00:00
perry
a16d9e868b .Bx'ize 1998-02-03 21:42:54 +00:00
perry
c8bafd6265 remove obsolete register declarations 1998-02-03 18:38:12 +00:00
mycroft
51c4c84e39 Nuke `register', deal with GCC warnings. 1998-02-03 01:48:30 +00:00
mycroft
a0326f2ee6 Nuke `register'. 1998-02-03 01:46:27 +00:00
mycroft
704290aaa1 Deal with GCC warning. 1998-02-03 01:40:49 +00:00
perry
c52ced5ca9 include <unistd.h> instead of <stdlib.h> to fix a compile error caused
by the fact that the prototype for getopt has moved to unistd.h
1998-02-03 01:30:17 +00:00
perry
764a8201df realpath is now part of getcwd.c in gen/; man page moved to gen, too. 1998-02-02 23:20:35 +00:00
frueauf
d922341864 Add _strtoq.c back to SRCS+= which seemed to get lost while reordering it. 1998-02-01 14:03:47 +00:00
thorpej
163c89fb8a Pull in <string.h> to get strcmp() prototype. 1998-01-31 20:43:48 +00:00
thorpej
edf59accb5 RCS ID police, and add explicit return value to getsubopt(). 1998-01-31 20:41:39 +00:00
perry
5f8a6c06f3 update to lite-2 1998-01-30 23:37:40 +00:00
perry
78ef0c30cb import lite-2 1998-01-30 21:42:13 +00:00
perry
b51ed80fd5 RCS Id Police. 1998-01-09 04:11:49 +00:00
perry
4e067afcb1 RCS Id Police. 1998-01-09 03:15:09 +00:00
enami
2b952b2261 Remove an extra comma at the end of SEE ALSO list. 1997-11-18 07:00:48 +00:00
enami
dafe39d6fe Use .Sh RETURN VALUES instead of .Pp, as malloc.3 or free.3 does. 1997-11-18 06:58:46 +00:00
mrg
4e252e8c4d add missing .Nm entries. from spz@serpens.swb.de. 1997-11-14 02:04:36 +00:00
cgd
023cd79c6b lint stubs for functions which ports use assembly versions. When using
an assembly version of a function, add the right lint stub to the Makefile.inc
which specifies the source to build the function (see the
arch/i386/*/Makefile.inc).  Can't just lint the normal C versions of these
functions, because some of them don't _have_ normal C versions and if
that were done dependencies would get messed up.
1997-11-06 00:51:04 +00:00
cgd
4d7e773266 A foolish consistency... gen, net, and string all get MD sources
specified by including a Makefile.inc from the appropriate MD directory.
stdlib doesn't do that, but there's no reason that it shouldn't (and
it'd be nice to eliminate the 'if's from the MI stdlib Makefile.inc).
1997-11-05 22:59:37 +00:00
thorpej
2a43f22095 __warn_references and __indr_reference semicolon fixups. From
Chris Demetriou <cgd@pa.dec.com>.
1997-11-04 23:52:05 +00:00
jtc
43fa6fe319 If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore.  The library will use those
names internally.  Weak aliases are used to provide the original names
to the API.

This is only the first part of this change.  It is most of the functions
which are implemented in C for all NetBSD ports.  Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
1997-07-21 14:06:24 +00:00
thorpej
335d6b9922 Do the non-__indr_reference versions like the cat*(3) functions. 1997-07-17 21:15:33 +00:00
mikel
53609ce7ee xref getpagesize(3) not obsolete getpagesize(2), sort xrefs 1997-07-15 07:05:31 +00:00
mikel
95ca30804f xref getpagesize(3) not nonexistent pagesize(2), sort xrefs 1997-07-15 07:03:25 +00:00
kleink
e9118660e4 Link rand_r(3) to rand(3). 1997-07-15 00:42:29 +00:00
kleink
1d8b7c1279 Document rand_r(). 1997-07-15 00:42:01 +00:00
christos
bd9067774f Add local.h for local prototypes.
Fix namespace issues for strtoq and strtouq
Fix gcc warnings.
Fix RCSID's
1997-07-13 20:16:31 +00:00
mikel
3f0dbdf761 xref exit(3) not exit(2) 1997-07-10 07:57:07 +00:00
mikel
109d917438 avoid unportable arithmetic on void pointers 1997-06-19 07:41:32 +00:00
mikel
2acd0ee09a optarg -> optstring and rewording from Brian Grayson in PR misc/3697. 1997-06-04 06:42:38 +00:00
cgd
c917dfb5b2 Fix broken uses of Dd. Both the mdoc and mdoc.samples pages agree:
.Dd is supposed to be invoked like:
	.Dd month day, year
e.g. ".Dd January 25, 1989", rather than:
	.Dd "month day, year"
which is what these pages did.
1997-05-29 01:48:05 +00:00
kleink
3edccf530b * Remove incorrect comment: as per POSIX.1, calling abort() _does_ flush
and close open streams.
* Document that calling abort() removes temporary files.
Fixes PR/2967 from Peter Seebach <seebs@taniemarie.solon.com>.
1997-05-19 02:22:42 +00:00
kleink
09ad86b260 Remove misleading comment in abort() function; fixes PR/2966 from
Peter Seebach <seebs@taniemarie.solon.com>.
1997-05-19 02:18:14 +00:00
mrg
cbf5ef7c50 move str[fp]time into libc/time. 1997-04-23 01:17:59 +00:00
jtc
d54db152ba Use standard locale data rather than providing a local copy.
Sync'd function prototype with the one used in Solaris 2.5.  There have
been many format specifiers added to the Solaris version which are not
implemented in our version.  This needs to be fixed.
1997-04-23 00:01:17 +00:00
mrg
d47b27a34b add strptime() to libc. 1997-04-21 12:36:25 +00:00
christos
0940e9d8bf PR/3448: Bill Sommerfeld: Change "p" to __STRING(p) 1997-04-07 03:12:14 +00:00
thorpej
d83d59241e PowerPC is an IEEE floating point system. 1997-03-29 21:04:08 +00:00
mrg
9cd5492c02 - convert unsafe strcpy(), strcat() and sprintf() to the `n' versions.
- some KNF.
1997-01-23 14:01:45 +00:00
cgd
4bf7fe6145 const poisoning: __findenv()'s first arg should be const char * (lint) 1996-12-20 20:32:54 +00:00
cgd
54c7614104 don't confuse long and int; pointed out by lint 1996-12-20 20:32:02 +00:00
cgd
a13d8bf828 use __inline and __asm, rather than inline and asm. By default (without -g)
lint won't accept the latter two, but will accept the former two as valid.
As far as gcc's concerned, they're the same.
1996-12-19 07:56:32 +00:00
jtc
0fbafa5982 Added rand_r() 1996-11-19 02:56:35 +00:00
lukem
43d6d7cf35 fix the the typos 1996-11-12 01:04:24 +00:00
jtc
ab90fa0e5c POSIX.1 requires that stdio buffers be flushed on abort. 1996-10-24 20:45:55 +00:00
perry
78954ddcf6 Nuked machine specific conditionals for tahoe. 1996-10-16 17:56:37 +00:00
christos
b47990743d <machine/endian.h> -> <sys/types.h> 1996-10-13 00:05:33 +00:00
jtc
943f3d2f5c The argument to isspace() must be representable as an unsigned char.
This change casts the argument to an unsigned char so that this
function will work with strings with their 8th bit set.
1996-07-20 01:09:05 +00:00
jtc
2d903c854c Changing type of "c" to unsigned did not fix the problem --- a signed
char is sign extended before it is assigned to an unsigned int.  This
fix, which has been tested with a different testcase, adds casts to
signed chars which results in proper behavior.
1996-07-20 01:03:54 +00:00
jtc
83481cc8e8 Changing type of "c" to unsigned did not fix the problem --- a signed
char is sign extended before it is assigned to an unsigned int.  This
fix, which has been tested with a different testcase, adds explicit
casts to unsigned char before the value of a character is copied.
1996-07-20 01:00:55 +00:00
jtc
24de9e4a12 The argument to isfoo() must be representable as an unsigned char, so
type of "c" has been changed to unsigned.  This change allows these
functions will work with strings with their 8th bit set.
1996-07-11 01:47:38 +00:00
jtc
c34d1a35dd Fixed bad cross reference: waitpid(3) -> waitpid(2). 1996-02-16 22:30:46 +00:00
mark
1d95fe29ce Get the floating point byte and word orders correct for the arm32. 1996-02-16 21:19:29 +00:00
jtc
03edaa24b7 The C standard says (about realloc) that "If size is zero and ptr is
not a null pointer, the object it points to is freed."  Reported by
Peter Seebach in PR #1806.
1996-01-17 02:45:25 +00:00
thorpej
6dda330ef6 New-style RCS ids. 1995-12-28 08:51:55 +00:00
mycroft
9b62656910 Rearrange to avoid sign problems with GCC. 1995-12-21 03:56:06 +00:00
mycroft
e0c0c4749d Minor cleanup. 1995-12-20 23:14:48 +00:00
pk
768025b976 waitpid is in section 2 (from John Kohl; PR#1710). 1995-11-01 10:02:29 +00:00
jtc
b5d1933995 Manpage fixes from Jochen Pohl. Aligns the prototypes in the SYNOPSIS
section with the actual function declarations.  See PR #1589 for details.
1995-10-12 15:40:27 +00:00
jtc
1840cfa21f pagesize(2) -> getpagesize(2) 1995-08-17 23:30:42 +00:00
jtc
0b2dbb02ca add explicit return type 1995-06-14 05:19:52 +00:00
jtc
6eaa1d60d8 define __atexit pointer 1995-06-14 05:17:53 +00:00
jtc
bebf039306 add extern qualifier to __atexit pointer declaration 1995-06-14 05:16:04 +00:00
jtc
9ae90685f2 Winning Strategies has placed this code in the public domain. 1995-05-11 23:03:44 +00:00
ragge
ae8e3c9f1a Changed abs.S to abs.c for vax. 1995-04-25 15:36:39 +00:00
jtc
92702b3bed removed unnecessary #include <stddef.h> 1995-03-23 19:42:42 +00:00
jtc
7681b92c66 Enable qabs(), a quad_t version of abs() and labs(). 1995-03-22 00:36:52 +00:00
jtc
918d73c578 LDIV -> QDIV 1995-03-21 23:46:00 +00:00
jtc
bec46bcced add cross references to qdiv(3) 1995-03-21 23:22:17 +00:00
jtc
bfd7fc20d9 New function qdiv. Like div and ldiv, but works with quad_t's. 1995-03-21 23:12:35 +00:00
jtc
5091f60d44 ldiv takes long arguments 1995-03-21 22:54:50 +00:00
jtc
3baa1f1967 Changed the multibyte character functions so they work with the native
single byte character set.
1995-03-05 07:41:15 +00:00
jtc
7cd5ae5858 remove unneeded "#include <stddef.h>" 1995-02-28 01:46:24 +00:00
jtc
88ba3f858c Changed <sys/signal.h> to <signal.h> 1995-02-28 01:13:50 +00:00
cgd
b42e80ba75 list the files needed on the alpha. 1995-02-10 17:46:48 +00:00
jtc
38163d03a8 #include <machine/endian.h>. 1994-12-23 22:50:19 +00:00
cgd
9903c64a33 (1) fix up for new compiler predefines
(2) clean up IEEE format defines, so that their names are accurate again.
1994-12-22 15:02:48 +00:00
cgd
ae9172d6cd specify man pages the new way. 1994-12-22 09:57:51 +00:00
jtc
6a9043df2e Use "const" qualifier so that tens, tinytens, and bigtens arrays are stored
in the text segment.
1994-12-20 00:43:48 +00:00
dean
6cd6f202d5 Include code for pmax 1994-11-14 23:48:02 +00:00
cgd
d2b0e8d86d be a bit more careful with types. 1994-10-19 03:07:18 +00:00
cgd
ce7850d53d cast type 1994-10-19 03:06:51 +00:00
cgd
5eca8fd521 casting types. 1994-10-19 03:06:34 +00:00
mycroft
bccad89957 Swap the definition of {lrand,nrand} with {mrand,jrand} to reflect reality. 1994-09-17 01:01:53 +00:00
jtc
2bdfe1ce0c Updgraded to March 3, 1994 version of dtoa.c from netlib with our local
changes.
1994-07-22 05:08:04 +00:00
mycroft
3a7aa4b533 Add merge.c and mergesort.3. 1994-06-16 05:27:17 +00:00
mycroft
2f86deea8e Add RCS ids. 1994-06-16 05:26:34 +00:00
mycroft
2c1d50080b Import from 4.4-Lite. 1994-06-16 05:21:06 +00:00
mycroft
7006d9d304 Clean up deleted files. 1994-05-20 06:19:50 +00:00
jtc
70b7b8f795 44lite moved cfree() to libcompat 1994-05-20 06:19:47 +00:00
mycroft
f5392c8ae8 Add realpath(3). 1994-05-17 12:44:06 +00:00
mycroft
1c98b23af1 New from 4.4-Lite. Needed for some 4.4 FS utilities. 1994-05-17 12:42:30 +00:00
jtc
a5284b9db4 merge back in our changes (mostly POSIX.2 pedanticism) 1994-05-06 18:18:33 +00:00
jtc
34ae5e111c sync with 44lite 1994-05-06 18:02:02 +00:00
cgd
4fffd61a7f fix it to be the way i *meant* it to be... 1994-04-08 00:58:04 +00:00
mycroft
30a812575e From Mark Weaver: Fix typo. 1994-04-07 16:28:05 +00:00
cgd
75e0f16f1b specify what the args's contents must be 1994-04-01 08:33:59 +00:00
jtc
a148e5bcbe Remove machine-dependent atof() implementations; use machine independant
version that wraps strtod() instead.
1994-03-17 01:58:55 +00:00
phil
0fc8133c23 Adding ns32k support. 1994-02-25 07:41:35 +00:00
jtc
e2c220f94b Fix spelling error in Copyright notice 1994-01-28 20:34:33 +00:00
jtc
584ac8448e Fix spelling errors. 1994-01-10 23:32:20 +00:00
mycroft
34dbfc64b6 Fix two compiler warnings. 1994-01-04 21:40:23 +00:00
jtc
bfc2593ae5 Integrate strtoq() and strtouq() from bsd-sources on uunet. 1994-01-03 22:58:35 +00:00
jtc
991b130549 #include <ctype.h> to use the isspace() macro. 1993-12-28 19:42:49 +00:00
jtc
bd1ff5e87a Fix bug #12, strtod() now uses localeconv() to get locale specific
decimal point character.
1993-12-21 19:24:09 +00:00
jtc
31b9353995 Use isspace() instead of a switch statement with explicit values when
skipping leading spaces.  This is needed for compliant behavior once
localization support is integrated.
1993-12-21 18:59:11 +00:00
jtc
448b825466 Remove unwanted comma from NAME section. 1993-12-15 18:09:42 +00:00
jtc
865516f9d5 Restore 4 lines of code that UCB added that got lost when I upgraded to
the latest version of this code.  This bug was responsible for printf
formatting errors when values were rounded to 0.
1993-12-07 18:54:32 +00:00
briggs
bdb4a3a91a Changed occurance of MACHINE_ARCH == "hp300" to MACHINE_ARCH == "m68k" 1993-12-05 15:45:52 +00:00
cgd
f00e1cfe6a get pc532 moved into ns32k; that's is MACHINE_ARCH 1993-12-05 02:20:58 +00:00
cgd
0ada107897 update for .S and MACHINE_ARCH 1993-12-04 02:33:35 +00:00
briggs
8d26954ec2 Add mc68000 to the list for IEEE_MC68k.
Checks for hp300 and amiga should prob. be removed at some point,
but they do no harm being there.
1993-12-03 03:30:16 +00:00
jtc
39d94328c9 Changed to use memset() instead of bzero(). 1993-11-30 21:55:35 +00:00
jtc
a66bb8995a Use "Er" for argument to -width in the lists in the ERROR sections so that
formatting is consistant.
1993-11-29 22:06:07 +00:00
jtc
71dad4e4a9 Strtoul returns a unsigned long. 1993-11-24 23:28:21 +00:00
jtc
685b5f8bc6 Remove BUGS section which stated that strtod was unimplemented. 1993-11-24 23:26:16 +00:00
jtc
9bd83209f0 Change C library functions to use strchr() and strrchr() instead of index()
and rindex().  This will allow (strict {ANSI, POSIX, XOPEN}) applications
to redefine index() and rindex() without effecting the library internals.
1993-11-24 19:43:49 +00:00
jtc
5e1b956859 Forgot to change dtoa() to __dtoa() when I updated the code from netlib. 1993-11-11 02:08:55 +00:00
jtc
7600aa4d0a Upgraded to Jun 21, 1993 version from research.att.com:
With 32-bit ints, the former could give too small a block for the return
  value when, e.g., mode = 2 or 4 and ndigits = 24 (16 for 16-bit ints).
  tweak to work with 32-bit ints and 64-bit long
1993-11-10 01:58:57 +00:00
jtc
1f10b5021b Added 1170's a64l() & l64a() functions. 1993-10-22 17:26:43 +00:00
deraadt
7be47c8451 #if defined(hp300) || defined(sparc) || defined(amiga)
The knowledge about floating point format should really be pulled in
from somewhere better.
1993-10-19 08:34:29 +00:00
cgd
b950dbff54 fixes from Thomas Eberhardt <thomas@mathematik.uni-Bremen.de> to:
(1) don't clobber the MLINKS variable in rpc
	(2) install the rand48 man page in stdlib
1993-10-19 00:36:16 +00:00
jtc
722c46e238 Rename _findenv() to __findenv(), as _findenv is in the user's namespace. 1993-10-15 01:26:42 +00:00
jtc
721f0be3c4 Removed trailing comma from SEE ALSO section. 1993-10-14 23:30:41 +00:00
jtc
d2b1e8e4d3 Rename intenral _rand_foo variables to __rand_foo, as _rand_foo is in the
user's namespace.
1993-10-14 00:34:17 +00:00
jtc
aa13ae606a Change _dorand48 to __dorand48, as _dorand48 is in the user's namespace. 1993-10-13 21:55:04 +00:00
jtc
98ada58186 Split cfree() out of calloc.c.
If a user compiling in a strict ANSI or strict POSIX environment uses his
own function named cfree (which is legal, since cfree is not in a restricted
namespace) and calloc, the link will fail due to the cfree in calloc.c.
1993-10-13 21:44:23 +00:00
jtc
716e19806c Document (well, really just mention) external variable optopt.
Add trailing semicolons to the extern variables in the SYNOPSIS section
like all of the other manpages with extern variables.
1993-10-13 17:23:39 +00:00
jtc
c5ff256532 POSIX.2 requires special behavior if the first character of the optstring
argument is a colon.
Updated the manpage to reflect the above change, and expanded the example to
the one used by the POSIX.2 rationale, as it more clearly explains how
the new behavior is to be used.
The manpage should be rewritten --- it is much more confusing than it
should be.
1993-10-12 21:52:45 +00:00
jtc
f2c1ee25de Added rand48 manual page. 1993-10-09 00:08:02 +00:00
jtc
aed559e85d Make it possible to use machine dependant versions of div and ldiv functions.
Use the new i386 versions of div and ldiv.
1993-10-09 00:03:32 +00:00
jtc
42cce25b89 Use machine dependant version of labs.[cs] if one is present.
If not one of the enumerated list of machines, use the C language
versions of abs, labs, and atof.
1993-10-08 00:08:12 +00:00
brezak
933a7b3ad8 Rand48 routines from martin@ntkupc1.tuwien.ac.at (Martin Birgmeier) 1993-10-07 19:53:35 +00:00
cgd
0b9f50897e make an arch directory in libc, and move all machine dirs into it 1993-10-07 00:17:24 +00:00
jtc
0108bea0bb SEE ALSO items not comma separated. 1993-10-04 18:06:34 +00:00
jtc
21f074709e Change <stdlib> to <stdlib.h> in SYNOPSIS. 1993-10-04 18:05:47 +00:00
jtc
ae00f50a7c Remove BUGS section, as atof() is now implemented in terms of strtod(). 1993-10-04 17:57:42 +00:00
phil
7ce7cb30df pc532 specifics. 1993-09-17 19:22:50 +00:00
jtc
2eb08c94c4 POSIX.2 has changed getopt to return -1 instead of EOF (to decouple getopt()
from standard i/o).  This change is more pedantic than functional as EOF
is defined to be -1.
1993-09-14 22:37:24 +00:00
jtc
9c20f740a3 Declare rcsid strings so they are stored in text segment. 1993-08-26 00:43:03 +00:00
jtc
647b2510cd Add cast to silence compiler warning. 1993-08-25 22:22:30 +00:00
jtc
ec73f57f05 cast away compiler warning message. 1993-08-20 23:40:43 +00:00
jtc
67f034415c Upgraded to be 1003.2-92 compliant. The only functional change is
that -1 is returned when the fork fails.  Updated implementation to
use int rather than deprecated "union wait".  Updated documentation
to describe error / return values.
1993-08-20 23:00:45 +00:00
mycroft
e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft
b1bd4afedc Add RCS indentifiers. 1993-08-01 07:42:49 +00:00
mycroft
cda4f8f6ee Add RCS identifiers. 1993-08-01 05:37:30 +00:00
mycroft
6001d6e5c9 system.c 1993-07-30 03:29:07 +00:00
mycroft
bdbbba0b73 Use execve() rather than execl(). This is faster and doesn't use malloc()
(and thus avoids an annoying problem which only seems to manifest itself
in KCL).
1993-07-29 22:09:42 +00:00
mycroft
119df3af46 Make this work on more than just a 386. 1993-07-12 01:23:14 +00:00
cgd
aacbd3b3e3 don't include an extra atof.c... 1993-07-09 10:09:31 +00:00
cgd
49693da854 update for better FP routines, from AT&T & elsewhere 1993-07-09 09:40:07 +00:00
proven
7766c000bc Prototype now matches declaration. 1993-05-11 17:08:08 +00:00
mycroft
24e496eca2 Eliminate GCC 2 warning due to prototype not being in scope. 1993-04-18 09:22:35 +00:00
cgd
61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00