Commit Graph

56 Commits

Author SHA1 Message Date
itojun
e68f73c3fe add arc4random(3). from openbsd 2002-05-24 04:01:43 +00:00
kleink
a1560723b0 Don't declare qdiv() when qdiv_t wasn't defined previously; fixes PR lib/11557
from Richard Earnshaw.
2001-03-28 11:12:19 +00:00
kleink
77fbd9fe1c Sprinkle some restrict qualifiers. 2001-03-21 22:42:28 +00:00
cgd
713e55ce85 add prototypes for shquote() and shquotev() 2001-03-10 01:46:08 +00:00
cgd
920472acb3 add prototypes for getprogname and setprogname 2001-02-19 22:12:41 +00:00
christos
0b49c77063 deal with bsearch duplicate declaration. 2000-12-20 18:35:21 +00:00
briggs
e4bb13f3cd Move fmtcheck() prototype to stdio.h. It makes more sense to declare it
with the formatting functions with which it is meant to be used.  Thanks
to Klaus Klein for "encouraging" me to make this change.
2000-11-15 15:44:05 +00:00
briggs
d00ebb12e9 Add {__,}fmtcheck(), a function specified by Bill Sommerfeld to check
a user-supplied format string against a fallback format string to ensure
that they will consume arguments of the same type.

libc minor bump for new API entry point.
2000-10-20 18:46:05 +00:00
sommerfeld
60e54bbbdc Allow format-arg checking for setproctitle 2000-10-03 19:53:58 +00:00
kleink
bc3eaa0a03 ISO/IEC 9899:1999: MB_CUR_MAX expands to a positive integer expression with
type size_t (not int).

(Incompatible ABI change, ignored due to a window of just two days.)
2000-08-10 10:03:43 +00:00
tshiozak
51a53de0d5 Preparation for the future introduction of multibyte locale.
- MB_LEN_MAX is increased to 32.
 - To ensure binary compatibility for old executables
   under multibyte locale, versioned setlocale is added.
 - __mb_len_cur definision is added in setlocale.c
   and enable it in stdlib.h .
   It is also important for multibyte locale stuffs,
   but I just forgot.
2000-08-08 22:31:13 +00:00
kleink
e4d7c2e329 Add ISO C99 long long integer general utility interfaces; partially addresses
PR standards/9482.
2000-03-06 18:32:22 +00:00
kleink
1bba558e50 Move <null.h> to <sys/null.h> for the purpose of avoiding conflicts due to
std C headers including it, and a kernel module written in C++ would benfit
as well.
2000-01-10 16:58:38 +00:00
kleink
c07f17e8d9 For the benefit of G++'s null pointer constant implementation, #define NULL
as __null with egcs 1.0 (GCC 2.90) and above.  As several headers are affected
by this change, move the definition into a new header file, <null.h>, to ease
maintenance.
1999-12-22 21:26:15 +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
mycroft
f886615650 __Namespace__ __protection__. 1998-07-30 00:44:15 +00:00
mycroft
a6b6f620db Sprinkle in some __attribute__((noreturn))s. 1998-07-28 00:28:29 +00:00
mycroft
cbb3325e89 Actually, FreeBSD calls this mkdtemp(). No point in creating a new name. 1998-07-27 16:12:01 +00:00
mycroft
7daf213c0f Add a mktempdir(), like mkstemp(), but it creates a directory. 1998-07-27 16:05:07 +00:00
mycroft
29916a94a6 Slight rearrangement. 1998-07-27 11:09:19 +00:00
mycroft
ab22ce8def If __AUDIT__ is defined, remove some traditional interfaces: gets, sprintf,
vsprintf, tempnam, mktemp, getwd.
1998-07-27 09:58:49 +00:00
mycroft
4f4968a946 Mark more functions returning internal buffers for const auditing. 1998-07-27 09:33:44 +00:00
mycroft
b223acf69a const poisoning. 1998-07-26 23:03:30 +00:00
kleink
9b9e255051 * Further name space protection reorganization: distinguish between various
issues of the XPG.
* Move setkey() prototype from <unistd.h> to this file. (XPG4)
* Move mkstemp(), mktemp(), ttyslot() and valloc() prototypes from <unistd.h>
  to this file. (XPG4.2)
1998-06-01 20:10:15 +00:00
kleink
ff08122ed4 Reorganize name space protection. 1998-05-11 12:00:27 +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
b7b7322c68 merge lite-2 1998-02-02 21:07:13 +00:00
thorpej
5caf2349e4 Fix the prototypes for srandom() and initstate() after the libc/stdlib lite-2
merge (ints -> longs).  The only platform on which this might have caused
a problem is the Alpha, and it happens to be safe because the first 6 arguments
are passed in registers on the Alpha (and are thus implicitly promoted to
longs anyhow).
1998-01-31 20:36:47 +00:00
christos
410b3b428a devname is (dev_t, mode_t) not (int, int) 1997-10-16 23:24:49 +00:00
mikel
e95e818cbd some minor KNF 1997-07-14 00:30:28 +00:00
christos
efac03b6a6 Add missing rand_r prototype 1997-07-13 18:01:53 +00:00
jtc
ef34ad8ea5 Add __dead qualifier to abort() and exit(); PR 1845 1995-12-27 21:19:08 +00:00
jtc
745bba819b added prototype for qabs() 1995-03-22 01:08:31 +00:00
jtc
f442fd56dc Moved conditional #include of <sys/types.h> to near the top of file.
Defined qdiv_t typedef.
Declared qdiv function.
1995-03-21 23:08:14 +00:00
jtc
096d03c8ef fix typo 1994-12-17 04:19:06 +00:00
jtc
8f4aafd39a add prototype for realpath() 1994-12-16 06:22:56 +00:00
cgd
4d2cbfce0a new RCS ID format. 1994-10-26 00:55:40 +00:00
jtc
9be1b3f521 Add strtoq() & strtouq() declarations 1994-08-07 23:17:56 +00:00
deraadt
ac50c9ed77 add 3 protos 1994-07-02 05:01:45 +00:00
mycroft
9100463c3b Update *sort() prototypes. 1994-06-16 05:45:35 +00:00
cgd
2922de7461 add _BSD's to ansi types 1994-05-21 09:41:59 +00:00
jtc
6abbb15be4 add new getopt(3) extern variable optreset 1994-05-07 00:20:42 +00:00
cgd
e9b31046c9 setproctitle proto 1994-04-14 03:13:54 +00:00
cgd
3218612591 kill third arg to getbsize. 1994-01-25 20:10:11 +00:00
cgd
b39637b14a getbsize takes a (somewhat bogus, IMO) third parameter 1994-01-25 20:01:32 +00:00
cgd
2ca1b1a166 add protos for getbsize() (in libutil) and the getcap routines (in libc) 1994-01-24 23:15:24 +00:00
jtc
09a53cd276 stdlib.h should define NULL -- Ansi C, Section 7.10. 1993-11-13 01:44:59 +00:00
jtc
265211f17c Fix typo in last checkin. 1993-10-22 17:52:28 +00:00
jtc
e26feab105 Added prototypes for a64l() & l64a(). 1993-10-22 17:34:38 +00:00
jtc
7ec10e7095 Moved declarations for cfree, setenv, putenv and the rand48 family
into !_ANSI_SOURCE && !_POSIX_SOURCE conditional.
Added extern for getopt's optopt variable.
1993-10-13 17:56:09 +00:00