Home | History | Annotate | only in /src/lib/libc/arch/i386/sys
History log of /src/lib/libc/arch/i386/sys
RevisionDateAuthorComments
 1.17 13-Sep-2005  christos compat core reorg.
 1.16 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.15 20-Mar-2002  ross use canonical indirect jmp & call syntax to squelch new as(1) warning
 1.14 08-Dec-2000  mycroft branches: 1.14.2;
Use the SYSTRAP() macro more uniformly.
 1.13 03-Apr-2000  mycroft Clean up.
* _REENTRANT is always defined.
* The vfork() stubs can use cerror.
 1.12 02-Dec-1998  thorpej 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.
 1.11 01-Oct-1998  kleink Add *__errno() redirection for _REENTRANT code.
 1.10 01-Jul-1998  thorpej Use _C_LABEL() to generate C labels.
 1.9 16-Jul-1997  christos RCSID fixes: Always use the NetBSD rcsid and the macro RCSID() defined in
<machine/asm.h>; Also syscalls should be protected using the SYSLIBC_SCCS
define not LIBC_SCCS
 1.8 26-Oct-1994  mycroft Use trap gate to enter kernel.
 1.7 27-Jan-1994  mycroft Trivial speedup inspired by SPARC code.
 1.6 27-Jan-1994  mycroft Random cleanup.
 1.5 27-Jan-1994  mycroft Stylistic changes.
 1.4 24-Jan-1994  jtc Optimization tweaks:
Use testl %reg,%reg instead of cmpl $0,%reg
Use xorl %reg,%reg instead of movl $0,%reg
 1.3 21-Oct-1993  jtc Move the old berkeley sccs id into the header comment like it is done
for other source files.
 1.2 21-Oct-1993  jtc So many files in arch/i386 have been changed I might as well run my
remove unecessary trailing whitespace script.
 1.1 07-Oct-1993  cgd make an arch directory in libc, and move all machine dirs into it
 1.14.2.1 22-Mar-2002  nathanw Catch up to -current.
 1.4 04-Dec-1993  mycroft Clean up deleted files.
 1.3 21-Oct-1993  jtc Move the old berkeley sccs id into the header comment like it is done
for other source files.
 1.2 21-Oct-1993  jtc So many files in arch/i386 have been changed I might as well run my
remove unecessary trailing whitespace script.
 1.1 07-Oct-1993  cgd make an arch directory in libc, and move all machine dirs into it
 1.7 03-May-2025  riastradh libc/i386: Omit needless __PIC__ conditionals.

No binary change.

PR lib/59391: unnecessary __PIC__ conditionals clutter .S files
 1.6 23-May-2014  uebayasi branches: 1.6.36;
Put missing END() markers to set ELF symbol size.
 1.5 12-Sep-2013  joerg branches: 1.5.2;
Pass PICFLAGS down to cc-as-as and use __PIC__ to decide if it is small
vs big PIC mode. Retire -DPIC and -DBIGPIC.
 1.4 18-Nov-2011  joerg branches: 1.4.6;
Mark __cerror as hidden and exploit that to simplify assembler.
 1.3 18-Jul-2001  fvdl branches: 1.3.2; 1.3.60;
Fix call to _exit.
 1.2 17-Jul-2001  thorpej Simplify slightly.
 1.1 17-Jul-2001  fvdl __clone stub for i386
 1.3.60.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.3.60.1 17-Apr-2012  yamt sync with head
 1.3.2.2 08-Oct-2001  nathanw Catch up to -current.
 1.3.2.1 18-Jul-2001  nathanw file __clone.S was added on branch nathanw_sa on 2001-10-08 20:17:37 +0000
 1.4.6.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.5.2.1 10-Aug-2014  tls Rebase.
 1.6.36.1 02-Aug-2025  perseant Sync with HEAD
 1.2 13-Sep-2005  christos compat core reorg.
 1.1 25-Aug-1999  thorpej 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.
 1.13 26-Oct-2021  christos Merge all MD __sigaction14_sigtramp.c copies into one:
- sparc and sparc64 were not using version 0 sigcontext when there were
no arguments in the signal version. This was probably a bug.
- vax is using +1 the version numbers of the other archs.
- Only hppa was defining __LIBC12_SOURCE__ so it was getting a working
sigcontext before. all the other ports that supported sigcontext had
the compat code disabled.
[pointed out by thorpej, thanks!]
If we want to remove sigcontext support from userland at least now there
is less work to do so.
 1.12 28-Apr-2008  martin branches: 1.12.8;
Remove clause 3 and 4 from TNF licenses
 1.11 19-Feb-2006  christos branches: 1.11.18;
make these consistent.
 1.10 13-Sep-2005  christos compat core reorg.
 1.9 12-Jun-2005  lukem Add missing __RCSID()
 1.8 23-Mar-2004  drochner 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
 1.7 12-Oct-2003  christos use matt's powerpc implementation. It is simpler than mine, and it does
matter as far as performance goes.
 1.6 12-Sep-2003  christos - don't define __LIBC12_SOURCE__
- need to SIG_IGN SIGSYS for the version check
- simplify code
 1.5 11-Sep-2003  christos No reason for __ in static variable.
 1.4 11-Sep-2003  christos For kernels that have COMPAT_16 enabled, detect that and use the old
sigcontext trampoline code when SA_SIGINFO is not set.
 1.3 06-Sep-2003  christos siginfo signal trampoline code.
 1.2 18-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.1 09-Jul-2002  thorpej branches: 1.1.2;
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.
 1.1.2.3 02-Oct-2002  thorpej libc:
Internally rename __sigaction14 to __libc_sigaction14. Provide a
weak alias of __sigaction14 -> __libc_sigaction14.

libpthread:
Use __libc_sigaction14 to actually register the signal handler, rather
than using __sigaction_sigtramp() directly with a hard-coded trampoline
version. While we don't actually use the libc trampoline, we want to
avoid depending on any COMPAT_* kernel options down the road (this is
already the case for the VAX port).

