Age | Commit message (Collapse) | Author |
|
introduce two new APIs for requesting strong random numbers:
arc4random_buf() - fill an arbitrary memory range with random numbers
arc4random_uniform() - return a uniformly distributed random number
below
a specified upper bound, avoiding the bias that comes from a naive
"arc4random() % upper_bound" construction.
these mirror similarly-named functions in the kernel;
lots of discussion deraadt@ mcbride@
|
|
|
|
|
|
updated but the function itself never was; ok millert
|
|
|
|
Add new sys/_types.h header
Include machine/_types.h or sys/_types.h where applicable
|
|
in sys/cdefs.h) instead of _FOO_SOURCE. Also fix several namespace
pollution issues, including the byte order defines. OK deraadt@
|
|
explicit about mktemp(3) in the man page.
|
|
* introduce the mbstate_t typedef.
impacts gnu libiconv, which has already been taken care of.
* Prepare for mb stuff to really exist, replace macro MB_CUR_MAX with
an external variable __mb_cur_max (impacts libX11 and various ports).
* use mbstate in all the mb <-> wchar functions with state.
* add a stub iswctype function allowing some ports to compile.
bash and gdiff are missing wcscoll, and need to be told there's no i18n
until this is fixed.
Discussed and matthieu, otto, millert, kettenis, deraadt.
Major libc bump
|
|
|
|
|
|
|
|
|
|
ok deraadt@
|
|
|
|
You must have an up-to-date gcc for this!
deraadt@ ok
|
|
rescinded 22 July 1999. Proofed by myself and Theo.
|
|
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.
|
|
|
|
when I committed atoll(3).
|
|
OK mickey@ and discussed with deraadt@
|
|
aliases to fake up strtou?q(). espie@ OK.
|
|
|
|
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).
|
|
outside the tree)
|
|
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
|
|
__attribute__ statement. Using '__printf__' makes it happy.
ok millert@ miod@
|
|
millert@ espie@ ok
|
|
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: ----------------------------------------------------------------------
|
|
|
|
Redefining it as a typedef is an error, as it prevents overloading
on e.g., int/wchar_t separately.
|
|
__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.
|
|
really change the API since those parameters that was been constified
really are not modified by getcap(3) routines.
|
|
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
|
|
setstate takes a const parameter
don't ever spew to stderr, just return NULL
|
|
|
|
|
|
entire trees for testing anyway, I might as well do this intrusive touching
of include files now. Added openBSD tags.
|
|
|
|
netbsd pr#1845
|
|
|