thorpej
8969ba6ff5
Build _isinfl() and _isnanl().
2003-05-17 15:05:52 +00:00
kleink
db907cb577
Rename ieee754_function.c to function_ieee754.c, following the convention
...
used in exec_format.c, loadfile_format.c, subsys_machdep.c etc.
Per discussion with Christos.
2003-05-12 15:15:11 +00:00
kleink
3b364b9b85
Make sure we reference getcontext() by its internal name.
2003-04-07 21:04:20 +00:00
nathanw
4fb740b8de
Implement pthread_atfork() (in libc, because the required threadlib
...
stub behavior is exactly the same as the usual behavior).
2003-02-13 02:50:48 +00:00
kleink
7a9f64971b
Add swapcontext() lint stub.
2003-01-21 20:26:10 +00:00
kleink
13a5336c66
Move getcontext.S from gen to sys, where it belongs.
2003-01-19 23:49:12 +00:00
thorpej
3fdac2b8c5
Merge the nathanw_sa branch.
2003-01-18 10:52:16 +00:00
chs
c04f87a03e
remove setjmp/longjmp from libkern, they're not used.
2002-10-27 18:45:11 +00:00
thorpej
ad4531774a
Need <machine/psl.h> and <machine/signal.h>. Problem pointed out
...
by Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>.
2002-07-11 17:47:11 +00:00
thorpej
c061e6bf8b
Enable the libc-provided signal trampoline. The old __sigaction14
...
entry point has been replaced by the new __sigaction14() which is a
wrapper around the __sigaction_sigtramp system call (which is itself
not directly exposed outside of libc).
No shared library version change is necessary; no new symbols
are exposed outside of libc.
2002-07-10 04:29:05 +00:00
thorpej
8aa4d3caec
New __sigaction14() system call stub which registers the signal
...
trampoline, and the signal trampolines themselves.
NOTE: These are not yet enabled; they will be enabled after further
testing on more architectures.
2002-07-09 23:32:35 +00:00
wiz
92d8b1e9fa
Revert previous: .S files are currently compiled with -traditional-cpp,
...
so __STDC__ is _not_ always defined.
2002-05-26 12:24:55 +00:00
wiz
d56bb7c2ec
__STDC__ is always defined on NetBSD.
2002-05-26 11:48:00 +00:00
simonb
2d8577fb83
Clean up some rampant code duplication wrt ieee number handling:
...
- Add alignment-safe double and float unions.
- Use the above for the __infinity and __nan constants on all
architectures that use the standard ieee754 representation of
those constants.
- Add a single copy of various ieee754 math functions (frexp, isinf,
isnan, ldexp and modf) that had numerous duplicates among the
arch-specific directories.
- Use the above functions on all architectures where the generic C
versions where used. Architectures that had local assembly
routines are untouched (for those functions only).
2002-02-19 13:08:12 +00:00
thorpej
ac8c1c29e9
* Add WSYSCALL() to SYS.h, which creates a system call with an
...
internal name and a weak alias for the name.
* Add a WEAKASM syscall list, and process it.
* Make sysarch() have an internal name (_sysarch()).
2002-01-14 00:55:55 +00:00
thorpej
5d3e829423
Add internal names for fp{get,set}{mask,round,sticky}(), and
...
externally-visible weak aliases for the internal names.
2002-01-13 21:45:39 +00:00
tron
b1d32d0e07
Rename a parameter to fix build problem with new toolchain.
2001-11-08 11:24:07 +00:00
christos
fdda22398f
add an implementation of __clone(2)
2001-07-23 01:41:25 +00:00
christos
9a416d6f08
Add a macro "CALL()" to call a function correctly in the pic and non pic
...
case. Write ERROR() in terms of call.
2001-07-23 01:40:33 +00:00
kleink
b7ef7f807f
Use a bzero-based assembly language implementation for memset();
...
inspired by the recent sparc64 change.
2001-06-23 08:38:43 +00:00
kleink
3529d6d10f
Add missing internal names and weak aliases to assembly versions.
2001-05-29 13:03:01 +00:00
kleink
95fa77ab80
Make this work for PIC (as opposed to pic) without taking chances of fitting
...
__ffstab into a GOT13 relocation; from Eduardo Horvath.
2001-05-13 20:03:45 +00:00
pk
efd94d5369
Add required __syscall.S stub.
2000-12-13 10:29:40 +00:00
kleink
82fd76bb06
Need an internal name for pipe(2).
2000-09-28 08:38:53 +00:00
msaitoh
f9b799b651
check LIBC_SCCS
2000-09-13 22:32:25 +00:00
itohy
af83a97717
Add special treatment of shmat(2).
...
On m68k ELF calling standard (__SVR4_ABI__), if a function
returns a pointer, the return value should go to a0 as well as d0.
2000-07-07 08:20:50 +00:00
kleink
b8a4d7adf9
Need an internal name for fork().
2000-06-26 06:32:54 +00:00
kleink
2234f31b26
Add a _SYSCALL(entry,syscall) macro like the one found on other
...
architectures.
2000-06-26 06:31:37 +00:00
kleink
15bc7ed349
Thinko in previous: we do always use an internal name.
2000-06-26 06:25:36 +00:00
kleink
03f996bd0c
Add internal names for brk() and sbrk().
2000-06-23 15:40:36 +00:00
kleink
e4d7c2e329
Add ISO C99 long long integer general utility interfaces; partially addresses
...
PR standards/9482.
2000-03-06 18:32:22 +00:00
mycroft
c26054b799
Delint.
2000-01-22 22:40:58 +00:00
kleink
02867b49c9
Nuke the assembly version, which has been unused for > 2 years and is actually
...
identical to GCC's output from processing abs.c.
2000-01-20 18:28:33 +00:00
kleink
11e6c54cfc
C99: Define a NAN macro in <math.h> which evaulates to a constant expression of
...
a single-precision quiet NaN; only to be defined on platforms that do support
this value.
1999-12-23 10:15:05 +00:00
chs
f70d067294
use RODATA() instead of ENTRY() for __ffstab so that it works when profiling.
1999-09-06 19:00:24 +00:00
mycroft
b3b07a4c6e
Another microoptimization. Take advantage of the addition already having set
...
the flags for the <=0 comparison.
1999-08-30 18:28:24 +00:00
mycroft
0560606383
Reuse the trick of loading 0.0 (rather than 1.0) and then modifying the
...
exponent. It's a bit faster on some machines.
1999-08-30 18:01:40 +00:00
augustss
75d2dfe657
Remove more unused mulexp variables.
1999-08-30 15:11:32 +00:00
mycroft
5f34ffabca
ldexp(denormal, exp>1023) would generate the wrong result in all non-overflow
...
cases. Totally rework this code to fix this bug *and* make it faster.
1999-08-29 22:45:32 +00:00
mycroft
02a48bde49
Don't ever return -0.0.
1999-08-29 19:04:02 +00:00
mycroft
0d708431b7
Minor style change.
1999-08-29 18:40:50 +00:00
mycroft
ea4b733810
Trivial KNF.
1999-08-29 18:39:35 +00:00
mycroft
17030e8106
Separate isnan() into a separate module, and make isinf()/isnan() use ieee.h.
1999-08-29 18:08:27 +00:00
thorpej
30dca7f7db
Add __msgctl13(), __semctl13(), and __shmctl13() (symbols are __RENAME()'d
...
in their respective header files). Add PSEUDO stubs for the old versions
of these system calls.
Note that __semctl13() doesn't require the extra stub that the old
semctl()/__semctl() did, as the SUSv2 version takes variable arguments,
and thus does not require the extra indirection.
1999-08-25 05:09:27 +00:00
pk
0ffda58ae9
A new implementation of _setjmp/_longjmp that uses the T_FLUSHWIN trap.
...
This means the stack frame and program counter can restored directly
from the jmp_buf, eliminating the need to backtrack through frames
which does not work in all cases.
1999-06-27 11:10:18 +00:00
kleink
15fb0e4315
Shameless hack to reference end if using a.out and _end if using ELF.
1999-06-03 20:14:58 +00:00
kleink
dccf2a15e4
While in transition, conditionally rename _ASM_LABEL(cerror) and
...
_ASM_LABEL(curbrk) to _C_LABEL(__cerror) and _C_LABEL(__curbrk), respectively,
depending on the object format chosen, to avoid user namespace clashes.
1999-03-31 18:14:27 +00:00
mycroft
2b504929fa
Just some minor cleanup.
1999-03-10 08:15:43 +00:00
bouyer
dc306354b0
Move the bswap functions from libutil to libc (this bups the
...
minor of libc and the major of libutil). For little-endian architectures
merge the bnswap() assembly versions with nto* and hton* using symbols
aliasing. Use symbol renaming for the bswap function in this case to avoid
namespace pollution.
Declare bswap* in machine/bswap.h, not machine/endian.h. For little-endian
machines, common code for inline macros go in machine/byte_swap.h
Sync libkern with libc.
Adjust #include in kernel sources for machine/bswap.h.
1999-01-15 13:31:15 +00:00
kleink
6348b7d5b5
* On architectures using ELF, and conditionally on those in transition, rename
...
_ASM_LABEL(cerror) and _ASM_LABEL(curbrk) to _C_LABEL(__cerror) and
_C_LABEL(__curbrk) (or their respective architecture-specific equivalents) to
avoid possible name clashes with identifiers used in user applications.
* Do the same for minbrk on all architectures to avoid a GCC-specific (and
on ELF architectures effectively useless) symbol reference renaming in MI code.
1999-01-14 22:48:18 +00:00