| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
Set malloc_func *after* grabbing the thread lock.
Noticed by: Simon Coggins <simon@oz.org>
|
|
|
|
| |
Reviewed by: Bruce Evans <bde@zeta.org.au>
|
|
|
|
|
|
| |
PR: 7949
Reviewed by: phk
Submitted by: Norihiro Kumagai <kuma@jp.freebsd.org>
|
|
|
|
| |
Pointed out by: bde
|
|
|
|
|
|
|
|
|
|
|
| |
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...
|
|
|
|
|
|
| |
o Properly order things
Pointed out by: bde
|
|
|
|
|
|
| |
o No copyright on reallocf.
o Order makefile list correctly.
o indent reallocf properly.
|
|
|
|
|
|
| |
or NIS server problems, local user can login without a pause.
Also, -Wsomething cleanup.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
| |
|
|
|
|
|
|
|
| |
o Only allow options and domain name to be set when we aren't running
setuid.
Obtained from: OpenBSD
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
when it happens.
|
|
|
|
| |
const char* was wrong and nonstandard.
|
|
|
|
|
|
|
|
|
| |
- 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.
|
|
|
|
| |
Requested by: bde
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
| |
Suggested on -current by: Terry Lambert <tlambert@primenet.com>
|
|
|
|
| |
written by John Dyson.
|
| |
|
|
|
|
| |
Requested by: bde
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
are too long to affect real code
|
|
|
|
|
|
| |
the text of the manual page.
Suggested by: bde
|
|
|
|
|
|
|
| |
<dfr@nlsystems.com>
Rewrote sleep() to remove int/long typing assumptions between the argument
to the function and the timespec structure.
|
|
|
|
| |
explanation in the text.
|
|
|
|
| |
is an int, not a long.
|
|
|
|
| |
do profiling on alpha yet.
|
|
|
|
| |
where progname comes from __progname in crt0 or crt1.
|
|
|
|
|
|
|
|
|
|
|
| |
and res_* modules in a way that works for ELF. I moved the aliases
out of res_stubs.c and into the individual modules where the entry
points are defined. Weak aliases don't work in ELF unless that is
the case. (Actually, I'm surprised it worked for a.out.)
This should fix the undefined "inet_addr" and related symbols in
various applications that fail to include <arpa/inet.h> or
<resolv.h> as they are supposed to do.
|
| |
|
| |
|
|
|
|
|
| |
PR: 7666
Submitted by: Archie Cobbs <archie@whistle.com>
|
| |
|
| |
|
|
|
|
| |
now programs built on alpha that _must_ use FreeBSD syscalls to work.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
the diff is attached below. This is done on the 3.0 source-tree.
I have test this on 2.2-stable before, but I don't have a 3.0 machine
right now.
This patch is mainly to make libc support BIG5 encoding, thus add
zh_TW.BIG5 locale to 3.0.
Submitted by: Chen Hsiung Chan <frankch@waru.life.nthu.edu.tw>
|
|
|
|
| |
default asm code the same way as on i386.
|
| |
|
|
|
|
| |
sigaltstack by default if using FreeBSD syscalls.
|
|
|
|
| |
This is no longer the default.
|
|
|
|
|
|
| |
add to /etc/make.conf to use FreeBSD's libc with a NetBSD/Alpha kernel.
From now on, FreeBSD/Alpha is just FreeBSD.
|