| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
last argument.
|
|
|
|
| |
Reviewed by: bde (briefly), mike (mentor), obrien
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
package, a more recent, generalized set of routines. Among the
changes:
- Declare strtof() and strtold() in stdlib.h.
- Add glue to libc to support these routines for all kinds
of ``long double''.
- Update printf() to reflect the fact that dtoa works slightly
differently now.
As soon as I see that nothing has blown up, I will kill
src/lib/libc/stdlib/strtod.c. Soon printf() will be able
to use the new routines to output long doubles without loss
of precision, but numerous bugs in the existing code must
be addressed first.
Reviewed by: bde (briefly), mike (mentor), obrien
|
|
|
|
|
|
|
|
| |
desired strptime(3) reentrancy by adding an extra argument to _strptime()
instead.
Approved by: markm (mentor)
MFC: 4 weeks
|
|
|
|
|
|
|
| |
hsearch(.., ENTER). Make the example reflect this.
PR: 49951
Submitted by: Peter Jeremy <peterjeremy@optushome.com.au>
|
|
|
|
|
|
|
| |
various tunables that are applicable to sendfile(2). Update tuning.7
to mention a reference to sendfile.2.
Approved by: keramida
|
|
|
|
| |
are at the top of loops.
|
| |
|
| |
|
|
|
|
| |
better than the code generated by gcc in many cases.
|
|
|
|
| |
to the Errors section.
|
|
|
|
| |
Obtained from: OpenBSD
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
not save (restore) the global pointer (GP) in the jmpbuf in setjmp
(longjmp) because it's not needed in general. GP is considered a
scratch register at callsites and hence is always restored after a
call (when it's possible that the call resolves to a symbol in a
different loadmodule; otherwise GP does not have to be saved and
restored at all), including calls to setjmp/longjmp. There's just
one problem with this now that we use setjmp/longjmp for context
switching: A new context must have GP defined properly for the
thread's entry point. This means that we need to put GP in the
jmpbuf and consequently that we have to restore is in longjmp.
This automaticly requires us to save it as well.
When setjmp/longjmp isn't used for context switching, this can be
reverted again.
|
|
|
|
|
|
|
|
|
|
|
| |
the J_SIG0 field. While here, rename J_SIG0 to J_SIGSET and
remove J_SIG1. The main reason for this change is that the
128-bit sigset_t is now aligned on a 16-byte boundary, which
allows us to use 16-byte atomic loads and stores on CPUs that
support it. The removal of J_SIG1 is done to avoid confusion:
it is never accessed and should not be. Renaming J_SIG0 to
J_SIGSET is the icing on the cake that's better done now than
later.
|
| |
|
| |
|
|
|
|
| |
`implicit declaration of function' variety.
|
|
|
|
|
|
| |
endian at compile-time.
Reviewed by: das
|
| |
|
|
|
|
|
|
|
| |
The background info in this man page needs rewriting
in some parts since the last major changes
to the code, however it still accuratly reflects how to use the
API.
|
|
|
|
|
|
| |
Tidy up the markup.
Only describe the new, post-2.0 behavior.
Added the RETURN VALUES and ERRORS sections.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
* use correct error detection of realloc failure
* strtol negative return check
* use strtol to validate string instead of rolling our own
validation code
* terminate the command sequence correctly
|
|
|
|
|
|
| |
fix const poisoning
add cast to silence warning
pull in unistd.h
|
| |
|
|
|
|
|
| |
Submitted by: imp
Reviewed by: silence on -audit
|
| |
|
|
|
|
| |
dladdr() and dlinfo() functions calls.
|
|
|
|
|
| |
Submitted by: Murray S. Kucherawy <msk@blackops.org>
X-MFC after: re approval
|
|
|
|
|
| |
PR: 48125
Submitted by: Per Hedeland <per@hedeland.org> (original version)
|
| |
|
|
|
|
| |
Prompted by: mini
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
seed->first value correlation. It breaks rand_r()... Other possible methods
like shuffling inside aray will breaks rand_r() too, because it assumes
only one word state, i.e. nothing extra can be added after seed assignment
in srand().
BTW, for old formulae seed->first value correlation is not so monotonically
increased as with other Linear Congruential Generators of this type only
becase arithmetic overflow happens. But overflow affects distribution
and lower bits very badly, as many articles says, such type of overflow
not improves PRNG.
So, monotonically increased seed->first value correlation problem remains...
|
|
|
|
|
|
|
| |
Only warnings that could be fixed without changing the generated object
code and without restructuring the source code have been handled.
Reviewed by: /sbin/md5
|
| |
|
| |
|
|
|
|
|
| |
o Add cross reference to dlinfo(3)
o Minor mdoc nits
|
| |
|
|
|
|
| |
examples, but it's better than nothing already.
|
|
|
|
|
|
|
|
|
|
| |
Introdice RTLD_SELF special handle and properly process it within
dlsym() and dlinfo() functions.
The intention is to improve our compatibility with Solaris and
to make a Java port easier.
Partially submitted by: phantom
|
|
|
|
|
|
|
|
|
| |
isnormal(). The current isinf() and isnan() are perserved for
binary compatibility with 5.0, but new programs will use the macros.
o Implement C99 comparison macros isgreater(), isgreaterequal(),
isless(), islessequal(), islessgreater(), isunordered().
Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU>
|