| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
Even better formula from random() could not be intetgrated because rand_r()
supposed to store its state in the single variable (but table needed for
random() algorithm integration).
|
|
|
|
| |
check in my changes.
|
|
|
|
| |
and rewrite strto[u]q() in terms of it.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Change __dtoa to not free the string it allocated the previous time it was
called. The caller now frees the string after usage if appropiate.
PR: 15070
Reviewed by: deischen
|
|
|
|
|
| |
number, and then placed in alphabetical order and comma separated.",
mdoc.samples(7) said.
|
| |
|
|
|
|
| |
Reviewed by: hackers
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Obtained from: inspired by NetBSD strtod
|
|
|
|
| |
PR: 15070
|
|
|
|
|
|
|
| |
Change __dtoa to not free the string it allocated the previous time it was
called. The caller now frees the string after usage if appropiate.
PR: 15070
|
|
|
|
|
|
| |
to be the same as -ragged in the current implementation) to
-ragged. With mdocNG, -filled displays produce the correct
output, formatted and justified to both margins.
|
| |
|
|
|
|
| |
Submitted by: Loren James Rittle <rittle@latour.rsch.comm.mot.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
adding (weak definitions to) stubs for some of the pthread
functions. If the threads library is linked in, the real
pthread functions will pulled in.
Use the following convention for system calls wrapped by the
threads library:
__sys_foo - actual system call
_foo - weak definition to __sys_foo
foo - weak definition to __sys_foo
Change all libc uses of system calls wrapped by the threads
library from foo to _foo. In order to define the prototypes
for _foo(), we introduce namespace.h and un-namespace.h
(suggested by bde). All files that need to reference these
system calls, should include namespace.h before any standard
includes, then include un-namespace.h after the standard
includes and before any local includes. <db.h> is an exception
and shouldn't be included in between namespace.h and
un-namespace.h namespace.h will define foo to _foo, and
un-namespace.h will undefine foo.
Try to eliminate some of the recursive calls to MT-safe
functions in libc/stdio in preparation for adding a mutex
to FILE. We have recursive mutexes, but would like to avoid
using them if possible.
Remove uneeded includes of <errno.h> from a few files.
Add $FreeBSD$ to a few files in order to pass commitprep.
Approved by: -arch
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Use _PATH_* where where possible.
|
| |
|
|
|
|
|
|
|
| |
stderr in case of warnings and errors.
Rename malloc_options to have a leading underscore, I belive I have been
told that is more correct namespace wise.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
This did not work correctly with whatis(1).
Issue brought up by: mpp
|
| |
|
|
|
|
| |
Pointed out by: phk
|
|
|
|
|
|
| |
The recent problems with sshd were due to sshd reassigning
`environ' when setenv() thinks it owns it. setenv() subsequently
realloc()s the new version of environ and *boom*
|
|
|
|
|
|
|
|
|
| |
in my tree for a long time. bde reviewed this once upon a time and
said it was OK, iirc. This also obviates the need to put ? in the
optstring argument to preclude the extra warning message which some
people think confuses users. When I made my getopt cleanups of a long
time ago, this was the compromise reached. I just neglected to commit
it until now.
|
|
|
|
|
|
|
|
| |
These will be turned off again as we approach 5.0-RELEASE.
If you benchmark things, make sure to
ln -sf j /etc/malloc.conf
to see "true" performance.
|
|
|
|
| |
Obtained from: NetBSD
|
|
|
|
|
| |
PR: 18465
Reported by: Kazu TAKAMUNE <takamune@avrl.mei.co.jp>
|
| |
|
|
|
|
| |
PR: docs/13218
|
|
|
|
| |
More libraries manpages updates following.
|
|
|
|
|
|
|
| |
<netch@segfault.kiev.ua>
Remove allocation failure check from 'A' option, the 'X' option does
this as a standalone check now.
|
| |
|
|
|
|
| |
libc_r.
|
|
|
|
|
| |
resolved_name -> resolved_path
resolvedname -> resolved_path
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
just use _foo() <-- foo(). In the case of a libpthread that doesn't do
call conversion (such as linuxthreads and our upcoming libpthread), this
is adequate. In the case of libc_r, we still need three names, which are
now _thread_sys_foo() <-- _foo() <-- foo().
Convert all internal libc usage of: aio_suspend(), close(), fsync(), msync(),
nanosleep(), open(), fcntl(), read(), and write() to _foo() instead of foo().
Remove all internal libc usage of: creat(), pause(), sleep(), system(),
tcdrain(), wait(), and waitpid().
Make thread cancellation fully POSIX-compliant.
Suggested by: deischen
|
|
|
|
|
|
|
|
| |
o Do not override `environ' if realloc() fails, leave it intact.
o Set `alloced' only when memory is actually allocated.
PR: bin/5604 (2nd part)
Reviewed by: bde
|