drochner
58bd20f660
if setcontext(2) returns, _exit(2) with a return code of -1 instead
...
of relying on a sensible return value
2006-11-08 21:16:40 +00:00
jld
e8ef331ffa
Fix PR 34112, where a program could mysteriously exit on return from a
...
signal handler, by deriving the context pointer from the stack pointer
instead of trying to read it from where the sigaction function may have
overwritten it with arbitrary bits.
Fix provided by Matthias Drochner in the PR.
2006-08-02 04:18:48 +00:00
christos
b1732b7a63
make these consistent.
2006-02-19 05:06:02 +00:00
christos
5b84b3983f
compat core reorg.
2005-09-13 01:44:08 +00:00
lukem
88c3eadbfa
Add missing __RCSID()
2005-06-12 05:21:25 +00:00
drochner
0341f6a45e
the WARN_REFERENCES text "include <signal.h> for correct reference" is pointless
...
as <signal.h> won't help you, so remove it
2004-03-26 22:15:03 +00:00
drochner
87d87e87fe
no need to define __HAVE_SIGINFO anymore
2004-03-26 21:29:07 +00:00
drochner
cd85223ee2
save errno while trying to install a !SA_SIGINFO trampoline -- this
...
is expected to fail with !COMPAT_16 kernels, and we shouldn't
overwrite errno in this case
2004-03-23 16:19:40 +00:00
christos
7152fa1070
use matt's powerpc implementation. It is simpler than mine, and it does
...
matter as far as performance goes.
2003-10-12 04:23:17 +00:00
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
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
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
thorpej
3fdac2b8c5
Merge the nathanw_sa branch.
2003-01-18 10:52:16 +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
ross
e1a248fa36
use canonical indirect jmp & call syntax to squelch new as(1) warning
2002-03-20 22:06:18 +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
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
mycroft
731305d114
Handle __syscall() in user-level code for i386.
2000-12-10 21:27:37 +00:00
mycroft
10bfc7b1b3
Use the SYSTRAP() macro more uniformly.
2000-12-08 22:57:57 +00:00
kleink
82fd76bb06
Need an internal name for pipe(2).
2000-09-28 08:38:53 +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
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
mycroft
fedba1d813
Clean up.
2000-04-03 04:20:44 +00:00
mycroft
72e604e414
Clean up.
...
* _REENTRANT is always defined.
* The vfork() stubs can use cerror.
2000-04-03 04:13:36 +00:00
mycroft
7f7027bb59
Repair syscall stubs that were not updated when the cerror interface was
...
modified.
2000-04-03 03:13:07 +00:00
mycroft
d018facbbf
A better fix for the stub-in-other-module problem:
...
Load the address of cerror through the GOT, so we can do a PIC_EPILOGUE and
leave the stack clean.
2000-02-19 21:04:58 +00:00
mycroft
5888ab27bd
Make cerror() work correctly for stubs in other shlibs -- e.g. libposix.
2000-01-23 23:38:32 +00:00
kleink
30ae96c534
Oops, missed these in the mcount -> __mcount renaming.
1999-09-28 08:27:08 +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
kleink
74511f97b1
Use _ALIGN_TEXT from <machine/asm.h>.
1999-08-23 08:45:09 +00:00
christos
e387e174fc
Amend for the PLT fixes, things broke last night with the changes to SYS.h
...
and cerror.S. In particular, the syscalls in the files committed below were
broken.
1999-02-08 18:56:48 +00:00
christos
143dcdbe44
Make cerror an entry and compensate for the PIC_PROLOGUE change in SYS.h
1999-02-07 17:22:25 +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
thorpej
efd37a7da8
Warn about references to the compatibility vfork() (i.e. the vfork() with
...
the 4.4BSD non-shared-address-space semantics), and direct the user to
include <unistd.h> to generate the correct reference.
This warning isn't about an ABI compatibility issue, but the new vfork() is
considerably faster.
1998-12-02 19:29:56 +00:00
thorpej
e644246e6a
Warn about references to the compatibility() sigaction(), sigpending(),
...
sigprocmask(), sigreturn(), and sigsuspend(), and direct the user to
include <signal.h> to generate the correct reference.
1998-12-02 01:01:03 +00:00
kleink
b5fe349eff
Add *__errno() redirection for _REENTRANT code.
1998-10-01 19:25:05 +00:00
kleink
d8d9d85d13
(Fortunately harmless) typo in previous.
1998-10-01 19:20:44 +00:00
kleink
f73ad7167d
Add *__errno() redirection for _REENTRANT code.
1998-10-01 09:26:31 +00:00
christos
2e3d142a37
Add a compat sigaction.
1998-09-26 23:57:15 +00:00
christos
6bacaab8be
Fix signal mess. Change old syscalls to use the right signal numbers
...
and add a versioned copy of sigreturn (from Jason)
1998-09-26 23:49:34 +00:00
thorpej
0c3c6dabb8
Use _C_LABEL() to generate C labels.
1998-07-01 06:24:25 +00:00