summaryrefslogtreecommitdiff
path: root/usr/src/lib/libc/port/print
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/port/print
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/port/print')
-rw-r--r--usr/src/lib/libc/port/print/doprnt.c20
-rw-r--r--usr/src/lib/libc/port/print/fprintf.c21
-rw-r--r--usr/src/lib/libc/port/print/printf.c13
-rw-r--r--usr/src/lib/libc/port/print/snprintf.c10
-rw-r--r--usr/src/lib/libc/port/print/sprintf.c13
-rw-r--r--usr/src/lib/libc/port/print/vfprintf.c13
-rw-r--r--usr/src/lib/libc/port/print/vprintf.c13
-rw-r--r--usr/src/lib/libc/port/print/vsnprintf.c10
-rw-r--r--usr/src/lib/libc/port/print/vsprintf.c13
-rw-r--r--usr/src/lib/libc/port/print/vwprintf.c10
-rw-r--r--usr/src/lib/libc/port/print/wprintf.c10
11 files changed, 69 insertions, 77 deletions
diff --git a/usr/src/lib/libc/port/print/doprnt.c b/usr/src/lib/libc/port/print/doprnt.c
index cf6e05da01..ac16e9445b 100644
--- a/usr/src/lib/libc/port/print/doprnt.c
+++ b/usr/src/lib/libc/port/print/doprnt.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,23 +18,22 @@
*
* 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"
-
/* Copyright (c) 1988 AT&T */
-
/* All Rights Reserved */
+#pragma ident "%Z%%M% %I% %E% SMI"
/*
* _doprnt: common code for printf, fprintf, sprintf
*/
-#include "synonyms.h"
+#include "lint.h"
#include "mtlib.h"
#include "print.h" /* parameters & macros for doprnt */
#include <wchar.h>
@@ -315,8 +313,7 @@ put_wide(FILE *iop, unsigned char **bufptr,
return (EOF);
} else {
(void) wmemcpy((wchar_t *)*bufptr, p, n);
- *bufptr = (unsigned char *)
- ((wchar_t *)*bufptr + n);
+ *bufptr = (unsigned char *)((wchar_t *)*bufptr + n);
return (0);
}
} else {
@@ -377,8 +374,7 @@ pad_wide(FILE *iop, unsigned char **bufptr,
return (EOF);
} else {
(void) wmemset((wchar_t *)*bufptr, ps, n);
- *bufptr = (unsigned char *)
- ((wchar_t *)*bufptr + n);
+ *bufptr = (unsigned char *)((wchar_t *)*bufptr + n);
return (0);
}
} else {
diff --git a/usr/src/lib/libc/port/print/fprintf.c b/usr/src/lib/libc/port/print/fprintf.c
index 4cd86b66b4..ce489a274c 100644
--- a/usr/src/lib/libc/port/print/fprintf.c
+++ b/usr/src/lib/libc/port/print/fprintf.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,22 +18,24 @@
*
* 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"
-/* This function should not be defined weak, but there might be */
-/* some program or libraries that may be interposing on this */
-#pragma weak fprintf = _fprintf
+/*
+ * This symbol should not be defined, but there are some
+ * miserable old compiler libraries that depend on it.
+ */
+#pragma weak _fprintf = fprintf
-#include "synonyms.h"
+#include "lint.h"
#include <mtlib.h>
#include <thread.h>
#include <synch.h>
diff --git a/usr/src/lib/libc/port/print/printf.c b/usr/src/lib/libc/port/print/printf.c
index 206a157708..bc3c7b1c1c 100644
--- a/usr/src/lib/libc/port/print/printf.c
+++ b/usr/src/lib/libc/port/print/printf.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 <mtlib.h>
#include <stdarg.h>
#include <errno.h>
diff --git a/usr/src/lib/libc/port/print/snprintf.c b/usr/src/lib/libc/port/print/snprintf.c
index 78348f106e..4eb40028d7 100644
--- a/usr/src/lib/libc/port/print/snprintf.c
+++ b/usr/src/lib/libc/port/print/snprintf.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.
*/
@@ -29,7 +29,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <mtlib.h>
#include <stdarg.h>
#include <values.h>
diff --git a/usr/src/lib/libc/port/print/sprintf.c b/usr/src/lib/libc/port/print/sprintf.c
index 102079f3c2..b9bf02a6b9 100644
--- a/usr/src/lib/libc/port/print/sprintf.c
+++ b/usr/src/lib/libc/port/print/sprintf.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 <mtlib.h>
#include <stdarg.h>
#include <values.h>
diff --git a/usr/src/lib/libc/port/print/vfprintf.c b/usr/src/lib/libc/port/print/vfprintf.c
index 91dccacd16..ee17738bdb 100644
--- a/usr/src/lib/libc/port/print/vfprintf.c
+++ b/usr/src/lib/libc/port/print/vfprintf.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 <thread.h>
#include <mtlib.h>
#include <synch.h>
diff --git a/usr/src/lib/libc/port/print/vprintf.c b/usr/src/lib/libc/port/print/vprintf.c
index 91289e7e8d..2db4471179 100644
--- a/usr/src/lib/libc/port/print/vprintf.c
+++ b/usr/src/lib/libc/port/print/vprintf.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 <mtlib.h>
#include <stdarg.h>
#include <errno.h>
diff --git a/usr/src/lib/libc/port/print/vsnprintf.c b/usr/src/lib/libc/port/print/vsnprintf.c
index 7d7df9c765..fbca2eedd3 100644
--- a/usr/src/lib/libc/port/print/vsnprintf.c
+++ b/usr/src/lib/libc/port/print/vsnprintf.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.
*/
@@ -29,7 +29,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
-#include "synonyms.h"
+#include "lint.h"
#include <mtlib.h>
#include <stdarg.h>
#include <values.h>
diff --git a/usr/src/lib/libc/port/print/vsprintf.c b/usr/src/lib/libc/port/print/vsprintf.c
index da7f5216a0..d058e5c55f 100644
--- a/usr/src/lib/libc/port/print/vsprintf.c
+++ b/usr/src/lib/libc/port/print/vsprintf.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 <mtlib.h>
#include <stdarg.h>
#include <values.h>
diff --git a/usr/src/lib/libc/port/print/vwprintf.c b/usr/src/lib/libc/port/print/vwprintf.c
index 0e149f628d..ae64a62688 100644
--- a/usr/src/lib/libc/port/print/vwprintf.c
+++ b/usr/src/lib/libc/port/print/vwprintf.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 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"
+#include "lint.h"
#include "file64.h"
#include <mtlib.h>
#include <stdio.h>
diff --git a/usr/src/lib/libc/port/print/wprintf.c b/usr/src/lib/libc/port/print/wprintf.c
index c23c59c1e4..4cdfe715fa 100644
--- a/usr/src/lib/libc/port/print/wprintf.c
+++ b/usr/src/lib/libc/port/print/wprintf.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 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"
+#include "lint.h"
#include "file64.h"
#include <mtlib.h>
#include <stdio.h>