millert
39068fdcad
Update strtonum() protor
20 years ago
tedu
bc41fb1d63
strtonum prototype
20 years ago
millert
d3af4c4238
Add _Exit(3) as per C99. Discussed with espie@ some time ago.
20 years ago
millert
9ba24fbffc
Prototype llabs(3). Forgotten commit gathering bit rot in my tree...
21 years ago
avsm
3f2bee58c7
add __bounded__ attributes for userland headers; enabled with -Wbounded
ok deraadt@
21 years ago
avsm
b75b1238ee
backout the __bounded__ attributes for a while; requested by deraadt@
21 years ago
avsm
3ab653a0d9
Mark various standard library functions with the __bounded__ attribute.
You must have an up-to-date gcc for this!
deraadt@ ok
21 years ago
millert
cc6797b16c
Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.
21 years ago
millert
52c5998342
GNU-like getopt_long() from NetBSD with changes by me to support
getopt_long_only(). At some point this should replace the BSD
getopt(3) but we are not there yet.
While I am here add protection from the multiple getopt() definitions
due to conflicting standards.
22 years ago
millert
5a1579637f
Add ecvt(), fcvt() and gcvt() for standard compliance and legacy code.
22 years ago
millert
e1428f6838
Add prototype for atoll(3). I must have forgotten to commit this bit
when I committed atoll(3).
22 years ago
millert
9a61bb23a6
NULL is now 0L so it is the same size as a pointer.
OK mickey@ and discussed with deraadt@
22 years ago
millert
8605e7d157
Replace strtou?q() with the more standard strtou?ll(), using weak
aliases to fake up strtou?q(). espie@ OK.
22 years ago
millert
b885e82db3
Revert local changes that snuck in to the last commit.
22 years ago
millert
d212774fe6
Some user header files may define an abs macro which will cause a
syntax error if the #define happens before stdlib.h is included.
If abs is #defined, #undef and issue a warning. This is similar
to what Tru64 UNIX does and is effectively the same as what happens
on Solaris (though on Solaris the real abs() is a macro).
22 years ago
millert
959b08f109
Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)
22 years ago
millert
b68c09e067
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
22 years ago
krw
fcba968e69
Ghostscript port refused to build with 'printf' in the
__attribute__ statement. Using '__printf__' makes it happy.
ok millert@ miod@
23 years ago
miod
87e28a1567
Mention printf-like attributes for setproctitle().
millert@ espie@ ok
23 years ago
millert
3711d3d2cc
Add new cgetusedb() function to toggle reading of .db files in getcap(3).
Needed for cap_mkdb to really DRT when given several input files or
an output file with a different name from the input file.
cvs: ----------------------------------------------------------------------
23 years ago
millert
258337bfb7
Add srandomdev() from FreeBSD for use by sendmail and others.
24 years ago
espie
ecdb2b8203
In ANSI C++, wchar_t is a builtin. gcc 2.95.1 handles that correctly.
Redefining it as a typedef is an error, as it prevents overloading
on e.g., int/wchar_t separately.
25 years ago
espie
de172e7c0c
Define NULL to be __null for C++: better quality of implementation.
__null is a magic constant of integral type that converts to a null pointer
as should be, but warns for ambiguity when used to resolved an overload
between an integral type and a pointer type.
25 years ago
millert
0be6da5c32
constify getcap(3). This fixes a warning in libcurses and doesn't
really change the API since those parameters that was been constified
really are not modified by getcap(3) routines.
25 years ago
d
31570910f0
Add thread-safety to libc, so that libc_r will build (on i386 at least).
All POSIX libc api now there (to P1003.1c/D10)
(more md stuff is needed for other libc/arch/*)
(setlogin is no longer a special syscall)
Add -pthread option to gcc (that makes it use -lc_r and -D_POSIX_THREADS).
Doc some re-entrant routines
Add libc_r to intro(3)
dig() uses some libc srcs and an extra -I was needed there.
Add more md stuff to libc_r.
Update includes for the pthreads api
Update libc_r TODO
26 years ago
millert
d919ab04d0
More XPG4.2 --
setstate takes a const parameter
don't ever spew to stderr, just return NULL
27 years ago
deraadt
a559e2f17b
size_t n in initstate(); XPG
27 years ago
deraadt
a5b4ccde1f
for XPG, do not use special typedef types
27 years ago
niklas
2a0bf72166
Well, as we are heading for a release people are encouraged to rebuild their
entire trees for testing anyway, I might as well do this intrusive touching
of include files now. Added openBSD tags.
27 years ago
dm
21435a50a6
arc4random() number generator, for use with things like RPC xid's.
28 years ago
deraadt
c7aabb0c49
abort() and exit() need __dead tags in stdlib.h; mike.long@analog.com;
netbsd pr#1845
29 years ago
deraadt
47b73ff83c
initial import of NetBSD tree
29 years ago