| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
substitution errors for variables that don't exist.
If a machine architecture dependent makefile exists, include it
to discover if libc or libc_r is being built with NetBSD syscalls
instead of FreeBSD ones.
Put a NO_QUAD thingy around the quad makefile so that 64-bit
architectures can ignore that sh*t.
In the test for MDSRCS being empty, add all MISRCS to SRCS, rather
than just ignoring them.
|
|
|
|
|
|
|
|
|
| |
Define the HIDDEN_SYSCALLS macro as empty because libc doesn't have
renamed syscalls. This avoids an undefined macro error when
libc/sys/Makefile.inc goes to look though it. HIDDEN_SYSCALLS is
used by the equivalent makefile to this one in lib/libc_r to list
those syscalls that it needs to rename so that libc_r can provide
replacement functions.
|
|
|
|
|
|
| |
prototypes for the spinlock functions that will be used for thread locks.
libc will have stubs declared with weak symbols. libpthread and libc_r
will have functions that really do something.
|
|
|
|
| |
no code when building a library with __NETBSD_SYSCALLS defined.
|
|
|
|
|
| |
semsys syscall that FreeBSD kernels use. Grumble. So make the call
dependent on if __NETBSD_SYSCALLS is defined.
|
|
|
|
| |
into a library with __NETBSD_SYSCALLS defined.
|
|
|
|
| |
Add #include <string.h> to get prototypes.
|
|
|
|
| |
happy. The code works either way, but I like a clean compile.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Changes to support building with _POSIX_SOURCE set to 199309L:
1. Add sys/_posix.h to handle those preprocessor defs that POSIX
says have effects when defined before including any header files;
2. Change POSIX4_VISIBLE back to _POSIX4_VISIBLE
3. Add _POSIX4_VISIBLE_HISTORICALLY for pre-existing BSD features now
defined in POSIX. These show up when:
_POSIX_SOURCE and _POSIX_C_SOURCE are not set or
_POSIX_C_SOURCE is set >= 199309L
and vanish when:
_POSIX_SOURCE is set or _POSIX_C_SOURCE is < 199309L.
4. Explain these in man 9 posix4;
5. Include _posix.h and conditionalize on new feature test.
|
|
|
|
|
|
| |
references to abort() in light of POSIX mandated behaviour. I'm
still not 100% happy with much of the wording, but it's better
than it was.
|
|
|
|
| |
Switch to ANSI-style function definitions.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Completely recoded the ypmatch cache code. The old code could leak
memory: it would allow the cache to grow, but never
shrink. The new code imposes the following limits:
o The cache is capped at a limit of 5 entries.
o Each entry expires after five seconds, at which point
its slot is freed.
o If an insertion is to be done and all five slots
are filled, the oldest entry is forcibly expired
to release its slot.
Also, the cache is implemented on a per-binding basis rather than
having a global cache covering all bindings. This means that each
bound domain has its own 5 slot cache.
- Changed clntudp_create() to clntudp_bufcreate() so that the
xmit/recv message buffer sizes can be set explicitly. NIS transactions
are rarely much larger than 1024 bytes since YPMAXRECORD is 1024.
The defaults chosen by clntudb_create() are actually much larger
than needed. I set the xmit buffer to a little over 1024 and the
recv buffer to a little over 2048. This saves a few Kbytes for each
NIS binding.
- Add my name to the copyright. I think I've made enough changes to
this file to merit it. :)
Note: these changes should go into the 2.2.x branch, but I'm waiting
on feedback from a tester to see if the cache fixes solve the reported
memory leak problem.
|
|
|
|
| |
Pointed out by: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
|
|
|
|
| |
Suggested by: Theo de Raadt <deraadt@openbsd.org>
|
|
|
|
|
| |
This wasn't a problem in practice as PATH_LOG and PATH_OLDLOG
are both < sizeof sockaddr::sa_data.
|
|
|
|
|
| |
POSIX.4 headers and sysctl variables. Nothing should change
unless POSIX4 is defined or _POSIX_VERSION is set to 199309.
|
|
|
|
|
|
| |
I noticed cvs core dumps and uncleaned cvs temporary files in /tmp.
Fixed ANSIisms.
|
|
|
|
|
|
|
| |
off the end of the list variable.
PR: 5345, 5610
Submitted by: nagao@cs.titech.ac.jp
|
| |
|
|
|
|
|
|
|
| |
the original author.
PR: 5834
Discussed with: phk, jkh
|
|
|
|
| |
duplicated.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
pointer is 4-byte aligned. On a 64-bit machine it probably should
check that the pointer is 8-byte aligned (eh, Bruce?) 8-)
|
|
|
|
|
| |
building FreeBSD's libc to run with a NetBSD kernel. We'll get to
the alpha kernel later, I promise. 8-)
|
|
|
|
|
| |
PR: 5782
Submitted by: David Malone <dwmalone@maths.tcd.ie>
|
|
|
|
|
|
| |
fix a slight confusion about which draft of threads we are supporting.
this allows something as big and ugly as samba to be compiled with libc_r
and still work! our user-level pthreads seems amazingly robust!
|
| |
|
| |
|
|
|
|
|
|
|
| |
provides the cast from -1 to the signal() return type, so no further
casting by programmers should be required.
Pointed out by: bde (of course).
|
|
|
|
|
|
|
| |
can be simulated using bounds.
PR: 5708
Submitted by: Oliver Fromme <oliver.fromme@heim3.tu-clausthal.de>
|
|
|
|
|
|
| |
define `microsecond'. Cleaned up English.
Obtained from: mostly from sleep.3
|
|
|
|
|
|
| |
up English.
Obtained from: mostly from NetBSD
|
|
|
|
|
|
|
|
|
|
|
| |
implement mkdtemp
improve man page for mk*temp
use arc4random to seed extra XXX's randomly
Optionally warn of unsafe mktemp uses
From various commits by theo de raadt and Todd Miller.
Obtained from: OpenBSD
This should go into 2.2 after a testing period.
|
|
|
|
| |
MLINKS.
|
|
|
|
|
|
|
|
|
| |
one group. Thanks to Dirk Froemberg for supplying a patch for this. I will
be closing out the PR and moving this to the 2.2.5 branch later: my login
sessions to freefall from Columbia are ridiculously spotty today.
PR: 5610
Submitted by: Dirk Froemberg <ibex@physik.TU-Berlin.DE>
|
|
|
|
| |
Reviewed by: asami
|
|
|
|
| |
Obtained from: NetBSD (after complains from Bruce)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
into libc. This reduces the size of every dynamically linked
executable by 248 bytes, and it reduces the size of static executables
by a lesser amount. It also eliminates some global namespace
pollution.
With this change in place, the source for dlfcn.h should probably
be moved to "/usr/src/include". I'll save that for another day.
Compatibility note: Programs which use dlopen, if compiled on
systems with this change, will not run on systems with a libc from
prior to this change. Very few programs use dlopen, so I think
that is OK.
|
|
|
|
|
|
| |
Add cross-references to the elusive fpsetmask() function to various other
man pages.
Reviewed by: bde
|
| |
|
|
|
|
|
|
| |
instead of duplicating code, albeit trivial (inspired by NetBSD).
PR: 5524
|
| |
|
|
|
|
|
| |
Submitted by: garbanzo@hooked.net
Add strncasecmp, strncmp to NAME field.
|
|
|
|
| |
to ruin a 64-bit day.
|
|
|
|
| |
Obtained from:OpenBSD (theo de raadt)
|
|
|
|
|
|
| |
isn't a prerequisite, since it isn't required for the prototypes
and isn't always needed to call the functions (the address family
might be a variable).
|