Be explicit about which version of the signal interface we're interposing
(...14), and build pthread_sig.c with __LIBC12_SOURCE__ (required to get
the libc-internal interfaces).
 1.1.2.2 01-Aug-2002  nathanw Catch up to -current.
 1.1.2.1 09-Jul-2002  nathanw file __sigaction14_sigtramp.c was added on branch nathanw_sa on 2002-08-01 03:27:56 +0000
 1.11.18.1 18-May-2008  yamt sync with head.
 1.12.8.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.12.8.1 28-Apr-2008  martin file __sigaction14_sigtramp.c was added on branch christos-time_t on 2008-04-28 20:22:57 +0000
 1.8 13-Sep-2005  christos compat core reorg.
 1.7 26-Mar-2004  drochner no need to define __HAVE_SIGINFO anymore
 1.6 12-Sep-2003  christos need __HAVE_SIGINFO to get the right flavor of the sigreturn symbol.
 1.5 12-Sep-2003  christos __sigreturn14 -> compat_16___sigreturn14; thanks yamt
 1.4 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.3 28-Sep-1999  kleink Oops, missed these in the mcount -> __mcount renaming.
 1.2 23-Aug-1999  kleink branches: 1.2.2;
Use _ALIGN_TEXT from <machine/asm.h>.
 1.1 26-Sep-1998  christos Fix signal mess. Change old syscalls to use the right signal numbers
and add a versioned copy of sigreturn (from Jason)
 1.2.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.5 13-Sep-2005  christos compat core reorg.
 1.4 26-Mar-2004  drochner no need to define __HAVE_SIGINFO anymore
 1.3 12-Sep-2003  christos need __HAVE_SIGINFO to get the right flavor of the sigreturn symbol.
 1.2 12-Sep-2003  christos __sigreturn14 -> compat_16___sigreturn14; thanks yamt
 1.1 09-Jul-2002  thorpej branches: 1.1.2;
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.
 1.1.2.2 01-Aug-2002  nathanw Catch up to -current.
 1.1.2.1 09-Jul-2002  nathanw file __sigtramp1.S was added on branch nathanw_sa on 2002-08-01 03:27:57 +0000
 1.7 19-Oct-2020  kamil Restore ESP from mcontext

Improves unwinding of multiple frames without base pointer.
 1.6 12-Oct-2020  kamil Decorate the i386 signal trampoline with CFI attributes easing unwinding

Now, the unwinders (in backtrace(3) and similar) can unwind properly
the stack from a signal handler.
 1.5 23-May-2014  uebayasi Put missing END() markers to set ELF symbol size.
 1.4 28-Apr-2008  martin branches: 1.4.8; 1.4.28; 1.4.40;
Remove clause 3 and 4 from TNF licenses
 1.3 08-Nov-2006  drochner branches: 1.3.16;
if setcontext(2) returns, _exit(2) with a return code of -1 instead
of relying on a sensible return value
 1.2 02-Aug-2006  jld 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.
 1.1 06-Sep-2003  christos branches: 1.1.2; 1.1.4; 1.1.6; 1.1.8; 1.1.10;
