summaryrefslogtreecommitdiff
path: root/usr/src/lib/libc/port/stdio/doscan.c
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/stdio/doscan.c
parent455903679f53d12d92035adc60bc7c3d95e6b6a2 (diff)
downloadillumos-gate-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/stdio/doscan.c')
-rw-r--r--usr/src/lib/libc/port/stdio/doscan.c43
1 files changed, 21 insertions, 22 deletions
diff --git a/usr/src/lib/libc/port/stdio/doscan.c b/usr/src/lib/libc/port/stdio/doscan.c
index 961afe65c8..1f473a608d 100644
--- a/usr/src/lib/libc/port/stdio/doscan.c
+++ b/usr/src/lib/libc/port/stdio/doscan.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 (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"
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include "mtlib.h"
#include "file64.h"
@@ -738,7 +737,7 @@ number(int *chcount, int *flag_eof, int stow, int type, int len, int size,
if ((type != 'i' && type != 'x') || (len <= 1))
break;
if (((inchar = locgetc((*chcount))) == 'x') ||
- (inchar == 'X')) {
+ (inchar == 'X')) {
lookahead = readchar(iop, chcount);
if (isxdigit(lookahead)) {
base = 16;
@@ -765,12 +764,12 @@ number(int *chcount, int *flag_eof, int stow, int type, int len, int size,
}
for (; --len >= 0; *np++ = (char)c, c = locgetc((*chcount))) {
if (np > numbuf + 62) {
- errno = ERANGE;
- return (0);
+ errno = ERANGE;
+ return (0);
}
if (isdigit(c) || base == 16 && isxdigit(c)) {
int digit = c - (isdigit(c) ? '0' :
- isupper(c) ? 'A' - 10 : 'a' - 10);
+ isupper(c) ? 'A' - 10 : 'a' - 10);
if (digit >= base)
break;
if (stow)
@@ -804,7 +803,7 @@ number(int *chcount, int *flag_eof, int stow, int type, int len, int size,
}
}
if (locungetc((*chcount), c) == EOF)
- *flag_eof = 1;
+ *flag_eof = 1;
return (digitseen); /* successful match if non-zero */
}
@@ -842,11 +841,11 @@ string(int *chcount, int *flag_eof, int stow, int type, int len, char *tab,
len = 1;
#ifdef _WIDE
while ((ch = locgetc((*chcount))) != EOF &&
- !(((type == 's') || (type == 'S')) && isspace(ch))) {
+ !(((type == 's') || (type == 'S')) && isspace(ch))) {
#else /* _WIDE */
while ((ch = locgetc((*chcount))) != EOF &&
- !(((type == 's') || (type == 'S')) &&
- isspace(ch) || type == '[' && tab[ch])) {
+ !(((type == 's') || (type == 'S')) &&
+ isspace(ch) || type == '[' && tab[ch])) {
#endif /* _WIDE */
if (stow)
*ptr = (char)ch;
@@ -973,7 +972,7 @@ wstring(int *chcount, int *flag_eof, int stow, int type,
if ((type == 'c') && len == MAXINT)
len = 1;
while (((wch = _wd_getwc(chcount, iop)) != WEOF) &&
- !(type == 's' && iswspace(wch))) {
+ !(type == 's' && iswspace(wch))) {
if (stow)
*ptr = wch;
ptr++;
@@ -1007,7 +1006,7 @@ wstring(int *chcount, int *flag_eof, int stow, int type, int len, FILE *iop,
if ((type == 'c') && len == MAXINT)
len = 1;
while (((wch = _bi_getwc(iop)) != EOF) &&
- !(type == 's' && (isascii(wch) ? isspace(wch) : 0))) {
+ !(type == 's' && (isascii(wch) ? isspace(wch) : 0))) {
(*chcount) += _scrwidth((wchar_t)wch);
if (stow)
*ptr = wch;
@@ -1047,7 +1046,7 @@ _wd_getwc(int *chcount, FILE *iop)
if (*iop->_ptr == '\0')
return (WEOF);
len = mbtowc((wchar_t *)&wc, (const char *)iop->_ptr,
- MB_CUR_MAX);
+ MB_CUR_MAX);
if (len == -1)
return (WEOF);
iop->_ptr += len;
@@ -1094,7 +1093,7 @@ _watoi(wchar_t *fmt)
if ((ch >= 0) && (ch < 256) && isdigit((int)ch)) {
n = ch - '0';
while (((ch = *++fmt) >= 0) && (ch < 256) &&
- isdigit((int)ch)) {
+ isdigit((int)ch)) {
n *= 10;
n += ch - '0';
}
@@ -1129,7 +1128,7 @@ wbrstring(int *chcount, int *flag_eof, int stow, int type,
}
str[i] = '\0';
if (fnmatch((const char *)brstr, (const char *)str,
- FNM_NOESCAPE)) {
+ FNM_NOESCAPE)) {
break;
} else {
if (len > 0) {
@@ -1188,7 +1187,7 @@ brstring(int *chcount, int *flag_eof, int stow, int type,
}
str[i] = '\0';
if (fnmatch((const char *)brstr, (const char *)str,
- FNM_NOESCAPE)) {
+ FNM_NOESCAPE)) {
break;
} else {
if (len >= i) {