diff options
Diffstat (limited to 'usr/src/lib/libc/sparc')
51 files changed, 304 insertions, 489 deletions
diff --git a/usr/src/lib/libc/sparc/Makefile b/usr/src/lib/libc/sparc/Makefile index 5080553482..337b5ec720 100644 --- a/usr/src/lib/libc/sparc/Makefile +++ b/usr/src/lib/libc/sparc/Makefile @@ -131,8 +131,6 @@ GENOBJS= \ errlst.o \ getctxt.o \ ladd.o \ - lexp10.o \ - llog10.o \ lmul.o \ lock.o \ lshiftl.o \ @@ -508,11 +506,13 @@ PORTGEN= \ lckpwdf.o \ lconstants.o \ ldivide.o \ + lexp10.o \ lfind.o \ lfmt.o \ lfmt_log.o \ llabs.o \ lldiv.o \ + llog10.o \ lltostr.o \ localtime.o \ lsearch.o \ @@ -1067,8 +1067,6 @@ SRCS= \ $(LIBCBASE)/gen/byteorder.c \ $(LIBCBASE)/gen/ecvt.c \ $(LIBCBASE)/gen/getctxt.c \ - $(LIBCBASE)/gen/lexp10.c \ - $(LIBCBASE)/gen/llog10.c \ $(LIBCBASE)/gen/lmul.c \ $(LIBCBASE)/gen/makectxt.c \ $(LIBCBASE)/gen/siginfolst.c \ diff --git a/usr/src/lib/libc/sparc/crt/_ftou.c b/usr/src/lib/libc/sparc/crt/_ftou.c index 8f960205f3..bfc4802836 100644 --- a/usr/src/lib/libc/sparc/crt/_ftou.c +++ b/usr/src/lib/libc/sparc/crt/_ftou.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 <sys/types.h> #include "libc.h" diff --git a/usr/src/lib/libc/sparc/crt/_rtld.c b/usr/src/lib/libc/sparc/crt/_rtld.c index 596ce619e1..50647dd10c 100644 --- a/usr/src/lib/libc/sparc/crt/_rtld.c +++ b/usr/src/lib/libc/sparc/crt/_rtld.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,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. */ @@ -34,7 +34,7 @@ /* * Import data structures */ -#include "synonyms.h" +#include "lint.h" #include <sys/types.h> #include <sys/mman.h> #include <sys/fcntl.h> @@ -284,7 +284,7 @@ __rtld(Elf32_Boot *ebp, const char *strings[], int (*funcs[])()) */ if (pptr->p_memsz > pptr->p_filesz) { foff = (uintptr_t)faddr + pptr->p_vaddr + - pptr->p_filesz; + pptr->p_filesz; zaddr = (caddr_t)ROUND(foff, page_size); for (j = 0; j < (int)(zaddr - foff); j++) *((char *)foff + j) = 0; diff --git a/usr/src/lib/libc/sparc/fp/_Q_get_rp_rd.s b/usr/src/lib/libc/sparc/fp/_Q_get_rp_rd.s index e62cfcdc08..a1a5e560ad 100644 --- a/usr/src/lib/libc/sparc/fp/_Q_get_rp_rd.s +++ b/usr/src/lib/libc/sparc/fp/_Q_get_rp_rd.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 2005 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" + .file "%M%" + #include <sys/asm_linkage.h> ENTRY(_QgetRD) diff --git a/usr/src/lib/libc/sparc/fp/_Q_set_except.c b/usr/src/lib/libc/sparc/fp/_Q_set_except.c index 42a0419c01..a55818bbb2 100644 --- a/usr/src/lib/libc/sparc/fp/_Q_set_except.c +++ b/usr/src/lib/libc/sparc/fp/_Q_set_except.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 <sys/ieeefp.h> #include <ieeefp.h> diff --git a/usr/src/lib/libc/sparc/fp/fpgetmask.s b/usr/src/lib/libc/sparc/fp/fpgetmask.s index 6a41d8db88..a75d946234 100644 --- a/usr/src/lib/libc/sparc/fp/fpgetmask.s +++ b/usr/src/lib/libc/sparc/fp/fpgetmask.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,22 +18,23 @@ * * CDDL HEADER END */ -/* Copyright (c) 1988 AT&T */ -/* All Rights Reserved */ +/* + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ -/* Copyright (c) 1989 by Sun Microsystems, Inc. */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ -.ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.11 */ +#pragma ident "%Z%%M% %I% %E% SMI" - .file "fpgetmask.s" + .file "%M%" -#include <sys/asm_linkage.h> +#include "SYS.h" ANSI_PRAGMA_WEAK(fpgetmask,function) -#include "synonyms.h" - ENTRY(fpgetmask) add %sp, -SA(MINFRAME), %sp ! get an additional word of storage set 0x0f800000, %o4 ! mask of trap enable bits diff --git a/usr/src/lib/libc/sparc/fp/fpgetrnd.s b/usr/src/lib/libc/sparc/fp/fpgetrnd.s index 6293fa74c3..2c2d044f79 100644 --- a/usr/src/lib/libc/sparc/fp/fpgetrnd.s +++ b/usr/src/lib/libc/sparc/fp/fpgetrnd.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,22 +18,23 @@ * * CDDL HEADER END */ -/* Copyright (c) 1988 AT&T */ -/* All Rights Reserved */ +/* + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ -/* Copyright (c) 1989 by Sun Microsystems, Inc. */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ -.ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.11 */ +#pragma ident "%Z%%M% %I% %E% SMI" - .file "fpgetrnd.s" + .file "%M%" -#include <sys/asm_linkage.h> +#include "SYS.h" ANSI_PRAGMA_WEAK(fpgetround,function) -#include "synonyms.h" - ENTRY(fpgetround) add %sp, -SA(MINFRAME), %sp ! get an additional word of storage st %fsr, [%sp+ARGPUSH] ! get fsr value diff --git a/usr/src/lib/libc/sparc/fp/fpgetsticky.s b/usr/src/lib/libc/sparc/fp/fpgetsticky.s index 8f7890973b..bd274719d3 100644 --- a/usr/src/lib/libc/sparc/fp/fpgetsticky.s +++ b/usr/src/lib/libc/sparc/fp/fpgetsticky.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,22 +18,23 @@ * * CDDL HEADER END */ -/* Copyright (c) 1988 AT&T */ -/* All Rights Reserved */ +/* + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ -/* Copyright (c) 1989 by Sun Microsystems, Inc. */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ -.ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.11 */ +#pragma ident "%Z%%M% %I% %E% SMI" - .file "fpgetsticky.s" + .file "%M%" -#include <sys/asm_linkage.h> +#include "SYS.h" ANSI_PRAGMA_WEAK(fpgetsticky,function) -#include "synonyms.h" - ENTRY(fpgetsticky) add %sp, -SA(MINFRAME), %sp ! get an additional word of storage set 0x000003e0, %o4 ! mask of accrued exception bits diff --git a/usr/src/lib/libc/sparc/fp/fpsetmask.s b/usr/src/lib/libc/sparc/fp/fpsetmask.s index 9732d6a85c..2277a0b536 100644 --- a/usr/src/lib/libc/sparc/fp/fpsetmask.s +++ b/usr/src/lib/libc/sparc/fp/fpsetmask.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,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.4.1.9 */ + .file "%M%" /* * fp_except fpsetmask(mask) @@ -37,14 +40,10 @@ * is cleared */ - .file "fpsetmask.s" - -#include <sys/asm_linkage.h> +#include "SYS.h" ANSI_PRAGMA_WEAK(fpsetmask,function) -#include "synonyms.h" - ENTRY(fpsetmask) add %sp, -SA(MINFRAME), %sp ! get an additional word of storage set 0x0f800000, %o4 ! mask of trap enable bits diff --git a/usr/src/lib/libc/sparc/fp/fpsetrnd.s b/usr/src/lib/libc/sparc/fp/fpsetrnd.s index 6178aeb4f4..f668e7b7be 100644 --- a/usr/src/lib/libc/sparc/fp/fpsetrnd.s +++ b/usr/src/lib/libc/sparc/fp/fpsetrnd.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,22 +18,23 @@ * * CDDL HEADER END */ -/* Copyright (c) 1988 AT&T */ -/* All Rights Reserved */ +/* + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ -/* Copyright (c) 1989 by Sun Microsystems, Inc. */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ -.ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.5.1.9 */ +#pragma ident "%Z%%M% %I% %E% SMI" - .file "fpsetrnd.s" + .file "%M%" -#include <sys/asm_linkage.h> +#include "SYS.h" ANSI_PRAGMA_WEAK(fpsetround,function) -#include "synonyms.h" - ENTRY(fpsetround) add %sp, -SA(MINFRAME), %sp ! get an additional word of storage set 0xc0000000, %o4 ! mask of round control bits diff --git a/usr/src/lib/libc/sparc/fp/fpsetsticky.s b/usr/src/lib/libc/sparc/fp/fpsetsticky.s index 1ce9b3c8a3..792fc0402a 100644 --- a/usr/src/lib/libc/sparc/fp/fpsetsticky.s +++ b/usr/src/lib/libc/sparc/fp/fpsetsticky.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,23 +18,23 @@ * * CDDL HEADER END */ -/* Copyright (c) 1988 AT&T */ -/* All Rights Reserved */ +/* + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ -/* Copyright (c) 1989 by Sun Microsystems, Inc. */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ -.ident "%Z%%M% %I% %E% SMI" - /* SVr4.0 1.4.1.7 */ +#pragma ident "%Z%%M% %I% %E% SMI" - .file "fpsetsticky.s" + .file "%M%" -#include <sys/asm_linkage.h> +#include "SYS.h" ANSI_PRAGMA_WEAK(fpsetsticky,function) -#include "synonyms.h" - ENTRY(fpsetsticky) add %sp, -SA(MINFRAME), %sp ! get an additional word of storage set 0x000003e0, %o4 ! mask of accrued exception bits 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> diff --git a/usr/src/lib/libc/sparc/inc/SYS.h b/usr/src/lib/libc/sparc/inc/SYS.h index 7a0f619a72..25a2a9b898 100644 --- a/usr/src/lib/libc/sparc/inc/SYS.h +++ b/usr/src/lib/libc/sparc/inc/SYS.h @@ -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. */ @@ -39,7 +39,6 @@ #include <sys/asm_linkage.h> #include <sys/syscall.h> #include <sys/errno.h> -#include "synonyms.h" /* * While it's tempting to imagine we could use 'rd %pc' here, diff --git a/usr/src/lib/libc/sparc/mapfile-vers b/usr/src/lib/libc/sparc/mapfile-vers index 3c08ffb4b7..443284364e 100644 --- a/usr/src/lib/libc/sparc/mapfile-vers +++ b/usr/src/lib/libc/sparc/mapfile-vers @@ -40,7 +40,6 @@ SUNW_1.23 { enable_extended_FILE_stdio; lio_listio64; mkstemps64; - _mkstemps64; posix_fallocate64; }; @@ -941,6 +940,7 @@ SUNWprivate_1.1 { __lshrdi3; _memcmp = AUXILIARY /platform/$PLATFORM/lib/libc_psr.so.1; _memcpy = AUXILIARY /platform/$PLATFORM/lib/libc_psr.so.1; + _memcpy = NODYNSORT; _memmove = AUXILIARY /platform/$PLATFORM/lib/libc_psr.so.1; _memset = AUXILIARY /platform/$PLATFORM/lib/libc_psr.so.1; __moddi3; diff --git a/usr/src/lib/libc/sparc/sys/_lwp_mutex_unlock.s b/usr/src/lib/libc/sparc/sys/_lwp_mutex_unlock.s index 79dfca3c39..62a0a82b8c 100644 --- a/usr/src/lib/libc/sparc/sys/_lwp_mutex_unlock.s +++ b/usr/src/lib/libc/sparc/sys/_lwp_mutex_unlock.s @@ -26,14 +26,9 @@ #pragma ident "%Z%%M% %I% %E% SMI" - .file "%M%" - -#include <sys/asm_linkage.h> - - ANSI_PRAGMA_WEAK(_lwp_mutex_unlock,function) + .file "%M%" #include "SYS.h" -#include <sys/synch32.h> #include <../assym.h> ENTRY(_lwp_mutex_unlock) diff --git a/usr/src/lib/libc/sparc/sys/door.s b/usr/src/lib/libc/sparc/sys/door.s index 19059ef056..b7fb6abce2 100644 --- a/usr/src/lib/libc/sparc/sys/door.s +++ b/usr/src/lib/libc/sparc/sys/door.s @@ -28,27 +28,18 @@ .file "%M%" -#include <sys/asm_linkage.h> +#include "SYS.h" +#include <sys/door.h> /* * weak aliases for public interfaces */ - ANSI_PRAGMA_WEAK(_door_bind,function) - ANSI_PRAGMA_WEAK(_door_getparam,function) - ANSI_PRAGMA_WEAK(_door_info,function) - ANSI_PRAGMA_WEAK(_door_revoke,function) - ANSI_PRAGMA_WEAK(_door_setparam,function) - ANSI_PRAGMA_WEAK(_door_unbind,function) - - ANSI_PRAGMA_WEAK(door_bind,function) - ANSI_PRAGMA_WEAK(door_getparam,function) - ANSI_PRAGMA_WEAK(door_info,function) - ANSI_PRAGMA_WEAK(door_revoke,function) - ANSI_PRAGMA_WEAK(door_setparam,function) - ANSI_PRAGMA_WEAK(door_unbind,function) - -#include <sys/door.h> -#include "SYS.h" + ANSI_PRAGMA_WEAK2(door_bind,__door_bind,function) + ANSI_PRAGMA_WEAK2(door_getparam,__door_getparam,function) + ANSI_PRAGMA_WEAK2(door_info,__door_info,function) + ANSI_PRAGMA_WEAK2(door_revoke,__door_revoke,function) + ANSI_PRAGMA_WEAK2(door_setparam,__door_setparam,function) + ANSI_PRAGMA_WEAK2(door_unbind,__door_unbind,function) /* * Offsets within struct door_results @@ -138,7 +129,7 @@ door_restart: ldn [%sp + DOOR_DESC_SIZE], %o4 /* Exit the thread if we return here */ - call _thr_terminate + call _thrp_terminate mov %g0, %o0 /* NOTREACHED */ 2: diff --git a/usr/src/lib/libc/sparc/sys/gettimeofday.s b/usr/src/lib/libc/sparc/sys/gettimeofday.s index 23984f57ee..dedd12fd7b 100644 --- a/usr/src/lib/libc/sparc/sys/gettimeofday.s +++ b/usr/src/lib/libc/sparc/sys/gettimeofday.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,15 +18,15 @@ * * CDDL HEADER END */ -/* Copyright (c) 1988 AT&T */ -/* All Rights Reserved */ - /* - * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * 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" .file "%M%" @@ -37,12 +36,10 @@ * int gettimeofday (struct timeval *tp); */ -#include <sys/asm_linkage.h> +#include "SYS.h" ANSI_PRAGMA_WEAK(gettimeofday,function) -#include "SYS.h" - /* * The interface below calls the trap (0x27) to get the timestamp in * secs and nsecs. It than converts the nsecs value into usecs before @@ -63,7 +60,7 @@ * */ - ENTRY(_gettimeofday) + ENTRY(gettimeofday) brz,pn %o0, 1f mov %o0, %o5 SYSFASTTRAP(GETHRESTIME) @@ -74,4 +71,4 @@ srlx %o2, 38, %o2 stn %o2, [%o5 + CLONGSIZE] 1: RETC - SET_SIZE(_gettimeofday) + SET_SIZE(gettimeofday) diff --git a/usr/src/lib/libc/sparc/sys/ptrace.c b/usr/src/lib/libc/sparc/sys/ptrace.c index 68c923489e..7610586c3f 100644 --- a/usr/src/lib/libc/sparc/sys/ptrace.c +++ b/usr/src/lib/libc/sparc/sys/ptrace.c @@ -30,9 +30,9 @@ #pragma ident "%Z%%M% %I% %E% SMI" -#pragma weak ptrace = _ptrace +#pragma weak _ptrace = ptrace -#include "synonyms.h" +#include "lint.h" #include <stdio.h> #include <stdlib.h> #include <unistd.h> diff --git a/usr/src/lib/libc/sparc/sys/syscall.s b/usr/src/lib/libc/sparc/sys/syscall.s index ab4fa8020f..f90ee2c92e 100644 --- a/usr/src/lib/libc/sparc/sys/syscall.s +++ b/usr/src/lib/libc/sparc/sys/syscall.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,15 +18,15 @@ * * CDDL HEADER END */ -/* Copyright (c) 1988 AT&T */ -/* All Rights Reserved */ - /* - * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * 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" /* @@ -48,16 +47,11 @@ .file "%M%" -#include <sys/asm_linkage.h> - - ANSI_PRAGMA_WEAK(syscall,function) - #include "SYS.h" -#undef _syscall /* override "synonyms.h" */ -#undef __systemcall + ANSI_PRAGMA_WEAK(syscall,function) - ENTRY(_syscall) + ENTRY(syscall) save %sp, -SA(MINFRAME + 2*CLONGSIZE), %sp ldn [%fp + STACK_BIAS + MINFRAME], %o5 ! arg 5 mov %i3, %o2 ! arg 2 @@ -79,7 +73,7 @@ 1: ret restore - SET_SIZE(_syscall) + SET_SIZE(syscall) /* * Same as _syscall(), but restricted to 6 syscall arguments diff --git a/usr/src/lib/libc/sparc/sys/vforkx.s b/usr/src/lib/libc/sparc/sys/vforkx.s index d5e41b571a..2757668e6b 100644 --- a/usr/src/lib/libc/sparc/sys/vforkx.s +++ b/usr/src/lib/libc/sparc/sys/vforkx.s @@ -19,23 +19,18 @@ * CDDL HEADER END */ -/* Copyright (c) 1988 AT&T */ -/* All Rights Reserved */ - /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * 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" .file "%M%" -#include <sys/asm_linkage.h> - - ANSI_PRAGMA_WEAK(vforkx,function) - ANSI_PRAGMA_WEAK(vfork,function) - #include "SYS.h" #include <assym.h> diff --git a/usr/src/lib/libc/sparc/threads/asm_subr.s b/usr/src/lib/libc/sparc/threads/asm_subr.s index f2fbb6adab..29489eb44e 100644 --- a/usr/src/lib/libc/sparc/threads/asm_subr.s +++ b/usr/src/lib/libc/sparc/threads/asm_subr.s @@ -26,20 +26,19 @@ #pragma ident "%Z%%M% %I% %E% SMI" - .file "asm_subr.s" + .file "%M%" -#include <sys/asm_linkage.h> +#include "SYS.h" #include <sys/trap.h> #include <../assym.h> -#include "SYS.h" ! This is where execution resumes when a thread created with ! thr_create() or pthread_create() returns (see setup_context()). - ! We pass the (void *) return value to _thr_terminate(). + ! We pass the (void *) return value to _thrp_terminate(). ENTRY(_lwp_start) nop ! this is the location from which the func() was "called" nop - call _thr_terminate ! %o0 contains the return value + call _thrp_terminate ! %o0 contains the return value nop SET_SIZE(_lwp_start) diff --git a/usr/src/lib/libc/sparc/threads/machdep.c b/usr/src/lib/libc/sparc/threads/machdep.c index c5510f776f..a1704c0418 100644 --- a/usr/src/lib/libc/sparc/threads/machdep.c +++ b/usr/src/lib/libc/sparc/threads/machdep.c @@ -67,7 +67,7 @@ setup_context(ucontext_t *ucp, void *(*func)(ulwp_t *), * Machine-dependent startup code for a newly-created thread. */ void * -_thr_setup(ulwp_t *self) +_thrp_setup(ulwp_t *self) { extern void _setfsr(greg_t *); diff --git a/usr/src/lib/libc/sparc/threads/tls_get_addr.s b/usr/src/lib/libc/sparc/threads/tls_get_addr.s index 9e88bde010..dc4051b7ab 100644 --- a/usr/src/lib/libc/sparc/threads/tls_get_addr.s +++ b/usr/src/lib/libc/sparc/threads/tls_get_addr.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 2003 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -28,10 +28,8 @@ .file "%M%" -#include <sys/asm_linkage.h> -#include <sys/trap.h> -#include <../assym.h> #include "SYS.h" +#include <../assym.h> /* * To make thread-local storage accesses as fast as possible, we |