siginfo signal trampoline code.
 1.1.10.1 03-Aug-2006  tron Pull up following revision(s) (requested by jld in ticket #1447):
lib/libc/arch/i386/sys/__sigtramp2.S: revision 1.2
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.
 1.1.8.1 11-Aug-2006  riz Pull up following revision(s) (requested by jld in ticket #10667):
lib/libc/arch/i386/sys/__sigtramp2.S: revision 1.2
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.
 1.1.6.1 03-Aug-2006  tron Pull up following revision(s) (requested by jld in ticket #1447):
lib/libc/arch/i386/sys/__sigtramp2.S: revision 1.2
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.
 1.1.4.1 11-Aug-2006  riz Pull up following revision(s) (requested by jld in ticket #10667):
lib/libc/arch/i386/sys/__sigtramp2.S: revision 1.2
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.
 1.1.2.1 11-Aug-2006  riz Pull up following revision(s) (requested by jld in ticket #10667):
lib/libc/arch/i386/sys/__sigtramp2.S: revision 1.2
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.
 1.3.16.1 18-May-2008  yamt sync with head.
 1.4.40.1 10-Aug-2014  tls Rebase.
 1.4.28.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.4.8.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.4.8.1 28-Apr-2008  martin file __sigtramp2.S was added on branch christos-time_t on 2008-04-28 20:22:57 +0000
 1.5 23-May-2014  uebayasi Put missing END() markers to set ELF symbol size.
 1.4 18-Nov-2011  joerg branches: 1.4.6; 1.4.16;
Mark __cerror as hidden and exploit that to simplify assembler.
 1.3 07-Aug-2003  agc branches: 1.3.56;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.2 20-Mar-2002  ross use canonical indirect jmp & call syntax to squelch new as(1) warning
 1.1 10-Dec-2000  mycroft branches: 1.1.2;
Handle __syscall() in user-level code for i386.
 1.1.2.1 22-Mar-2002  nathanw Catch up to -current.
 1.3.56.1 17-Apr-2012  yamt sync with head
 1.4.16.1 10-Aug-2014  tls Rebase.
 1.4.6.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.10 23-May-2014  uebayasi Put missing END() markers to set ELF symbol size.
 1.9 18-Nov-2011  joerg branches: 1.9.6; 1.9.16;
Mark __cerror as hidden and exploit that to simplify assembler.
 1.8 09-Mar-2007  ad branches: 1.8.36;
If I686_LIBC is defined, make syscalls using the 'sysenter' instruction.
 1.7 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.6 20-Mar-2002  ross use canonical indirect jmp & call syntax to squelch new as(1) warning
 1.5 08-Dec-2000  mycroft branches: 1.5.2;
Use the SYSTRAP() macro more uniformly.
 1.4 03-Apr-2000  mycroft Clean up.
* _REENTRANT is always defined.
* The vfork() stubs can use cerror.
 1.3 01-Oct-1998  kleink Add *__errno() redirection for _REENTRANT code.
 1.2 01-Jul-1998  thorpej Use _C_LABEL() to generate C labels.
 1.1 04-Jan-1998  thorpej Add syscall stubs for __vfork14(). These are basically copies of Ovfork.S
with the syscall numbers changed.

Since 4.4BSD vfork(2) did not share address space, Ovfork.S could be changed
to be identical to fork.S (modulo syscall numbers). __vfork14.S, however,
needs to remain separate since with a shared address space, the stub needs to
pre-decrement the stack and do an indirect jump to the return address, so that
the shared stackframe is still there when the parent returns. (Obviously,
this does not apply to systems which to not build stackframes on leaf calls.)
 1.5.2.1 22-Mar-2002  nathanw Catch up to -current.
 1.8.36.1 17-Apr-2012  yamt sync with head
 1.9.16.1 10-Aug-2014  tls Rebase.
 1.9.6.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.24 23-May-2014  uebayasi Put missing END() markers to set ELF symbol size.
 1.23 12-Sep-2013  joerg branches: 1.23.2;
Pass PICFLAGS down to cc-as-as and use __PIC__ to decide if it is small
vs big PIC mode. Retire -DPIC and -DBIGPIC.
 1.22 18-Nov-2011  joerg branches: 1.22.6;
Mark __cerror as hidden and exploit that to simplify assembler.
 1.21 09-Mar-2007  ad branches: 1.21.36;
If I686_LIBC is defined, make syscalls using the 'sysenter' instruction.
 1.20 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.19 20-Mar-2002  ross use canonical indirect jmp & call syntax to squelch new as(1) warning
 1.18 06-May-2001  ross 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.
*
 1.17 08-Dec-2000  mycroft branches: 1.17.2;
Use the SYSTRAP() macro more uniformly.
 1.16 26-Jun-2000  kleink Thinko in previous: we do always use an internal name.
 1.15 23-Jun-2000  kleink Add internal names for brk() and sbrk().
 1.14 03-Apr-2000  mycroft branches: 1.14.4;
Clean up.
* _REENTRANT is always defined.
* The vfork() stubs can use cerror.
 1.13 03-Apr-2000  mycroft Repair syscall stubs that were not updated when the cerror interface was
modified.
 1.12 08-Feb-1999  christos branches: 1.12.2;
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.
 1.11 14-Jan-1999  kleink * 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.
 1.10 16-Jul-1997  christos RCSID fixes: Always use the NetBSD rcsid and the macro RCSID() defined in
<machine/asm.h>; Also syscalls should be protected using the SYSLIBC_SCCS
define not LIBC_SCCS
 1.9 26-Oct-1994  mycroft Use trap gate to enter kernel.
 1.8 27-Jan-1994  mycroft Separate curbrk and mincrk.
 1.7 27-Jan-1994  mycroft Random cleanup.
 1.6 27-Jan-1994  mycroft SYS_brk --> SYS_break. Where's my axe?
 1.5 27-Jan-1994  mycroft More stylistic changes.
 1.4 24-Jan-1994  jtc Optimization tweaks:
Use testl %reg,%reg instead of cmpl $0,%reg
Use xorl %reg,%reg instead of movl $0,%reg
 1.3 06-Dec-1993  pk Use PIC_PLT for error returns.
Correct operand order in accessing `minbrk' and `curbrk'.
 1.2 21-Oct-1993  jtc Move the old berkeley sccs id into the header comment like it is done
for other source files.
 1.1 07-Oct-1993  cgd make an arch directory in libc, and move all machine dirs into it
 1.12.2.1 05-May-2000  he Pull up revision 1.13 (requested by assar):
Repair syscall stubs which were not adapted when the cerror
interface was changed.
 1.14.4.1 21-Aug-2000  kleink Pull up revs. 1.15-1.16 (approved by thorpej):
Add internal names for brk(), sbrk() and fork().
 1.17.2.2 22-Mar-2002  nathanw Catch up to -current.
 1.17.2.1 08-Oct-2001  nathanw Catch up to -current.
 1.21.36.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.21.36.1 17-Apr-2012  yamt sync with head
 1.22.6.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.23.2.1 10-Aug-2014  tls Rebase.
 1.3 04-Dec-1993  mycroft Clean up deleted files.
 1.2 21-Oct-1993  jtc Move the old berkeley sccs id into the header comment like it is done
for other source files.
 1.1 07-Oct-1993  cgd make an arch directory in libc, and move all machine dirs into it
 1.19 03-May-2025  riastradh libc/i386: Omit needless __PIC__ conditionals.

No binary change.

PR lib/59391: unnecessary __PIC__ conditionals clutter .S files
 1.18 23-May-2014  uebayasi branches: 1.18.36;
Put missing END() markers to set ELF symbol size.
 1.17 12-Sep-2013  joerg branches: 1.17.2;
Pass PICFLAGS down to cc-as-as and use __PIC__ to decide if it is small
vs big PIC mode. Retire -DPIC and -DBIGPIC.
 1.16 27-Feb-2012  joerg branches: 1.16.2;
Make __cerror protected to restore ABI leak in older libc versions,
where e.g. librt referenced the copy from libc. This still allows libc
to use PC-relative jumps.
 1.15 18-Nov-2011  joerg branches: 1.15.2;
Mark __cerror as hidden and exploit that to simplify assembler.
 1.14 07-Aug-2003  agc branches: 1.14.56;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.13 03-Apr-2000  mycroft Clean up.
 1.12 19-Feb-2000  mycroft 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.
 1.11 23-Jan-2000  mycroft Make cerror() work correctly for stubs in other shlibs -- e.g. libposix.
 1.10 07-Feb-1999  christos branches: 1.10.2;
Make cerror an entry and compensate for the PIC_PROLOGUE change in SYS.h
 1.9 14-Jan-1999  kleink * 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.
 1.8 01-Oct-1998  kleink (Fortunately harmless) typo in previous.
 1.7 01-Oct-1998  kleink Add *__errno() redirection for _REENTRANT code.
 1.6 01-Jul-1998  thorpej Use _C_LABEL() to generate C labels.
 1.5 16-Jul-1997  christos RCSID fixes: Always use the NetBSD rcsid and the macro RCSID() defined in
<machine/asm.h>; Also syscalls should be protected using the SYSLIBC_SCCS
define not LIBC_SCCS
 1.4 02-Apr-1994  cgd have cerror DTRT on returns, w.r.t. quads and -1. it needs to be done
here (think of syscall(SYS_lseek,...)). also, kill bogus lseek thang.
 1.3 27-Jan-1994  mycroft Random cleanup.
 1.2 21-Oct-1993  jtc Move the old berkeley sccs id into the header comment like it is done
for other source files.
 1.1 07-Oct-1993  cgd make an arch directory in libc, and move all machine dirs into it
 1.10.2.2 22-Feb-2000  he Pull up revision 1.12 (requested by mycroft):
Implement a better fix for the ``stubs in other shlibs'' problem.
With this fix the stack is left clean during the transition from
the stub to cerror().
 1.10.2.1 31-Jan-2000  he Pull up revision 1.11 (requested by mycroft):
Make cerror() work correctly for stubs in other shlibs -- e.g.
libposix.
 1.14.56.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.14.56.1 17-Apr-2012  yamt sync with head
 1.15.2.1 27-Feb-2012  riz Pull up following revision(s) (requested by joerg in ticket #57):
lib/libc/arch/arm/sys/cerror.S: revision 1.8
lib/libc/arch/vax/SYS.h: revision 1.12
lib/libc/arch/powerpc64/sys/cerror.S: revision 1.3
lib/libc/arch/powerpc64/sys/cerror.S: revision 1.4
lib/libc/arch/i386/sys/cerror.S: revision 1.16
lib/libc/arch/x86_64/sys/cerror.S: revision 1.5
lib/libc/arch/powerpc/sys/cerror.S: revision 1.10
lib/libc/arch/mips/sys/cerror.S: revision 1.17
lib/libc/arch/powerpc/sys/cerror.S: revision 1.9
Make __cerror protected to restore ABI leak in older libc versions,
where e.g. librt referenced the copy from libc. This still allows libc
to use PC-relative jumps.
PowerPC doesn't have CERROR since it never had a.out.
Use _C_LABEL(__cerror) instead.
 1.16.2.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.17.2.1 10-Aug-2014  tls Rebase.
 1.18.36.1 02-Aug-2025  perseant Sync with HEAD
 1.3 04-Dec-1993  mycroft Clean up deleted files.
 1.2 21-Oct-1993  jtc Move the old berkeley sccs id into the header comment like it is done
for other source files.
 1.1 07-Oct-1993  cgd make an arch directory in libc, and move all machine dirs into it
 1.16 07-Feb-2017  kamil Mark exect(3) obsolete and bind it to plain execve(2) on all platforms

The original exect(2) from BSD4.2 was enabling bit for tracing
(single-step mode) and calling execve(2). The purpose of it was to generate
a signal for a tracer once the application will change its image to a new
program.

This approach no longer works as:
- exect(2) traces (single-steps) libc and it requires hundreds or
thousands steps before entering a new image
- it's vax and x86 specific code
- this functionality has been moved to the kernel - once a process is
traced it will generate SIGTRAP with si_code TRAP_EXEC and route it to
its debugger
- the side effects and unportability make this interface unusable
- there are no known users of this interface
- it apparently never worked better since day0 of NetBSD ("day0 bug")

Users are requested to move to other execve(2) variants. Calling current
execve(2) as it is the most similar behavior to this one from BSD4.2.

Discussed several times on mailing lists and in PR/51700.

Add warning to exect(3) telling about marking this function obsolete.

This function is prepared to be removed in next libc major bump.

Sponsored by <The NetBSD Foundation>
 1.15 23-May-2014  uebayasi branches: 1.15.6; 1.15.10;
Put missing END() markers to set ELF symbol size.
 1.14 18-Nov-2011  joerg branches: 1.14.6; 1.14.16;
Mark __cerror as hidden and exploit that to simplify assembler.
 1.13 07-Aug-2003  agc branches: 1.13.56;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.12 20-Mar-2002  ross use canonical indirect jmp & call syntax to squelch new as(1) warning
 1.11 08-Dec-2000  mycroft branches: 1.11.2;
Use the SYSTRAP() macro more uniformly.
 1.10 03-Apr-2000  mycroft Repair syscall stubs that were not updated when the cerror interface was
modified.
 1.9 08-Feb-1999  christos branches: 1.9.2;
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.
 1.8 14-Jan-1999  kleink * 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.
 1.7 16-Jul-1997  christos RCSID fixes: Always use the NetBSD rcsid and the macro RCSID() defined in
<machine/asm.h>; Also syscalls should be protected using the SYSLIBC_SCCS
define not LIBC_SCCS
 1.6 26-Oct-1994  mycroft Use trap gate to enter kernel.
 1.5 27-Jan-1994  mycroft Random cleanup.
 1.4 27-Jan-1994  mycroft More stylistic changes.
 1.3 06-Dec-1993  pk Use PIC_PLT for error returns.
Correct operand order in accessing `minbrk' and `curbrk'.
 1.2 21-Oct-1993  jtc Move the old berkeley sccs id into the header comment like it is done
for other source files.
 1.1 07-Oct-1993  cgd make an arch directory in libc, and move all machine dirs into it
 1.9.2.1 05-May-2000  he Pull up revision 1.10 (requested by assar):
Repair syscall stubs which were not adapted when the cerror
interface was changed.
 1.11.2.1 22-Mar-2002  nathanw Catch up to -current.
 1.13.56.1 17-Apr-2012  yamt sync with head
 1.14.16.1 10-Aug-2014  tls Rebase.
 1.14.6.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.15.10.1 21-Apr-2017  bouyer Sync with HEAD
 1.15.6.1 20-Mar-2017  pgoyette Sync with HEAD
 1.3 04-Dec-1993  mycroft Clean up deleted files.
 1.2 21-Oct-1993  jtc Move the old berkeley sccs id into the header comment like it is done
for other source files.
 1.1 07-Oct-1993  cgd make an arch directory in libc, and move all machine dirs into it
 1.10 23-May-2014  uebayasi Put missing END() markers to set ELF symbol size.
 1.9 07-Aug-2003  agc branches: 1.9.62; 1.9.74;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.8 13-Feb-2003  nathanw Implement pthread_atfork() (in libc, because the required threadlib
stub behavior is exactly the same as the usual behavior).
 1.7 26-Jun-2000  kleink Need an internal name for fork().
 1.6 16-Jul-1997  christos branches: 1.6.12;
RCSID fixes: Always use the NetBSD rcsid and the macro RCSID() defined in
<machine/asm.h>; Also syscalls should be protected using the SYSLIBC_SCCS
define not LIBC_SCCS
 1.5 27-Jan-1994  mycroft Trivial speedup inspired by SPARC code.
 1.4 27-Jan-1994  mycroft Stylistic changes.
 1.3 24-Jan-1994  jtc Optimization tweaks:
Use testl %reg,%reg instead of cmpl $0,%reg
Use xorl %reg,%reg instead of movl $0,%reg
 1.2 21-Oct-1993  jtc Move the old berkeley sccs id into the header comment like it is done
for other source files.
 1.1 07-Oct-1993  cgd make an arch directory in libc, and move all machine dirs into it
 1.6.12.1 21-Aug-2000  kleink Pull up rev. 1.7 (approved by thorpej):
Add internal names for brk(), sbrk() and fork().
 1.9.74.1 10-Aug-2014  tls Rebase.
 1.9.62.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.3 04-Dec-1993  mycroft Clean up deleted files.
 1.2 21-Oct-1993  jtc Move the old berkeley sccs id into the header comment like it is done
for other source files.
 1.1 07-Oct-1993  cgd make an arch directory in libc, and move all machine dirs into it
 1.4 23-May-2014  uebayasi Put missing END() markers to set ELF symbol size.
 1.3 28-Apr-2008  martin branches: 1.3.8; 1.3.28; 1.3.40;
Remove clause 3 and 4 from TNF licenses
 1.2 18-Jan-2003  thorpej branches: 1.2.30;
Merge the nathanw_sa branch.
 1.1 05-Mar-2001  nathanw branches: 1.1.2;
file getcontext.S was initially added on branch nathanw_sa.
 1.1.2.1 05-Mar-2001  nathanw User-level support for LWPs and scheduler activations.
SVR4-style ucontext code by Klaus Klein.
 1.2.30.1 18-May-2008  yamt sync with head.
 1.3.40.1 10-Aug-2014  tls Rebase.
 1.3.28.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.3.8.2 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.3.8.1 28-Apr-2008  martin file getcontext.S was added on branch christos-time_t on 2008-04-28 20:22:57 +0000
 1.2 02-Apr-1994  mycroft Clean up deleted files.
 1.1 31-Mar-1994  mycroft Need to set %edx to -1 before cerror, though perhaps we should have something
more generic for this.
 1.4 06-Oct-1994  mycroft Clean up deleted files.
 1.3 24-Jan-1994  jtc Optimization tweaks:
Use testl %reg,%reg instead of cmpl $0,%reg
Use xorl %reg,%reg instead of movl $0,%reg
 1.2 21-Oct-1993  jtc Move the old berkeley sccs id into the header comment like it is done
for other source files.
 1.1 07-Oct-1993  cgd make an arch directory in libc, and move all machine dirs into it
 1.3 04-Dec-1993  mycroft Clean up deleted files.
 1.2 21-Oct-1993  jtc Move the old berkeley sccs id into the header comment like it is done
for other source files.
 1.1 07-Oct-1993  cgd make an arch directory in libc, and move all machine dirs into it
 1.2 13-Sep-2005  christos compat core reorg.
 1.1 25-Aug-1999  thorpej 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.
 1.7 23-May-2014  uebayasi Put missing END() markers to set ELF symbol size.
 1.6 07-Aug-2003  agc branches: 1.6.62; 1.6.74;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.5 28-Sep-2000  kleink Need an internal name for pipe(2).
 1.4 16-Jul-1997  christos branches: 1.4.12;
RCSID fixes: Always use the NetBSD rcsid and the macro RCSID() defined in
<machine/asm.h>; Also syscalls should be protected using the SYSLIBC_SCCS
define not LIBC_SCCS
 1.3 24-Jan-1994  jtc Optimization tweaks:
Use testl %reg,%reg instead of cmpl $0,%reg
Use xorl %reg,%reg instead of movl $0,%reg
 1.2 21-Oct-1993  jtc Move the old berkeley sccs id into the header comment like it is done
for other source files.
 1.1 07-Oct-1993  cgd make an arch directory in libc, and move all machine dirs into it
 1.4.12.1 29-Sep-2000  kleink Pull up rev. 1.5 (approved by thorpej):
Add internal name for pipe().
 1.6.74.1 10-Aug-2014  tls Rebase.
 1.6.62.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.3 04-Dec-1993  mycroft Clean up deleted files.
 1.2 21-Oct-1993  jtc Move the old berkeley sccs id into the header comment like it is done
for other source files.
 1.1 07-Oct-1993  cgd make an arch directory in libc, and move all machine dirs into it
 1.20 03-May-2025  riastradh libc/i386: Omit needless __PIC__ conditionals.

No binary change.

PR lib/59391: unnecessary __PIC__ conditionals clutter .S files
 1.19 23-May-2014  uebayasi branches: 1.19.36;
Put missing END() markers to set ELF symbol size.
 1.18 12-Sep-2013  joerg branches: 1.18.2;
Pass PICFLAGS down to cc-as-as and use __PIC__ to decide if it is small
vs big PIC mode. Retire -DPIC and -DBIGPIC.
 1.17 18-Nov-2011  joerg branches: 1.17.6;
Mark __cerror as hidden and exploit that to simplify assembler.
 1.16 07-Aug-2003  agc branches: 1.16.56;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.15 20-Mar-2002  ross use canonical indirect jmp & call syntax to squelch new as(1) warning
 1.14 08-Dec-2000  mycroft branches: 1.14.2;
Use the SYSTRAP() macro more uniformly.
 1.13 03-Apr-2000  mycroft Clean up.
* _REENTRANT is always defined.
* The vfork() stubs can use cerror.
 1.12 03-Apr-2000  mycroft Repair syscall stubs that were not updated when the cerror interface was
modified.
 1.11 08-Feb-1999  christos branches: 1.11.2;
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.
 1.10 14-Jan-1999  kleink * 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.
 1.9 01-Oct-1998  kleink Add *__errno() redirection for _REENTRANT code.
 1.8 01-Jul-1998  thorpej Use _C_LABEL() to generate C labels.
 1.7 16-Jul-1997  christos RCSID fixes: Always use the NetBSD rcsid and the macro RCSID() defined in
<machine/asm.h>; Also syscalls should be protected using the SYSLIBC_SCCS
define not LIBC_SCCS
 1.6 26-Oct-1994  mycroft Use trap gate to enter kernel.
 1.5 27-Jan-1994  mycroft Random cleanup.
 1.4 27-Jan-1994  mycroft More stylistic changes.
 1.3 06-Dec-1993  pk Use PIC_PLT for error returns.
Correct operand order in accessing `minbrk' and `curbrk'.
 1.2 21-Oct-1993  jtc Move the old berkeley sccs id into the header comment like it is done
for other source files.
 1.1 07-Oct-1993  cgd make an arch directory in libc, and move all machine dirs into it
 1.11.2.2 09-Sep-2000  he Pull up revision 1.12 (requested by he):
Update old syscall stubs to match the new cerror interface.
Fixes PR#10789.
 1.11.2.1 05-May-2000  he Pull up revision 1.13 (requested by assar):
Repair syscall stubs which were not adapted when the cerror
interface was changed.
 1.14.2.1 22-Mar-2002  nathanw Catch up to -current.
 1.16.56.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.16.56.1 17-Apr-2012  yamt sync with head
 1.17.6.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.18.2.1 10-Aug-2014  tls Rebase.
 1.19.36.1 02-Aug-2025  perseant Sync with HEAD
 1.3 04-Dec-1993  mycroft Clean up deleted files.
 1.2 21-Oct-1993  jtc Move the old berkeley sccs id into the header comment like it is done
for other source files.
 1.1 07-Oct-1993  cgd make an arch directory in libc, and move all machine dirs into it
 1.3 11-Nov-1996  mycroft Treat reboot() like a normal system call. From PR 2458.
 1.2 21-Oct-1993  jtc Move the old berkeley sccs id into the header comment like it is done
for other source files.
 1.1 07-Oct-1993  cgd make an arch directory in libc, and move all machine dirs into it
 1.3 01-Mar-1995  mycroft Clean up deleted files.
 1.2 21-Oct-1993  jtc Move the old berkeley sccs id into the header comment like it is done
for other source files.
 1.1 07-Oct-1993  cgd make an arch directory in libc, and move all machine dirs into it
 1.22 23-May-2014  uebayasi Put missing END() markers to set ELF symbol size.
 1.21 12-Sep-2013  joerg branches: 1.21.2;
Pass PICFLAGS down to cc-as-as and use __PIC__ to decide if it is small
vs big PIC mode. Retire -DPIC and -DBIGPIC.
 1.20 18-Nov-2011  joerg branches: 1.20.6;
Mark __cerror as hidden and exploit that to simplify assembler.
 1.19 02-Jul-2008  rmind branches: 1.19.2; 1.19.6;
Avoid calling a syscall when argument to sbrk(2) is zero.
OK by <ad>.
 1.18 09-Mar-2007  ad branches: 1.18.12;
If I686_LIBC is defined, make syscalls using the 'sysenter' instruction.
 1.17 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.16 20-Mar-2002  ross use canonical indirect jmp & call syntax to squelch new as(1) warning
 1.15 08-Dec-2000  mycroft branches: 1.15.2;
Use the SYSTRAP() macro more uniformly.
 1.14 26-Jun-2000  kleink Thinko in previous: we do always use an internal name.
 1.13 23-Jun-2000  kleink Add internal names for brk() and sbrk().
 1.12 03-Apr-2000  mycroft branches: 1.12.4;
Clean up.
* _REENTRANT is always defined.
* The vfork() stubs can use cerror.
 1.11 03-Apr-2000  mycroft Repair syscall stubs that were not updated when the cerror interface was
modified.
 1.10 08-Feb-1999  christos branches: 1.10.2;
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.
 1.9 14-Jan-1999  kleink * 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.
 1.8 16-Jul-1997  christos RCSID fixes: Always use the NetBSD rcsid and the macro RCSID() defined in
<machine/asm.h>; Also syscalls should be protected using the SYSLIBC_SCCS
define not LIBC_SCCS
 1.7 26-Oct-1994  mycroft Use trap gate to enter kernel.
 1.6 27-Jan-1994  mycroft Separate curbrk and mincrk.
 1.5 27-Jan-1994  mycroft Random cleanup.
 1.4 27-Jan-1994  mycroft SYS_brk --> SYS_break. Where's my axe?
 1.3 27-Jan-1994  mycroft More stylistic changes.
 1.2 21-Oct-1993  jtc Move the old berkeley sccs id into the header comment like it is done
for other source files.
 1.1 07-Oct-1993  cgd make an arch directory in libc, and move all machine dirs into it
 1.10.2.1 05-May-2000  he Pull up revision 1.11 (requested by assar):
Repair syscall stubs which were not adapted when the cerror
interface was changed.
 1.12.4.1 21-Aug-2000  kleink Pull up revs. 1.13-1.14 (approved by thorpej):
Add internal names for brk(), sbrk() and fork().
 1.15.2.1 22-Mar-2002  nathanw Catch up to -current.
 1.18.12.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.19.6.2 02-Jul-2008  rmind Avoid calling a syscall when argument to sbrk(2) is zero.
OK by <ad>.
 1.19.6.1 02-Jul-2008  rmind file sbrk.S was added on branch christos-time_t on 2008-07-02 20:07:44 +0000
 1.19.2.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.19.2.1 17-Apr-2012  yamt sync with head
 1.20.6.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.21.2.1 10-Aug-2014  tls Rebase.
 1.3 01-Mar-1995  mycroft Clean up deleted files.
 1.2 21-Oct-1993  jtc Move the old berkeley sccs id into the header comment like it is done
for other source files.
 1.1 07-Oct-1993  cgd make an arch directory in libc, and move all machine dirs into it
 1.8 18-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.7 01-Jul-1998  thorpej branches: 1.7.12;
Use _C_LABEL() to generate C labels.
 1.6 16-Jul-1997  christos RCSID fixes: Always use the NetBSD rcsid and the macro RCSID() defined in
<machine/asm.h>; Also syscalls should be protected using the SYSLIBC_SCCS
define not LIBC_SCCS
 1.5 27-Jan-1994  mycroft Random cleanup.
 1.4 18-Dec-1993  jtc Fix bug #24 by renaming _logname_valid to __logname_valid.
 1.3 21-Oct-1993  jtc Move the old berkeley sccs id into the header comment like it is done
for other source files.
 1.2 21-Oct-1993  jtc Change instances of LIBC_RCS back to LIBC_SCCS. If we are going to change
th LIBC_RCS, the entire source tree should be updated at once.
Remove && !defined(lint) from conditionals around rcs id's. No one is
ever going to pass a *.s file through lint.
 1.1 07-Oct-1993  cgd make an arch directory in libc, and move all machine dirs into it
 1.7.12.1 25-Feb-2002  nathanw Move setlogin() stub to C code, and namespace-protect it.
 1.4 01-Mar-1995  mycroft Clean up deleted files.
 1.3 21-Oct-1993  jtc Move the old berkeley sccs id into the header comment like it is done
for other source files.
 1.2 21-Oct-1993  jtc Change instances of LIBC_RCS back to LIBC_SCCS. If we are going to change
th LIBC_RCS, the entire source tree should be updated at once.
Remove && !defined(lint) from conditionals around rcs id's. No one is
ever going to pass a *.s file through lint.
 1.1 07-Oct-1993  cgd make an arch directory in libc, and move all machine dirs into it
 1.1 07-Jul-2000  itohy 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.
 1.2 13-Sep-2005  christos compat core reorg.
 1.1 25-Aug-1999  thorpej 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.
 1.3 13-Sep-2005  christos compat core reorg.
 1.2 02-Dec-1998  thorpej 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.
 1.1 26-Sep-1998  christos Add a compat sigaction.
 1.7 13-Sep-2005  christos compat core reorg.
 1.6 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.5 02-Dec-1998  thorpej 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.
 1.4 26-Sep-1998  christos Fix signal mess. Change old syscalls to use the right signal numbers
and add a versioned copy of sigreturn (from Jason)
 1.3 16-Jul-1997  christos RCSID fixes: Always use the NetBSD rcsid and the macro RCSID() defined in
<machine/asm.h>; Also syscalls should be protected using the SYSLIBC_SCCS
define not LIBC_SCCS
 1.2 21-Oct-1993  jtc Move the old berkeley sccs id into the header comment like it is done
for other source files.
 1.1 07-Oct-1993  cgd make an arch directory in libc, and move all machine dirs into it
 1.3 01-Mar-1995  mycroft Clean up deleted files.
 1.2 21-Oct-1993  jtc Move the old berkeley sccs id into the header comment like it is done
for other source files.
 1.1 07-Oct-1993  cgd make an arch directory in libc, and move all machine dirs into it
 1.18 13-Sep-2005  christos compat core reorg.
 1.17 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.16 20-Mar-2002  ross use canonical indirect jmp & call syntax to squelch new as(1) warning
 1.15 08-Dec-2000  mycroft branches: 1.15.2;
Use the SYSTRAP() macro more uniformly.
 1.14 03-Apr-2000  mycroft Repair syscall stubs that were not updated when the cerror interface was
modified.
 1.13 08-Feb-1999  christos branches: 1.13.2;
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.
 1.12 14-Jan-1999  kleink * 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.
 1.11 02-Dec-1998  thorpej 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.
 1.10 26-Sep-1998  christos Fix signal mess. Change old syscalls to use the right signal numbers
and add a versioned copy of sigreturn (from Jason)
 1.9 16-Jul-1997  christos RCSID fixes: Always use the NetBSD rcsid and the macro RCSID() defined in
<machine/asm.h>; Also syscalls should be protected using the SYSLIBC_SCCS
define not LIBC_SCCS
 1.8 26-Oct-1994  mycroft Use trap gate to enter kernel.
 1.7 27-Jan-1994  mycroft Random cleanup.
 1.6 27-Jan-1994  mycroft Stylistic changes.
 1.5 27-Jan-1994  mycroft Fix bug jtc introduced.
 1.4 24-Jan-1994  jtc Optimization tweaks:
Use testl %reg,%reg instead of cmpl $0,%reg
Use xorl %reg,%reg instead of movl $0,%reg
 1.3 06-Dec-1993  pk Use PIC_PLT for error returns.
Correct operand order in accessing `minbrk' and `curbrk'.
 1.2 21-Oct-1993  jtc Move the old berkeley sccs id into the header comment like it is done
for other source files.
 1.1 07-Oct-1993  cgd make an arch directory in libc, and move all machine dirs into it
 1.13.2.1 05-May-2000  he Pull up revision 1.14 (requested by assar):
Repair syscall stubs which were not adapted when the cerror
interface was changed.
 1.15.2.1 22-Mar-2002  nathanw Catch up to -current.
 1.3 01-Mar-1995  mycroft Clean up deleted files.
 1.2 21-Oct-1993  jtc Move the old berkeley sccs id into the header comment like it is done
for other source files.
 1.1 07-Oct-1993  cgd make an arch directory in libc, and move all machine dirs into it
 1.11 13-Sep-2005  christos compat core reorg.
 1.10 26-Mar-2004  drochner the WARN_REFERENCES text "include <signal.h> for correct reference" is pointless
as <signal.h> won't help you, so remove it
 1.9 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.8 28-Sep-1999  kleink Oops, missed these in the mcount -> __mcount renaming.
 1.7 23-Aug-1999  kleink branches: 1.7.2;
Use _ALIGN_TEXT from <machine/asm.h>.
 1.6 02-Dec-1998  thorpej 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.
 1.5 26-Sep-1998  christos Fix signal mess. Change old syscalls to use the right signal numbers
and add a versioned copy of sigreturn (from Jason)
 1.4 16-Jul-1997  christos RCSID fixes: Always use the NetBSD rcsid and the macro RCSID() defined in
<machine/asm.h>; Also syscalls should be protected using the SYSLIBC_SCCS
define not LIBC_SCCS
 1.3 30-Nov-1996  jtc PROF -> GPROF
 1.2 21-Oct-1993  jtc Move the old berkeley sccs id into the header comment like it is done
for other source files.
 1.1 07-Oct-1993  cgd make an arch directory in libc, and move all machine dirs into it
 1.7.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.3 01-Mar-1995  mycroft Clean up deleted files.
 1.2 21-Oct-1993  jtc Move the old berkeley sccs id into the header comment like it is done
for other source files.
 1.1 07-Oct-1993  cgd make an arch directory in libc, and move all machine dirs into it
 1.16 13-Sep-2005  christos compat core reorg.
 1.15 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.14 20-Mar-2002  ross use canonical indirect jmp & call syntax to squelch new as(1) warning
 1.13 08-Dec-2000  mycroft branches: 1.13.2;
Use the SYSTRAP() macro more uniformly.
 1.12 03-Apr-2000  mycroft Repair syscall stubs that were not updated when the cerror interface was
modified.
 1.11 08-Feb-1999  christos branches: 1.11.2;
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.
 1.10 14-Jan-1999  kleink * 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.
 1.9 02-Dec-1998  thorpej 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.
 1.8 26-Sep-1998  christos Fix signal mess. Change old syscalls to use the right signal numbers
and add a versioned copy of sigreturn (from Jason)
 1.7 16-Jul-1997  christos RCSID fixes: Always use the NetBSD rcsid and the macro RCSID() defined in
<machine/asm.h>; Also syscalls should be protected using the SYSLIBC_SCCS
define not LIBC_SCCS
 1.6 26-Oct-1994  mycroft Use trap gate to enter kernel.
 1.5 27-Jan-1994  mycroft Random cleanup.
 1.4 27-Jan-1994  mycroft Stylistic changes.
 1.3 06-Dec-1993  pk Use PIC_PLT for error returns.
Correct operand order in accessing `minbrk' and `curbrk'.
 1.2 21-Oct-1993  jtc Move the old berkeley sccs id into the header comment like it is done
for other source files.
 1.1 07-Oct-1993  cgd make an arch directory in libc, and move all machine dirs into it
 1.11.2.1 05-May-2000  he Pull up revision 1.12 (requested by assar):
Repair syscall stubs which were not adapted when the cerror
interface was changed.
 1.13.2.1 22-Mar-2002  nathanw Catch up to -current.
 1.3 01-Mar-1995  mycroft Clean up deleted files.
 1.2 21-Oct-1993  jtc Move the old berkeley sccs id into the header comment like it is done
for other source files.
 1.1 07-Oct-1993  cgd make an arch directory in libc, and move all machine dirs into it
 1.14 18-Apr-2020  thorpej Rename "syscall" to "_syscall" and provide "syscall" as a weak alias.
 1.13 23-May-2014  uebayasi branches: 1.13.24;
Put missing END() markers to set ELF symbol size.
 1.12 18-Nov-2011  joerg branches: 1.12.6; 1.12.16;
Mark __cerror as hidden and exploit that to simplify assembler.
 1.11 07-Aug-2003  agc branches: 1.11.56;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.10 20-Mar-2002  ross use canonical indirect jmp & call syntax to squelch new as(1) warning
 1.9 03-Apr-2000  mycroft branches: 1.9.6;
Repair syscall stubs that were not updated when the cerror interface was
modified.
 1.8 08-Feb-1999  christos branches: 1.8.2;
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.
 1.7 14-Jan-1999  kleink * 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.
 1.6 16-Jul-1997  christos RCSID fixes: Always use the NetBSD rcsid and the macro RCSID() defined in
<machine/asm.h>; Also syscalls should be protected using the SYSLIBC_SCCS
define not LIBC_SCCS
 1.5 26-Oct-1994  mycroft Use trap gate to enter kernel.
 1.4 27-Jan-1994  mycroft Random cleanup.
 1.3 06-Dec-1993  pk Use PIC_PLT for error returns.
Correct operand order in accessing `minbrk' and `curbrk'.
 1.2 21-Oct-1993  jtc Move the old berkeley sccs id into the header comment like it is done
for other source files.
 1.1 07-Oct-1993  cgd make an arch directory in libc, and move all machine dirs into it
 1.8.2.1 05-May-2000  he Pull up revision 1.9 (requested by assar):
Repair syscall stubs which were not adapted when the cerror
interface was changed.
 1.9.6.1 22-Mar-2002  nathanw Catch up to -current.
 1.11.56.1 17-Apr-2012  yamt sync with head
 1.12.16.1 10-Aug-2014  tls Rebase.
 1.12.6.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.13.24.1 21-Apr-2020  martin Sync with HEAD
 1.3 01-Mar-1995  mycroft Clean up deleted files.
 1.2 21-Oct-1993  jtc Move the old berkeley sccs id into the header comment like it is done
for other source files.
 1.1 07-Oct-1993  cgd make an arch directory in libc, and move all machine dirs into it

RSS XML Feed