Commit Graph

199 Commits

Author SHA1 Message Date
christos ab0a78e1a7 - don't define __LIBC12_SOURCE__
- need to SIG_IGN SIGSYS for the version check
- simplify code
2003-09-12 20:42:15 +00:00
christos 8adecf9fbe need __HAVE_SIGINFO to get the right flavor of the sigreturn symbol. 2003-09-12 13:29:46 +00:00
christos 86ad7a15ee __sigreturn14 -> compat_16___sigreturn14; thanks yamt 2003-09-12 12:42:34 +00:00
christos 5a93912d03 No reason for __ in static variable. 2003-09-11 20:24:39 +00:00
christos c18cae3e90 For kernels that have COMPAT_16 enabled, detect that and use the old
sigcontext trampoline code when SA_SIGINFO is not set.
2003-09-11 20:23:46 +00:00
christos ec30b8c224 Add __sigtramp2.S 2003-09-06 22:56:47 +00:00
christos 9c5c2215ea siginfo signal trampoline code. 2003-09-06 22:10:40 +00:00
agc eb7c1594f1 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22280, verified by myself.
2003-08-07 16:42:00 +00:00
lukem a93ea220fc Rework how dependency generation is performed:
* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
  This is a change of behaviour.  If a Makefile wants the clean semantics
  it must specifically append to CLEANFILES.
  Resolves PR toolchain/5204.

* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
  that have a suffix of: .c .m .s .S .C .cc .cpp .cxx

* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES

* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d  depend upon ${DPSRCS}

* Deprecate the (short lived) DEPENDSRCS


Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.

Tested with "make -j 8 distribution" and "make distribution".
2003-08-01 17:03:41 +00:00
salo 99410184e7 netbsd.org->NetBSD.org 2003-07-26 19:24:24 +00:00
kleink 8929f86e50 Delint a use of uintptr_t; not strictly necessary with -current lint(1),
but consistent with makecontext.c.
2003-05-30 07:23:25 +00:00
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
kleink e77f46b397 Fix stack pointer fixup of oucp (a relict from times when this
was implemented entirely different, and then bit rot commenced).
2003-04-07 19:44:40 +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 326194c69f Update stack frame allocation for XMM state having been added to
mcontext_t; spotted by Frank van der Linden.
While here, also align the on-stack ucontext as required.
2003-01-26 18:14:03 +00:00
fvdl 75b44dbf11 Fix comment that wasn't closed because of a typo (but harmless, since followed
by another comment).
2003-01-26 16:22:01 +00:00
fvdl 3a79855417 Fix wrong %esp fixup. 2003-01-26 15:54:35 +00:00
thorpej 3fdac2b8c5 Merge the nathanw_sa branch. 2003-01-18 10:52:16 +00:00
junyoung 4c3981eea3 Save a jmp for memcpy(3). 2002-10-29 07:01:44 +00:00
junyoung 333f362341 memcpy(3) no longer deals with overlap case; it's now forward-only. 2002-10-29 06:53:18 +00:00
junyoung 7f21deb763 Get rid of pointer wraparound check. Ok'ed by TAMURA Kent. 2002-10-29 06:35:17 +00:00
kent 4d7aae1097 Avoid redundant memory access.
Fix diagnostic code for bcopy().
2002-07-10 06:01:51 +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
kent 763eb5645a memcpy/memmove/bcopy: Add diagnostic code to check pointer wraparound.
The code is enabled only when _DIAGNOSTIC is defined.
2002-07-04 15:48:40 +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
ross 70d3133ec0 Fix minor syntax warnings. 2002-03-23 20:13:35 +00:00
ross e1a248fa36 use canonical indirect jmp & call syntax to squelch new as(1) warning 2002-03-20 22:06:18 +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
lukem 50f5afd52e fix WARNS=2 (-Wshadow) warnings 2001-11-04 13:57:29 +00:00
fvdl d34ad42fdb Fix call to _exit. 2001-07-18 12:24:53 +00:00
thorpej da2e0bfb7c Simplify slightly. 2001-07-17 23:13:04 +00:00
fvdl 017c6632e8 __clone stub for i386 2001-07-17 06:03:43 +00:00
atatat c39d205545 fix a grammatical error error 2001-06-28 05:25:04 +00:00
kleink 2262305e20 Fix renaming botch in previous. 2001-05-29 23:59:19 +00:00
kleink 3529d6d10f Add missing internal names and weak aliases to assembly versions. 2001-05-29 13:03:01 +00:00
ross b25c2304f3 I have no idea why this syscall wrapper does some very un-unix-like
argument prefrobbing, in particular, it computes max(addr, __minbrk)
and uses that. The code is like this even in the ancient libc/i386 tree,
back to the earliest rev 1.2. I did not see it Lite 1, but I'm not totally
sure what the random site I found was serving up.
*
* However, I do know that it should use jb and not jl.
*
2001-05-06 19:27:07 +00:00
lukem e0cb66f652 rcsid & whitespace police 2001-01-08 15:21:37 +00:00
fvdl 52d1f12742 Make these actually work (fixes PR 11914). 2001-01-08 14:36:41 +00:00
mycroft e4a2f51cc9 Adjust to not use ALTENTRY(). 2000-12-14 20:17:32 +00:00
matt 44e25a6200 Add __syscall.S back to sys/Makefile.inc. Remove from arch/i386/gen/
Makefile.inc.  If your architecture doesn't have __syscall.S, *add it*.
2000-12-13 07:42:47 +00:00
matt 9a6a3ec1b5 Add __syscall.S to arch/i386/gen/Makefile.inc along with all the other
sys .S files.  Remove from arch/i386/Makefile.inc since it doesn't belong
there.
2000-12-13 07:14:43 +00:00
enami 44db4d16cc KMSRCS is different from SRCS. Put __syscall.S in latter. 2000-12-13 07:05:55 +00:00
simonb 0e35eedd7e Move __syscall.S to the arch specific Makefile.inc's where it is
implemented.
2000-12-12 22:38:42 +00:00
mycroft 731305d114 Handle __syscall() in user-level code for i386. 2000-12-10 21:27:37 +00:00