summaryrefslogtreecommitdiff
path: root/usr/src/lib/libc/sparc/gen
diff options
context:
space:
mode:
authorraf <none@none>2008-06-06 14:02:15 -0700
committerraf <none@none>2008-06-06 14:02:15 -0700
commit7257d1b4d25bfac0c802847390e98a464fd787ac (patch)
treec73fc17df920bc2ca9438c25fea3529890296afd /usr/src/lib/libc/sparc/gen
parent455903679f53d12d92035adc60bc7c3d95e6b6a2 (diff)
downloadillumos-joyent-7257d1b4d25bfac0c802847390e98a464fd787ac.tar.gz
PSARC 2008/309 expunge synonyms.h
6700179 expunge synonyms.h --HG-- rename : usr/src/cmd/sgs/libelf/common/syn.h => deleted_files/usr/src/cmd/sgs/libelf/common/syn.h rename : usr/src/cmd/sgs/librtld/common/lintsup.c => deleted_files/usr/src/cmd/sgs/librtld/common/lintsup.c rename : usr/src/cmd/sgs/rtld/common/_synonyms.h => deleted_files/usr/src/cmd/sgs/rtld/common/_synonyms.h rename : usr/src/common/atomic/atomic_asm_weak.h => deleted_files/usr/src/common/atomic/atomic_asm_weak.h rename : usr/src/lib/common/inc/c_synonyms.h => deleted_files/usr/src/lib/common/inc/c_synonyms.h rename : usr/src/lib/libc/amd64/gen/lexp10.c => deleted_files/usr/src/lib/libc/amd64/gen/lexp10.c rename : usr/src/lib/libc/amd64/gen/llog10.c => deleted_files/usr/src/lib/libc/amd64/gen/llog10.c rename : usr/src/lib/libc/amd64/gen/ltostr.c => deleted_files/usr/src/lib/libc/amd64/gen/ltostr.c rename : usr/src/lib/libc/i386/gen/lexp10.c => deleted_files/usr/src/lib/libc/i386/gen/lexp10.c rename : usr/src/lib/libc/i386/gen/llog10.c => deleted_files/usr/src/lib/libc/i386/gen/llog10.c rename : usr/src/lib/libc/i386/gen/ltostr.c => deleted_files/usr/src/lib/libc/i386/gen/ltostr.c rename : usr/src/lib/libc/inc/synonyms.h => deleted_files/usr/src/lib/libc/inc/synonyms.h rename : usr/src/lib/libc/sparcv9/gen/lexp10.c => deleted_files/usr/src/lib/libc/sparcv9/gen/lexp10.c rename : usr/src/lib/libc/sparcv9/gen/llog10.c => deleted_files/usr/src/lib/libc/sparcv9/gen/llog10.c rename : usr/src/lib/libc_psr/inc.flg => deleted_files/usr/src/lib/libc_psr/inc.flg rename : usr/src/lib/libcrypt/inc/des_synonyms.h => deleted_files/usr/src/lib/libcrypt/inc/des_synonyms.h rename : usr/src/lib/libgen/inc/gen_synonyms.h => deleted_files/usr/src/lib/libgen/inc/gen_synonyms.h rename : usr/src/lib/libtsnet/common/synonyms.h => deleted_files/usr/src/lib/libtsnet/common/synonyms.h rename : usr/src/tools/scripts/check_fnames.sh => deleted_files/usr/src/tools/scripts/check_fnames.sh rename : usr/src/lib/libc/sparc/gen/lexp10.c => usr/src/lib/libc/port/gen/lexp10.c rename : usr/src/lib/libc/sparc/gen/llog10.c => usr/src/lib/libc/port/gen/llog10.c
Diffstat (limited to 'usr/src/lib/libc/sparc/gen')
-rw-r--r--usr/src/lib/libc/sparc/gen/_stack_grow.s9
-rw-r--r--usr/src/lib/libc/sparc/gen/_xregs_clrptr.c10
-rw-r--r--usr/src/lib/libc/sparc/gen/ecvt.c21
-rw-r--r--usr/src/lib/libc/sparc/gen/getctxt.c4
-rw-r--r--usr/src/lib/libc/sparc/gen/ladd.s24
-rw-r--r--usr/src/lib/libc/sparc/gen/lexp10.c52
-rw-r--r--usr/src/lib/libc/sparc/gen/llog10.c53
-rw-r--r--usr/src/lib/libc/sparc/gen/lmul.c15
-rw-r--r--usr/src/lib/libc/sparc/gen/lshiftl.s25
-rw-r--r--usr/src/lib/libc/sparc/gen/lsign.s24
-rw-r--r--usr/src/lib/libc/sparc/gen/lsub.s24
-rw-r--r--usr/src/lib/libc/sparc/gen/makectxt.c19
-rw-r--r--usr/src/lib/libc/sparc/gen/memchr.s14
-rw-r--r--usr/src/lib/libc/sparc/gen/memcmp.s14
-rw-r--r--usr/src/lib/libc/sparc/gen/memcpy.s6
-rw-r--r--usr/src/lib/libc/sparc/gen/memmove.s14
-rw-r--r--usr/src/lib/libc/sparc/gen/memset.s4
-rw-r--r--usr/src/lib/libc/sparc/gen/setjmp.s19
-rw-r--r--usr/src/lib/libc/sparc/gen/siginfolst.c13
-rw-r--r--usr/src/lib/libc/sparc/gen/siglongjmp.c14
-rw-r--r--usr/src/lib/libc/sparc/gen/strcasecmp.s12
-rw-r--r--usr/src/lib/libc/sparc/gen/strchr.s11
-rw-r--r--usr/src/lib/libc/sparc/gen/strcmp.s11
-rw-r--r--usr/src/lib/libc/sparc/gen/strcpy.s11
-rw-r--r--usr/src/lib/libc/sparc/gen/strlcpy.s11
-rw-r--r--usr/src/lib/libc/sparc/gen/strlen.s12
-rw-r--r--usr/src/lib/libc/sparc/gen/strncmp.s18
-rw-r--r--usr/src/lib/libc/sparc/gen/strncpy.s12
-rw-r--r--usr/src/lib/libc/sparc/gen/swapctxt.c4
29 files changed, 165 insertions, 315 deletions
diff --git a/usr/src/lib/libc/sparc/gen/_stack_grow.s b/usr/src/lib/libc/sparc/gen/_stack_grow.s
index 293769fd68..07376f21bc 100644
--- a/usr/src/lib/libc/sparc/gen/_stack_grow.s
+++ b/usr/src/lib/libc/sparc/gen/_stack_grow.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -28,7 +28,6 @@
.file "%M%"
-#include <sys/asm_linkage.h>
#include "SYS.h"
#include <../assym.h>
diff --git a/usr/src/lib/libc/sparc/gen/_xregs_clrptr.c b/usr/src/lib/libc/sparc/gen/_xregs_clrptr.c
index 9be916fec2..4124b55a4c 100644
--- a/usr/src/lib/libc/sparc/gen/_xregs_clrptr.c
+++ b/usr/src/lib/libc/sparc/gen/_xregs_clrptr.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <ucontext.h>
#include <sys/types.h>
#include "libc.h"
diff --git a/usr/src/lib/libc/sparc/gen/ecvt.c b/usr/src/lib/libc/sparc/gen/ecvt.c
index 18807b1eca..0bee1fac69 100644
--- a/usr/src/lib/libc/sparc/gen/ecvt.c
+++ b/usr/src/lib/libc/sparc/gen/ecvt.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,16 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* ecvt converts to decimal
@@ -37,13 +36,11 @@
* sign is set to 0 for positive, 1 for negative
*
*/
-#pragma weak ecvt = _ecvt
-#pragma weak fcvt = _fcvt
-#pragma weak qecvt = _qecvt
-#pragma weak qfcvt = _qfcvt
-#pragma weak qgcvt = _qgcvt
-#include "synonyms.h"
+#pragma weak _ecvt = ecvt
+#pragma weak _fcvt = fcvt
+
+#include "lint.h"
#include <sys/types.h>
#include <stdlib.h>
#include <floatingpoint.h>
diff --git a/usr/src/lib/libc/sparc/gen/getctxt.c b/usr/src/lib/libc/sparc/gen/getctxt.c
index b119860217..3213955108 100644
--- a/usr/src/lib/libc/sparc/gen/getctxt.c
+++ b/usr/src/lib/libc/sparc/gen/getctxt.c
@@ -29,9 +29,9 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak getcontext = _getcontext
+#pragma weak _getcontext = getcontext
-#include "synonyms.h"
+#include "lint.h"
#include "thr_uberdata.h"
#include <ucontext.h>
#include <sys/types.h>
diff --git a/usr/src/lib/libc/sparc/gen/ladd.s b/usr/src/lib/libc/sparc/gen/ladd.s
index a5ddacc329..a3bf215c56 100644
--- a/usr/src/lib/libc/sparc/gen/ladd.s
+++ b/usr/src/lib/libc/sparc/gen/ladd.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,13 +18,18 @@
*
* CDDL HEADER END
*/
+
+/*
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
+ */
+
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-/* Copyright (c) 1989 by Sun Microsystems, Inc. */
-
-.ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */
+ .file "%M%"
/*
* Double long add routine. Ported from pdp 11/70 version
@@ -39,13 +43,7 @@
* dl_t rop;
*/
- .file "ladd.s"
-
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(ladd,function)
-
-#include "synonyms.h"
+#include "SYS.h"
ENTRY(ladd)
diff --git a/usr/src/lib/libc/sparc/gen/lexp10.c b/usr/src/lib/libc/sparc/gen/lexp10.c
deleted file mode 100644
index 28152a5b8f..0000000000
--- a/usr/src/lib/libc/sparc/gen/lexp10.c
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
- */
-
-#pragma ident "%Z%%M% %I% %E% SMI"
-
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
-
-#pragma weak lexp10 = _lexp10
-
-#include "synonyms.h"
-#include <sys/types.h>
-#include <sys/dl.h>
-
-dl_t
-lexp10(dl_t exp)
-{
- dl_t result;
-
- result = lone;
-
- while (exp.dl_hop != 0 || exp.dl_lop != 0) {
- result = lmul(result, lten);
- exp = lsub(exp, lone);
- }
-
- return (result);
-}
diff --git a/usr/src/lib/libc/sparc/gen/llog10.c b/usr/src/lib/libc/sparc/gen/llog10.c
deleted file mode 100644
index 14f690c61b..0000000000
--- a/usr/src/lib/libc/sparc/gen/llog10.c
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * CDDL HEADER START
- *
- * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
- *
- * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
- * or http://www.opensolaris.org/os/licensing.
- * See the License for the specific language governing permissions
- * and limitations under the License.
- *
- * When distributing Covered Code, include this CDDL HEADER in each
- * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
- * If applicable, add the following below this CDDL HEADER, with the
- * fields enclosed by brackets "[]" replaced with your own identifying
- * information: Portions Copyright [yyyy] [name of copyright owner]
- *
- * CDDL HEADER END
- */
-/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
- */
-
-#pragma ident "%Z%%M% %I% %E% SMI"
-
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
-
-#pragma weak llog10 = _llog10
-
-#include "synonyms.h"
-#include <sys/types.h>
-#include <sys/dl.h>
-
-dl_t
-llog10(dl_t val)
-{
- dl_t result;
-
- result = lzero;
- val = ldivide(val, lten);
-
- while (val.dl_hop != 0 || val.dl_lop != 0) {
- val = ldivide(val, lten);
- result = ladd(result, lone);
- }
-
- return (result);
-}
diff --git a/usr/src/lib/libc/sparc/gen/lmul.c b/usr/src/lib/libc/sparc/gen/lmul.c
index 7f6aa0f079..27ea35168f 100644
--- a/usr/src/lib/libc/sparc/gen/lmul.c
+++ b/usr/src/lib/libc/sparc/gen/lmul.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,20 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak lmul = _lmul
-
-#include "synonyms.h"
+#include "lint.h"
#include "sys/types.h"
#include "sys/dl.h"
diff --git a/usr/src/lib/libc/sparc/gen/lshiftl.s b/usr/src/lib/libc/sparc/gen/lshiftl.s
index 820c91f8ea..dd1a475d22 100644
--- a/usr/src/lib/libc/sparc/gen/lshiftl.s
+++ b/usr/src/lib/libc/sparc/gen/lshiftl.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,13 +18,18 @@
*
* CDDL HEADER END
*/
+
+/*
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
+ */
+
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-/* Copyright (c) 1989 by Sun Microsystems, Inc. */
-
-.ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */
+ .file "%M%"
/*
* Shift a double long value. Ported from m32 version to sparc.
@@ -36,14 +40,7 @@
* int cnt;
*/
- .file "lshiftl.s"
-
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(lshiftl,function)
-
-#include "synonyms.h"
-
+#include "SYS.h"
ENTRY(lshiftl)
diff --git a/usr/src/lib/libc/sparc/gen/lsign.s b/usr/src/lib/libc/sparc/gen/lsign.s
index 1269fbe551..6d774b582c 100644
--- a/usr/src/lib/libc/sparc/gen/lsign.s
+++ b/usr/src/lib/libc/sparc/gen/lsign.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,13 +18,18 @@
*
* CDDL HEADER END
*/
+
+/*
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
+ */
+
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-/* Copyright (c) 1989 by Sun Microsystems, Inc. */
-
-.ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */
+ .file "%M%"
/*
* Determine the sign of a double-long number.
@@ -36,13 +40,7 @@
* dl_t op;
*/
- .file "lsign.s"
-
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(lsign,function)
-
-#include "synonyms.h"
+#include "SYS.h"
ENTRY(lsign)
diff --git a/usr/src/lib/libc/sparc/gen/lsub.s b/usr/src/lib/libc/sparc/gen/lsub.s
index e6457b9abe..90bbccab99 100644
--- a/usr/src/lib/libc/sparc/gen/lsub.s
+++ b/usr/src/lib/libc/sparc/gen/lsub.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,13 +18,18 @@
*
* CDDL HEADER END
*/
+
+/*
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
+ */
+
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-/* Copyright (c) 1989 by Sun Microsystems, Inc. */
-
-.ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */
+ .file "%M%"
/*
* Double long subtraction routine. Ported from pdp 11/70 version
@@ -38,13 +42,7 @@
* dl_t rop;
*/
- .file "lsub.s"
-
-#include <sys/asm_linkage.h>
-
- ANSI_PRAGMA_WEAK(lsub,function)
-
-#include "synonyms.h"
+#include "SYS.h"
ENTRY(lsub)
diff --git a/usr/src/lib/libc/sparc/gen/makectxt.c b/usr/src/lib/libc/sparc/gen/makectxt.c
index 9dc4c64697..7519bdabcb 100644
--- a/usr/src/lib/libc/sparc/gen/makectxt.c
+++ b/usr/src/lib/libc/sparc/gen/makectxt.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,21 +18,21 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak makecontext = _makecontext
-#pragma weak __makecontext_v2 = ___makecontext_v2
+#pragma weak _makecontext = makecontext
+#pragma weak ___makecontext_v2 = __makecontext_v2
-#include "synonyms.h"
+#include "lint.h"
#include <stdarg.h>
#include <strings.h>
#include <sys/ucontext.h>
@@ -53,7 +52,7 @@
static void resumecontext(void);
void
-_makecontext(ucontext_t *ucp, void (*func)(), int argc, ...)
+makecontext(ucontext_t *ucp, void (*func)(), int argc, ...)
{
greg_t *reg;
long *tsp;
diff --git a/usr/src/lib/libc/sparc/gen/memchr.s b/usr/src/lib/libc/sparc/gen/memchr.s
index 0f38ad2c77..5688826dde 100644
--- a/usr/src/lib/libc/sparc/gen/memchr.s
+++ b/usr/src/lib/libc/sparc/gen/memchr.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,14 +18,16 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-.ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+ .file "%M%"
- .file "%M%"
/*
* Return the ptr in sptr at which the character c1 appears;
* or NULL if not found in n chars; don't stop at \0.
@@ -47,7 +48,6 @@
*/
#include <sys/asm_linkage.h>
-#include "synonyms.h"
! The first part of this algorithm focuses on determining
! whether or not the desired character is in the first few bytes
diff --git a/usr/src/lib/libc/sparc/gen/memcmp.s b/usr/src/lib/libc/sparc/gen/memcmp.s
index 1ba5cc454b..be2fe4e24b 100644
--- a/usr/src/lib/libc/sparc/gen/memcmp.s
+++ b/usr/src/lib/libc/sparc/gen/memcmp.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,12 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright (c) 1989-1995,1998 by Sun Microsystems, Inc.
- * All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
*/
-.ident "%Z%%M% %I% %E% SMI" /* SunOS 4.1 1.2 */
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -55,8 +55,6 @@
ANSI_PRAGMA_WEAK(memcmp,function)
-#include "synonyms.h"
-
ENTRY(memcmp)
st %g2, [%sp + 68] ! g2 must be restored before retl
cmp %o0, %o1 ! s1 == s2?
diff --git a/usr/src/lib/libc/sparc/gen/memcpy.s b/usr/src/lib/libc/sparc/gen/memcpy.s
index 2587108195..32589b5655 100644
--- a/usr/src/lib/libc/sparc/gen/memcpy.s
+++ b/usr/src/lib/libc/sparc/gen/memcpy.s
@@ -24,7 +24,7 @@
* Use is subject to license terms.
*/
- .ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -51,12 +51,10 @@
* }
*/
-#include <sys/asm_linkage.h>
+#include "SYS.h"
ANSI_PRAGMA_WEAK(memcpy,function)
-#include "synonyms.h"
-
ENTRY(memcpy)
st %o0, [%sp + 68] ! save des address for return val
cmp %o2, 17 ! for small counts copy bytes
diff --git a/usr/src/lib/libc/sparc/gen/memmove.s b/usr/src/lib/libc/sparc/gen/memmove.s
index e57650f6ab..122c191555 100644
--- a/usr/src/lib/libc/sparc/gen/memmove.s
+++ b/usr/src/lib/libc/sparc/gen/memmove.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,12 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright (c) 1987-1995, by Sun Microsystems, Inc.
- * All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
*/
-.ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -32,8 +32,6 @@
ANSI_PRAGMA_WEAK(memmove,function)
-#include "synonyms.h"
-
/*
* memmove(s1, s2, len)
* Copy s2 to s1, always copy n bytes.
diff --git a/usr/src/lib/libc/sparc/gen/memset.s b/usr/src/lib/libc/sparc/gen/memset.s
index 7dd7d51961..750ee3bd2b 100644
--- a/usr/src/lib/libc/sparc/gen/memset.s
+++ b/usr/src/lib/libc/sparc/gen/memset.s
@@ -24,7 +24,7 @@
* Use is subject to license terms.
*/
- .ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -54,8 +54,6 @@
ANSI_PRAGMA_WEAK(memset,function)
-#include "synonyms.h"
-
ENTRY(memset)
mov %o0, %o5 ! copy sp before using it
cmp %o2, 7 ! if small counts, just write bytes
diff --git a/usr/src/lib/libc/sparc/gen/setjmp.s b/usr/src/lib/libc/sparc/gen/setjmp.s
index 264e9be602..c491eb26e4 100644
--- a/usr/src/lib/libc/sparc/gen/setjmp.s
+++ b/usr/src/lib/libc/sparc/gen/setjmp.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,26 +18,24 @@
*
* CDDL HEADER END
*/
-/* Copyright (c) 1988 AT&T */
-/* All Rights Reserved */
-
/*
- * Copyright 1987-2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-.ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.4 */
+/* Copyright (c) 1988 AT&T */
+/* All Rights Reserved */
+
+#pragma ident "%Z%%M% %I% %E% SMI"
- .file "setjmp.s"
+ .file "%M%"
#include <sys/asm_linkage.h>
ANSI_PRAGMA_WEAK(setjmp,function)
ANSI_PRAGMA_WEAK(longjmp,function)
-#include "synonyms.h"
-
#include <sys/trap.h>
JB_FLAGS = (0*4) ! offsets in jmpbuf (see siglonglmp.c)
diff --git a/usr/src/lib/libc/sparc/gen/siginfolst.c b/usr/src/lib/libc/sparc/gen/siginfolst.c
index 8939850c60..712e70c582 100644
--- a/usr/src/lib/libc/sparc/gen/siginfolst.c
+++ b/usr/src/lib/libc/sparc/gen/siginfolst.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,18 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <signal.h>
#include <siginfo.h>
diff --git a/usr/src/lib/libc/sparc/gen/siglongjmp.c b/usr/src/lib/libc/sparc/gen/siglongjmp.c
index 5efc2e28a2..83a640397d 100644
--- a/usr/src/lib/libc/sparc/gen/siglongjmp.c
+++ b/usr/src/lib/libc/sparc/gen/siglongjmp.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -21,19 +20,18 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak siglongjmp = _siglongjmp
+#pragma weak _siglongjmp = siglongjmp
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/stack.h>
#include <sys/frame.h>
diff --git a/usr/src/lib/libc/sparc/gen/strcasecmp.s b/usr/src/lib/libc/sparc/gen/strcasecmp.s
index 8efc518ab4..2ef09e2ca6 100644
--- a/usr/src/lib/libc/sparc/gen/strcasecmp.s
+++ b/usr/src/lib/libc/sparc/gen/strcasecmp.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,12 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-.ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
/*
@@ -116,9 +116,7 @@
* Both algorithms have been tested exhaustively for all possible 2^32 inputs.
*/
-
#include <sys/asm_linkage.h>
-#include "synonyms.h"
! The first part of this algorithm walks through the beginning of
! both strings a byte at a time until the source ptr is aligned to
diff --git a/usr/src/lib/libc/sparc/gen/strchr.s b/usr/src/lib/libc/sparc/gen/strchr.s
index 6a7ee9008b..b2e8d660de 100644
--- a/usr/src/lib/libc/sparc/gen/strchr.s
+++ b/usr/src/lib/libc/sparc/gen/strchr.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,12 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-.ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -35,7 +35,6 @@
*/
#include <sys/asm_linkage.h>
-#include "synonyms.h"
! Here, we start by checking to see if we're searching the dest
! string for a null byte. We have fast code for this, so it's
diff --git a/usr/src/lib/libc/sparc/gen/strcmp.s b/usr/src/lib/libc/sparc/gen/strcmp.s
index a1b7065a04..ce402f07da 100644
--- a/usr/src/lib/libc/sparc/gen/strcmp.s
+++ b/usr/src/lib/libc/sparc/gen/strcmp.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,12 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-.ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -51,7 +51,6 @@
*/
#include <sys/asm_linkage.h>
-#include "synonyms.h"
! This strcmp implementation first determines whether s1 is aligned.
! If it is not, it attempts to align it and then checks the
diff --git a/usr/src/lib/libc/sparc/gen/strcpy.s b/usr/src/lib/libc/sparc/gen/strcpy.s
index 63de6cfe8c..593a4e8293 100644
--- a/usr/src/lib/libc/sparc/gen/strcpy.s
+++ b/usr/src/lib/libc/sparc/gen/strcpy.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,12 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-.ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -51,7 +51,6 @@
*/
#include <sys/asm_linkage.h>
-#include "synonyms.h"
! This is a 32-bit implementation of strcpy. It works by
! first checking the alignment of its source pointer. And,
diff --git a/usr/src/lib/libc/sparc/gen/strlcpy.s b/usr/src/lib/libc/sparc/gen/strlcpy.s
index 0dd5366dd3..9e96232e22 100644
--- a/usr/src/lib/libc/sparc/gen/strlcpy.s
+++ b/usr/src/lib/libc/sparc/gen/strlcpy.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,12 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-.ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
/*
@@ -39,7 +39,6 @@
*/
#include <sys/asm_linkage.h>
-#include "synonyms.h"
! strlcpy implementation is similar to that of strcpy, except
! in this case, the maximum size of the detination must be
diff --git a/usr/src/lib/libc/sparc/gen/strlen.s b/usr/src/lib/libc/sparc/gen/strlen.s
index 09da4ed196..e709690f79 100644
--- a/usr/src/lib/libc/sparc/gen/strlen.s
+++ b/usr/src/lib/libc/sparc/gen/strlen.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,13 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-
-.ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -50,7 +49,6 @@
*/
#include <sys/asm_linkage.h>
-#include "synonyms.h"
! The object of strlen is to, as quickly as possible, find the
! null byte. To this end, we attempt to get our string aligned
diff --git a/usr/src/lib/libc/sparc/gen/strncmp.s b/usr/src/lib/libc/sparc/gen/strncmp.s
index 2d9c138ce0..109c52362f 100644
--- a/usr/src/lib/libc/sparc/gen/strncmp.s
+++ b/usr/src/lib/libc/sparc/gen/strncmp.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,17 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright (c) 1989,1998 by Sun Microsystems, Inc.
- * All rights reserved.
- *
- * .seg "data"
- * .asciz "@(#)strncmp.s 1.2 89/08/16"
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
*/
-.ident "%Z%%M% %I% %E% SMI" /* SunOS 4.1 1.4 */
+#pragma ident "%Z%%M% %I% %E% SMI"
- .file "strncmp.s"
+ .file "%M%"
/*
* strncmp(s1, s2, n)
@@ -53,7 +50,6 @@
*/
#include <sys/asm_linkage.h>
-#include "synonyms.h"
ENTRY(strncmp)
save %sp, -SA(WINDOWSIZE), %sp
diff --git a/usr/src/lib/libc/sparc/gen/strncpy.s b/usr/src/lib/libc/sparc/gen/strncpy.s
index 11afb2ac4b..e6cb8046e7 100644
--- a/usr/src/lib/libc/sparc/gen/strncpy.s
+++ b/usr/src/lib/libc/sparc/gen/strncpy.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,13 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-
-.ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -54,7 +53,6 @@
*/
#include <sys/asm_linkage.h>
-#include "synonyms.h"
! strncpy works similarly to strcpy, except that n bytes of s2
! are copied to s1. If a null character is reached in s2 yet more
diff --git a/usr/src/lib/libc/sparc/gen/swapctxt.c b/usr/src/lib/libc/sparc/gen/swapctxt.c
index 8c052ca843..c2b527e868 100644
--- a/usr/src/lib/libc/sparc/gen/swapctxt.c
+++ b/usr/src/lib/libc/sparc/gen/swapctxt.c
@@ -29,9 +29,9 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak swapcontext = _swapcontext
+#pragma weak _swapcontext = swapcontext
-#include "synonyms.h"
+#include "lint.h"
#include "thr_uberdata.h"
#include <ucontext.h>
#include <sys/types.h>