| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
for getenv()/putenv().
PR: 10341 5604
|
|
|
|
|
|
| |
points. For library functions, the pattern is __sleep() <--
_libc_sleep() <-- sleep(). The arrows represent weak aliases. For
system calls, the pattern is _read() <-- _libc_read() <-- read().
|
|
|
|
|
|
| |
doesn't handle nastier corner cases such as "-j3 -33" correctly. <shrug>
PR: docs/12994 (James Howard <howardjp@wam.umd.edu>)
|
|
|
|
|
| |
See imp's 199808201619.KAA20970@harmony.village.org in freebsd-hackers (the
reallocf.c cvs history mistakenly refers to freebsd-current).
|
| |
|
|
|
|
| |
Approved by: phk
|
|
|
|
|
|
| |
a diagnostis).
Submitted by: Guy Harris <gharris@flashcom.net>
|
|
|
|
|
| |
PR: docs/15337
Submitted by: Bruce A. Mah <bmah@ca.sandia.gov>
|
|
|
|
| |
Obtained from: OpenBSD
|
|
|
|
| |
does not zero the allocated memory.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- Sort xrefs
- FreeBSD.ORG -> FreeBSD.org
- Be consistent with section names as outlines in mdoc(7)
- Other misc mdoc cleanup.
PR: doc/13144
Submitted by: Alexy M. Zelkin <phantom@cris.net>
|
| |
|
|
|
|
| |
sysexits.h-values as exit codes for portable programs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
track.
The $Id$ line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;
.\" $Id$
.\"
If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.
Approved by: bde
|
| |
|
|
|
|
| |
Approved by: phk
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
changes have made this too expensive. This gains about 1.25% on
worldstone on my SMP machine.
Swap-less machines, for instance PicoBSDs, and machines which experience
page-out trafic, check with top(1), will probably want to reenable this
with:
ln -s H /etc/malloc.conf
Suggested by: alc (&dyson ?)
|
|
|
|
| |
PR: docs/9376
|
| |
|
|
|
|
|
|
|
| |
be expected.
PR: docs/9701
Submitted by: Marc van Kempen <marc@bowtie.nl>
|
| |
|
| |
|
|
|
|
|
| |
PR: 8566
Submitted by: Archie Cobbs <archie@whistle.com>
|
|
|
|
|
|
|
|
|
| |
realloc functions check for recursion within the malloc code itself. In
a thread-safe library, the single spinlock ensures that no two threads
go inside the protected code at the same time. The thread implementation
is responsible for ensuring that the spinlock does in fact protect malloc.
There was a window of opportunity in which this was not the case. I'll fix
that with a commit RSN.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Our spinlock implementation allows a particular thread to obtain a lock
multiple times, but release the lock with a single unlock call. Since
we're detecting recursion, we know the lock is already owned by the
current thread in a previous call and must not be released in the
current call. This is really far too dependent on this particular
spinlock implementation, so I've added commented out calls to
THREAD_UNLOCK in the appropriate places. We can activate this code when
spinlock is taught to count each lock operation.
|