Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/include Rename "syscall" to "_syscall" and provide ...
details: https://anonhg.NetBSD.org/src/rev/bc2b98bfb4bd
branches: trunk
changeset: 1009267:bc2b98bfb4bd
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sat Apr 18 23:55:50 2020 +0000
description:
Rename "syscall" to "_syscall" and provide "syscall" as a weak alias.
diffstat:
lib/libc/arch/aarch64/sys/syscall.S | 5 +++--
lib/libc/arch/alpha/sys/syscall.S | 4 ++--
lib/libc/arch/arm/sys/syscall.S | 4 ++--
lib/libc/arch/hppa/sys/syscall.S | 6 +++---
lib/libc/arch/i386/sys/syscall.S | 9 +++++----
lib/libc/arch/ia64/sys/syscall.S | 4 ++--
lib/libc/arch/m68k/sys/syscall.S | 9 +++++----
lib/libc/arch/mips/sys/__syscall.S | 12 ++++++++----
lib/libc/arch/mips/sys/syscall.S | 6 +++---
lib/libc/arch/or1k/sys/__syscall.S | 5 +++--
lib/libc/arch/powerpc/sys/__syscall.S | 5 +++--
lib/libc/arch/powerpc64/sys/__syscall.S | 5 +++--
lib/libc/arch/riscv/sys/__syscall.S | 5 +++--
lib/libc/arch/sh3/sys/syscall.S | 6 +++---
lib/libc/arch/sparc/sys/syscall.S | 6 +++---
lib/libc/arch/sparc64/sys/syscall.S | 6 +++---
lib/libc/arch/vax/sys/syscall.S | 7 ++++---
lib/libc/arch/x86_64/sys/syscall.S | 6 +++---
lib/libc/include/namespace.h | 3 ++-
19 files changed, 63 insertions(+), 50 deletions(-)
diffs (truncated from 375 to 300 lines):
diff -r 2ce404f70db9 -r bc2b98bfb4bd lib/libc/arch/aarch64/sys/syscall.S
--- a/lib/libc/arch/aarch64/sys/syscall.S Sat Apr 18 23:24:49 2020 +0000
+++ b/lib/libc/arch/aarch64/sys/syscall.S Sat Apr 18 23:55:50 2020 +0000
@@ -1,6 +1,7 @@
-/* $NetBSD: syscall.S,v 1.1 2014/08/10 05:47:37 matt Exp $ */
+/* $NetBSD: syscall.S,v 1.2 2020/04/18 23:55:50 thorpej Exp $ */
-#define FUNCNAME syscall
+#define FUNCNAME _syscall
#define SYSTRAP_SYSCALL SYSTRAP(syscall)
#include "__syscall.S"
+WEAK_ALIAS(syscall,_syscall)
diff -r 2ce404f70db9 -r bc2b98bfb4bd lib/libc/arch/alpha/sys/syscall.S
--- a/lib/libc/arch/alpha/sys/syscall.S Sat Apr 18 23:24:49 2020 +0000
+++ b/lib/libc/arch/alpha/sys/syscall.S Sat Apr 18 23:55:50 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: syscall.S,v 1.2 2000/06/14 06:49:03 cgd Exp $ */
+/* $NetBSD: syscall.S,v 1.3 2020/04/18 23:55:50 thorpej Exp $ */
/*
* Copyright (c) 1994, 1995 Carnegie-Mellon University.
@@ -29,4 +29,4 @@
#include "SYS.h"
-RSYSCALL(syscall)
+WSYSCALL(syscall,_syscall)
diff -r 2ce404f70db9 -r bc2b98bfb4bd lib/libc/arch/arm/sys/syscall.S
--- a/lib/libc/arch/arm/sys/syscall.S Sat Apr 18 23:24:49 2020 +0000
+++ b/lib/libc/arch/arm/sys/syscall.S Sat Apr 18 23:55:50 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: syscall.S,v 1.4 2003/08/07 16:42:05 agc Exp $ */
+/* $NetBSD: syscall.S,v 1.5 2020/04/18 23:55:50 thorpej Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -33,4 +33,4 @@
#include "SYS.h"
-RSYSCALL(syscall)
+WSYSCALL(syscall,_syscall)
diff -r 2ce404f70db9 -r bc2b98bfb4bd lib/libc/arch/hppa/sys/syscall.S
--- a/lib/libc/arch/hppa/sys/syscall.S Sat Apr 18 23:24:49 2020 +0000
+++ b/lib/libc/arch/hppa/sys/syscall.S Sat Apr 18 23:55:50 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: syscall.S,v 1.2 2009/11/03 05:07:25 snj Exp $ */
+/* $NetBSD: syscall.S,v 1.3 2020/04/18 23:55:50 thorpej Exp $ */
/* $OpenBSD: syscall.S,v 1.4 2001/03/29 01:43:53 mickey Exp $ */
@@ -31,9 +31,9 @@
#include "SYS.h"
#if defined(LIBC_SCCS) && !defined(lint)
- RCSID("$NetBSD: syscall.S,v 1.2 2009/11/03 05:07:25 snj Exp $")
+ RCSID("$NetBSD: syscall.S,v 1.3 2020/04/18 23:55:50 thorpej Exp $")
#endif /* LIBC_SCCS and not lint */
-RSYSCALL(syscall)
+WSYSCALL(syscall,_syscall)
.end
diff -r 2ce404f70db9 -r bc2b98bfb4bd lib/libc/arch/i386/sys/syscall.S
--- a/lib/libc/arch/i386/sys/syscall.S Sat Apr 18 23:24:49 2020 +0000
+++ b/lib/libc/arch/i386/sys/syscall.S Sat Apr 18 23:55:50 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: syscall.S,v 1.13 2014/05/23 02:34:19 uebayasi Exp $ */
+/* $NetBSD: syscall.S,v 1.14 2020/04/18 23:55:50 thorpej Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -36,12 +36,12 @@
#include <machine/asm.h>
#if defined(SYSLIBC_SCCS) && !defined(lint)
- RCSID("$NetBSD: syscall.S,v 1.13 2014/05/23 02:34:19 uebayasi Exp $")
+ RCSID("$NetBSD: syscall.S,v 1.14 2020/04/18 23:55:50 thorpej Exp $")
#endif /* SYSLIBC_SCCS and not lint */
#include "SYS.h"
-ENTRY(syscall)
+ENTRY(_syscall)
pop %ecx /* rta */
pop %eax /* syscall number */
push %ecx
@@ -51,4 +51,5 @@
ret
err:
jmp CERROR
-END(syscall)
+END(_syscall)
+WEAK_ALIAS(syscall,_syscall)
diff -r 2ce404f70db9 -r bc2b98bfb4bd lib/libc/arch/ia64/sys/syscall.S
--- a/lib/libc/arch/ia64/sys/syscall.S Sat Apr 18 23:24:49 2020 +0000
+++ b/lib/libc/arch/ia64/sys/syscall.S Sat Apr 18 23:55:50 2020 +0000
@@ -1,7 +1,7 @@
-/* $NetBSD: syscall.S,v 1.2 2006/09/22 12:09:25 cherry Exp $ */
+/* $NetBSD: syscall.S,v 1.3 2020/04/18 23:55:50 thorpej Exp $ */
#include "SYS.h"
-RSYSCALL(syscall)
+WSYSCALL(syscall,_syscall)
diff -r 2ce404f70db9 -r bc2b98bfb4bd lib/libc/arch/m68k/sys/syscall.S
--- a/lib/libc/arch/m68k/sys/syscall.S Sat Apr 18 23:24:49 2020 +0000
+++ b/lib/libc/arch/m68k/sys/syscall.S Sat Apr 18 23:55:50 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: syscall.S,v 1.9 2013/07/24 15:38:07 matt Exp $ */
+/* $NetBSD: syscall.S,v 1.10 2020/04/18 23:55:50 thorpej Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -39,13 +39,14 @@
#if 0
RCSID("from: @(#)syscall.s 5.1 (Berkeley) 5/12/90")
#else
- RCSID("$NetBSD: syscall.S,v 1.9 2013/07/24 15:38:07 matt Exp $")
+ RCSID("$NetBSD: syscall.S,v 1.10 2020/04/18 23:55:50 thorpej Exp $")
#endif
#endif /* LIBC_SCCS and not lint */
-ENTRY(syscall)
+ENTRY(_syscall)
clrl %d0
trap #0
jcs CERROR
rts
-END(syscall)
+END(_syscall)
+WEAK_ALIAS(syscall,_syscall)
diff -r 2ce404f70db9 -r bc2b98bfb4bd lib/libc/arch/mips/sys/__syscall.S
--- a/lib/libc/arch/mips/sys/__syscall.S Sat Apr 18 23:24:49 2020 +0000
+++ b/lib/libc/arch/mips/sys/__syscall.S Sat Apr 18 23:55:50 2020 +0000
@@ -1,10 +1,12 @@
-/* $NetBSD: __syscall.S,v 1.2 2014/01/31 18:06:26 matt Exp $ */
+/* $NetBSD: __syscall.S,v 1.3 2020/04/18 23:55:51 thorpej Exp $ */
#include "SYS.h"
#ifdef __mips_o32
+
RSYSCALL(__syscall)
-#else
+
+#else /* ! __mips_o32 */
LEAF(__syscall)
PIC_PROLOGUE(__syscall)
@@ -23,5 +25,7 @@
1:
PIC_TAILCALL(__cerror)
END(__syscall)
-STRONG_ALIAS(syscall, __syscall)
-#endif
+STRONG_ALIAS(_syscall,__syscall)
+WEAK_ALIAS(syscall,__syscall)
+
+#endif /* __mips_o32 */
diff -r 2ce404f70db9 -r bc2b98bfb4bd lib/libc/arch/mips/sys/syscall.S
--- a/lib/libc/arch/mips/sys/syscall.S Sat Apr 18 23:24:49 2020 +0000
+++ b/lib/libc/arch/mips/sys/syscall.S Sat Apr 18 23:55:50 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: syscall.S,v 1.7 2014/01/31 18:06:26 matt Exp $ */
+/* $NetBSD: syscall.S,v 1.8 2020/04/18 23:55:51 thorpej Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -38,10 +38,10 @@
#if 0
RCSID("from: @(#)syscall.s 8.1 (Berkeley) 6/4/93")
#else
- RCSID("$NetBSD: syscall.S,v 1.7 2014/01/31 18:06:26 matt Exp $")
+ RCSID("$NetBSD: syscall.S,v 1.8 2020/04/18 23:55:51 thorpej Exp $")
#endif
#endif /* LIBC_SCCS and not lint */
#ifdef __mips_o32
-RSYSCALL(syscall)
+WSYSCALL(syscall,_syscall)
#endif
diff -r 2ce404f70db9 -r bc2b98bfb4bd lib/libc/arch/or1k/sys/__syscall.S
--- a/lib/libc/arch/or1k/sys/__syscall.S Sat Apr 18 23:24:49 2020 +0000
+++ b/lib/libc/arch/or1k/sys/__syscall.S Sat Apr 18 23:55:50 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: __syscall.S,v 1.1 2014/09/03 19:34:26 matt Exp $ */
+/* $NetBSD: __syscall.S,v 1.2 2020/04/18 23:55:51 thorpej Exp $ */
#include <machine/asm.h>
@@ -21,4 +21,5 @@
l.nop
END(__syscall)
-STRONG_ALIAS(syscall, __syscall)
+STRONG_ALIAS(_syscall,__syscall)
+WEAK_ALIAS(syscall,__syscall)
diff -r 2ce404f70db9 -r bc2b98bfb4bd lib/libc/arch/powerpc/sys/__syscall.S
--- a/lib/libc/arch/powerpc/sys/__syscall.S Sat Apr 18 23:24:49 2020 +0000
+++ b/lib/libc/arch/powerpc/sys/__syscall.S Sat Apr 18 23:55:50 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: __syscall.S,v 1.3 2014/08/23 02:24:22 matt Exp $ */
+/* $NetBSD: __syscall.S,v 1.4 2020/04/18 23:55:51 thorpej Exp $ */
#include "SYS.h"
@@ -19,4 +19,5 @@
BRANCH_TO_CERROR()
END(__syscall)
-STRONG_ALIAS(syscall, __syscall)
+STRONG_ALIAS(_syscall,__syscall)
+WEAK_ALIAS(syscall,__syscall)
diff -r 2ce404f70db9 -r bc2b98bfb4bd lib/libc/arch/powerpc64/sys/__syscall.S
--- a/lib/libc/arch/powerpc64/sys/__syscall.S Sat Apr 18 23:24:49 2020 +0000
+++ b/lib/libc/arch/powerpc64/sys/__syscall.S Sat Apr 18 23:55:50 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: __syscall.S,v 1.2 2014/08/23 02:24:22 matt Exp $ */
+/* $NetBSD: __syscall.S,v 1.3 2020/04/18 23:55:51 thorpej Exp $ */
#include "SYS.h"
@@ -19,4 +19,5 @@
BRANCH_TO_CERROR()
END(__syscall)
-STRONG_ALIAS(syscall, __syscall)
+STRONG_ALIAS(_syscall,__syscall)
+WEAK_ALIAS(syscall,__syscall)
diff -r 2ce404f70db9 -r bc2b98bfb4bd lib/libc/arch/riscv/sys/__syscall.S
--- a/lib/libc/arch/riscv/sys/__syscall.S Sat Apr 18 23:24:49 2020 +0000
+++ b/lib/libc/arch/riscv/sys/__syscall.S Sat Apr 18 23:55:50 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: __syscall.S,v 1.2 2015/03/27 06:44:28 matt Exp $ */
+/* $NetBSD: __syscall.S,v 1.3 2020/04/18 23:55:51 thorpej Exp $ */
#include "SYS.h"
@@ -16,4 +16,5 @@
JUMP_TO_CERROR() /* error */
ret /* success */
END(__syscall)
-STRONG_ALIAS(syscall, __syscall)
+STRONG_ALIAS(_syscall,__syscall)
+WEAK_ALIAS(syscall,__syscall)
diff -r 2ce404f70db9 -r bc2b98bfb4bd lib/libc/arch/sh3/sys/syscall.S
--- a/lib/libc/arch/sh3/sys/syscall.S Sat Apr 18 23:24:49 2020 +0000
+++ b/lib/libc/arch/sh3/sys/syscall.S Sat Apr 18 23:55:50 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: syscall.S,v 1.6 2006/01/06 01:27:23 uwe Exp $ */
+/* $NetBSD: syscall.S,v 1.7 2020/04/18 23:55:51 thorpej Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -36,9 +36,9 @@
#include <machine/asm.h>
#if defined(SYSLIBC_SCCS) && !defined(lint)
- RCSID("$NetBSD: syscall.S,v 1.6 2006/01/06 01:27:23 uwe Exp $")
+ RCSID("$NetBSD: syscall.S,v 1.7 2020/04/18 23:55:51 thorpej Exp $")
#endif /* SYSLIBC_SCCS and not lint */
#include "SYS.h"
-RSYSCALL(syscall)
+WSYSCALL(syscall,_syscall)
diff -r 2ce404f70db9 -r bc2b98bfb4bd lib/libc/arch/sparc/sys/syscall.S
--- a/lib/libc/arch/sparc/sys/syscall.S Sat Apr 18 23:24:49 2020 +0000
+++ b/lib/libc/arch/sparc/sys/syscall.S Sat Apr 18 23:55:50 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: syscall.S,v 1.4 2003/08/07 16:42:26 agc Exp $ */
+/* $NetBSD: syscall.S,v 1.5 2020/04/18 23:55:51 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -40,10 +40,10 @@
#if 0
.asciz "@(#)syscall.s 8.1 (Berkeley) 6/4/93"
#else
- RCSID("$NetBSD: syscall.S,v 1.4 2003/08/07 16:42:26 agc Exp $")
+ RCSID("$NetBSD: syscall.S,v 1.5 2020/04/18 23:55:51 thorpej Exp $")
#endif
#endif /* SYSLIBC_SCCS and not lint */
#include "SYS.h"
-RSYSCALL(syscall)
+WSYSCALL(syscall,_syscall)
diff -r 2ce404f70db9 -r bc2b98bfb4bd lib/libc/arch/sparc64/sys/syscall.S
--- a/lib/libc/arch/sparc64/sys/syscall.S Sat Apr 18 23:24:49 2020 +0000
+++ b/lib/libc/arch/sparc64/sys/syscall.S Sat Apr 18 23:55:50 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: syscall.S,v 1.2 2003/08/07 16:42:30 agc Exp $ */
+/* $NetBSD: syscall.S,v 1.3 2020/04/18 23:55:51 thorpej Exp $ */
/*
Home |
Main Index |
Thread Index |
Old Index