| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
Reviewed by: bde
Approved by: jkh
Notes:
svn path=/head/; revision=40396
|
| |
|
|
|
|
|
|
|
|
| |
popen()ed child.
PR: misc/7810
Submitted by: Wayne Scott <wscott@ichips.intel.com>
Notes:
svn path=/head/; revision=40367
|
| |
|
|
| |
Notes:
svn path=/head/; revision=40357
|
| |
|
|
|
|
|
|
|
|
| |
telnet and tip, and probably a few other apps.
Reviewed by: bde
Approved by: jkh
Notes:
svn path=/head/; revision=40356
|
| |
|
|
| |
Notes:
svn path=/head/; revision=40219
|
| |
|
|
|
|
|
|
|
|
|
|
| |
vfork() can't be used. We could use alloca() in execl() so that
it can be called between vfork() and execve(), but a "portable"
popen() shouldn't depend on this. Calling execle() instead of
execl() should be fairly safe, since execle() is supposed to be
callable from signal handlers and signal handlers can't call
malloc(). However, execle() is broken.
Notes:
svn path=/head/; revision=40191
|
| |
|
|
|
|
|
|
|
|
|
| |
ever saw one), and move the description of NULL behaviour out to a
'NOTES' section, with an extra note that programs should not rely up
on it.
Kinda-approve-by: bde (by not replying to the mail with the diff)
Notes:
svn path=/head/; revision=40178
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR: 7923
Submitted by: Archie Cobbs <archie@whistle.com>
The scandir() function returns -1 if it fails.
In many cases when this happens, it does not free
the memory that it allocated, resulting in a memory
leak, or close the directory opened with opendir().
BAD DOG, BAD!
Notes:
svn path=/head/; revision=40013
|
| |
|
|
|
|
|
| |
Submitted by: Andrew Gallatin <gallatin@cs.duke.edu>
Notes:
svn path=/head/; revision=39979
|
| |
|
|
|
|
|
| |
Noticed by: Alex Nash <nash@mcs.net>
Notes:
svn path=/head/; revision=39923
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=39802
|
| |
|
|
|
|
|
| |
Reminded by: Bruce Evans <bde@zeta.org.au>
Notes:
svn path=/head/; revision=39750
|
| |
|
|
| |
Notes:
svn path=/head/; revision=39716
|
| |
|
|
|
|
|
| |
/etc/disktab.
Notes:
svn path=/head/; revision=39684
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
string. From the submitted patch:
Credit for patch: Chris Torek <torek@bsdi.com>
Tod Miller <millert@openbsd.org>
This makes us in line with SunOS 4.1.3_U1, Solaris 2.6, OpenBSD 2.3,
HP-UX 10.20, Irix 5.3. The previous behavior was in line with Ultrix 4.4.
PR: bin/7970
Submitted by: Niall Smart nialls@euristix.ie
Notes:
svn path=/head/; revision=39644
|
| |
|
|
| |
Notes:
svn path=/head/; revision=39606
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=39501
|
| |
|
|
|
|
|
|
|
| |
Set malloc_func *after* grabbing the thread lock.
Noticed by: Simon Coggins <simon@oz.org>
Notes:
svn path=/head/; revision=39491
|
| |
|
|
|
|
|
| |
Reviewed by: Bruce Evans <bde@zeta.org.au>
Notes:
svn path=/head/; revision=39455
|
| |
|
|
|
|
|
|
|
| |
PR: 7949
Reviewed by: phk
Submitted by: Norihiro Kumagai <kuma@jp.freebsd.org>
Notes:
svn path=/head/; revision=39408
|
| |
|
|
|
|
|
| |
Pointed out by: bde
Notes:
svn path=/head/; revision=39334
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
In some cases replace if (a == null) a = malloc(x); else a =
realloc(a, x); with simple reallocf(a, x). Per ANSI-C, this is
guaranteed to be the same thing.
I've been running these on my system here w/o ill effects for some
time. However, the CTM-express is at part 6 of 34 for the CAM
changes, so I've not been able to do a build world with the CAM in the
tree with these changes. Shouldn't impact anything, but...
Notes:
svn path=/head/; revision=39327
|
| |
|
|
|
|
|
|
|
| |
o Properly order things
Pointed out by: bde
Notes:
svn path=/head/; revision=39325
|
| |
|
|
|
|
|
|
|
| |
o No copyright on reallocf.
o Order makefile list correctly.
o indent reallocf properly.
Notes:
svn path=/head/; revision=39322
|
| |
|
|
|
|
|
|
|
| |
or NIS server problems, local user can login without a pause.
Also, -Wsomething cleanup.
Notes:
svn path=/head/; revision=39283
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
addresses by default.
Add a knob "icmp_bmcastecho" to "rc.network" to allow this
behaviour to be controlled from "rc.conf".
Document the controlling sysctl variable "net.inet.icmp.bmcastecho"
in sysctl(3).
Reviewed by: dg, jkh
Reminded on -hackers by: Steinar Haug <sthaug@nethelp.no>
Notes:
svn path=/head/; revision=39267
|
| |
|
|
| |
Notes:
svn path=/head/; revision=39202
|
| |
|
|
| |
Notes:
svn path=/head/; revision=39201
|
| |
|
|
|
|
|
|
|
|
| |
o Only allow options and domain name to be set when we aren't running
setuid.
Obtained from: OpenBSD
Notes:
svn path=/head/; revision=39194
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
when it returns NULL to indicate failure, it will also free the memory
that was passed to it, if that was non-null.
This does not change the semantics of realloc.
A second commit will be done to commit the conversion of those places in
the code that can safely use this to avoid memory leaks when confronted
with low memory situations.
Beaten-to-death-but-finally-approved-in: -current
Notes:
svn path=/head/; revision=39191
|
| |
|
|
| |
Notes:
svn path=/head/; revision=39140
|
| |
|
|
|
|
|
|
|
|
| |
to fork. It is difficult to do real vfork in libc_r, since almost every
operation with file descriptsor changes _thread_fd_table and friends.
popen(3) works much better with this change.
Notes:
svn path=/head/; revision=39118
|
| |
|
|
|
|
|
| |
when it happens.
Notes:
svn path=/head/; revision=39117
|
| |
|
|
|
|
|
| |
const char* was wrong and nonstandard.
Notes:
svn path=/head/; revision=39113
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- Fix some style errors I made back in 1995.
- Add a new flavor of the err(3) family, which takes an explicit
errno argument rather than implicitly examining errno. This
will make it easier to use these functions in conjunction with
modern library interfaces that return an errno value explicitly.
Notes:
svn path=/head/; revision=39112
|
| |
|
|
|
|
|
| |
Requested by: bde
Notes:
svn path=/head/; revision=39086
|
| |
|
|
| |
Notes:
svn path=/head/; revision=39060
|
| |
|
|
| |
Notes:
svn path=/head/; revision=39059
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
backing file for an anonymous (memory based) btree, and I don't think
that any setuid programs actually use it, but it is better to be safe
than sorry. This has been in my tree for a long time, maybe a year or
more...
Inspired by: Similar changes in OpenBSD, if memory serves (like nearly
a year ago)
Notes:
svn path=/head/; revision=39058
|
| |
|
|
|
|
|
| |
Suggested on -current by: Terry Lambert <tlambert@primenet.com>
Notes:
svn path=/head/; revision=39029
|
| |
|
|
|
|
|
| |
written by John Dyson.
Notes:
svn path=/head/; revision=39022
|
| |
|
|
| |
Notes:
svn path=/head/; revision=38995
|
| |
|
|
|
|
|
| |
Requested by: bde
Notes:
svn path=/head/; revision=38961
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
standard places ("/etc/objformat", ${OBJFORMAT}, argv) for an
indication of the user's preferred object file format. This
consolidates some code that was starting to be duplicated in more
and more places.
Use the new function in ldconfig.
Note: I don't think that gcc should use getobjformat(), even though
it could. The compiler should limit itself to functions that are
widespread, to ease porting and cross-compilation.
Notes:
svn path=/head/; revision=38960
|
| |
|
|
| |
Notes:
svn path=/head/; revision=38952
|
| |
|
|
|
|
|
| |
are too long to affect real code
Notes:
svn path=/head/; revision=38938
|
| |
|
|
|
|
|
|
|
| |
the text of the manual page.
Suggested by: bde
Notes:
svn path=/head/; revision=38930
|
| |
|
|
|
|
|
|
|
|
| |
<dfr@nlsystems.com>
Rewrote sleep() to remove int/long typing assumptions between the argument
to the function and the timespec structure.
Notes:
svn path=/head/; revision=38878
|
| |
|
|
|
|
|
| |
explanation in the text.
Notes:
svn path=/head/; revision=38877
|
| |
|
|
|
|
|
| |
is an int, not a long.
Notes:
svn path=/head/; revision=38847
|