summaryrefslogtreecommitdiff
path: root/usr/src/head/iso/stdio_iso.h
diff options
context:
space:
mode:
authorKeith M Wesolowski <wesolows@foobazco.org>2014-08-20 20:04:47 +0000
committerKeith M Wesolowski <wesolows@foobazco.org>2014-08-20 20:04:47 +0000
commit5f00496ef2e39b976b062f196ff01a99fd4864a4 (patch)
tree20be9cbc8f4b7ed3e616ce23552728083801e846 /usr/src/head/iso/stdio_iso.h
parentaf59b1a40df03681c1c8129aea7b1f5f52f2bcea (diff)
parent86bb58aec7165f8a0303564575c65e5a2ad58bf1 (diff)
downloadillumos-joyent-release-20140821.tar.gz
[illumos-gate merge]20140821release-20140821
commit 86bb58aec7165f8a0303564575c65e5a2ad58bf1 5095 panic when adding a duplicate dbuf to dn_dbufs commit 60a61f7adabc73a7a0cb70d200ac2a6735f4a6e8 5092 env files don't need to define LOCKNAME by default 5091 illumos.sh env file's LOCKNAME definition is busted commit 5e3f545c431ec4bce3e1b52f3f81bc9befe501f2 4989 removal of ntfsprogs and parted commit ba3594ba9b5dd4c846c472a8d657edcb7c8109ac 5066 remove support for non-ANSI compilation 5068 Remove SCCSID() macro from <macros.h> commit d8ccf998f9c944b8cf27ed840c376f9b79ebce5c 5087 8-bit inline atomic {add,or,and} use wrong reg constraints on x86 Manifests: usr/src/pkg/manifests/SUNWntfsprogs.mf (torch library) usr/src/pkg/manifests/SUNWparted.mf (torch headers) usr/src/pkg/manifests/system-file-system-ntfsprogs.mf usr/src/pkg/manifests/system-storage-parted.mf
Diffstat (limited to 'usr/src/head/iso/stdio_iso.h')
-rw-r--r--usr/src/head/iso/stdio_iso.h68
1 files changed, 2 insertions, 66 deletions
diff --git a/usr/src/head/iso/stdio_iso.h b/usr/src/head/iso/stdio_iso.h
index f974ad5b08..1dec847790 100644
--- a/usr/src/head/iso/stdio_iso.h
+++ b/usr/src/head/iso/stdio_iso.h
@@ -20,6 +20,8 @@
* CDDL HEADER END
*/
/*
+ * Copyright 2014 Garrett D'Amore <garrett@damore.org>
+ *
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -157,17 +159,10 @@ typedef __longlong_t fpos_t;
#define L_tmpnam 25 /* (sizeof(P_tmpdir) + 15) */
-#if defined(__STDC__)
extern __FILE __iob[_NFILE];
#define stdin (&__iob[0])
#define stdout (&__iob[1])
#define stderr (&__iob[2])
-#else
-extern __FILE _iob[_NFILE];
-#define stdin (&_iob[0])
-#define stdout (&_iob[1])
-#define stderr (&_iob[2])
-#endif /* __STDC__ */
#if __cplusplus >= 199711L
namespace std {
@@ -199,8 +194,6 @@ namespace std {
#endif /* !defined(_LP64) && !defined(_LONGLONG_TYPE) */
-#if defined(__STDC__)
-
extern int remove(const char *);
extern int rename(const char *, const char *);
extern FILE *tmpfile(void);
@@ -272,57 +265,6 @@ extern int __filbuf(FILE *);
extern int __flsbuf(int, FILE *);
#endif /* _LP64 */
-#else /* !defined __STDC__ */
-
-extern int remove();
-extern int rename();
-extern FILE *tmpfile();
-extern char *tmpnam();
-extern int fclose();
-extern int fflush();
-extern FILE *fopen();
-extern FILE *freopen();
-extern void setbuf();
-extern int setvbuf();
-extern int fprintf();
-extern int fscanf();
-extern int printf();
-extern int scanf();
-extern int sprintf();
-extern int sscanf();
-extern int vfprintf();
-extern int vprintf();
-extern int vsprintf();
-extern int fgetc();
-extern char *fgets();
-extern int fputc();
-extern int fputs();
-extern int getc();
-extern int getchar();
-extern char *gets();
-extern int putc();
-extern int putchar();
-extern int puts();
-extern int ungetc();
-extern size_t fread();
-extern size_t fwrite();
-extern int fgetpos();
-extern int fseek();
-extern int fsetpos();
-extern long ftell();
-extern void rewind();
-extern void clearerr();
-extern int feof();
-extern int ferror();
-extern void perror();
-
-#ifndef _LP64
-extern int _filbuf();
-extern int _flsbuf();
-#endif /* _LP64 */
-
-#endif /* __STDC__ */
-
#if __cplusplus >= 199711L
}
#endif /* end of namespace std */
@@ -331,7 +273,6 @@ extern int _flsbuf();
#if !defined(_REENTRANT) && !defined(_LP64)
-#ifdef __STDC__
#if __cplusplus >= 199711L
namespace std {
inline int getc(FILE *_p) {
@@ -345,11 +286,6 @@ inline int putc(int _x, FILE *_p) {
#define putc(x, p) (--(p)->_cnt < 0 ? __flsbuf((x), (p)) \
: (int)(*(p)->_ptr++ = (unsigned char) (x)))
#endif /* __cplusplus >= 199711L */
-#else /* __STDC__ */
-#define getc(p) (--(p)->_cnt < 0 ? _filbuf(p) : (int)*(p)->_ptr++)
-#define putc(x, p) (--(p)->_cnt < 0 ? _flsbuf((x), (p)) : \
- (int)(*(p)->_ptr++ = (unsigned char) (x)))
-#endif /* __STDC__ */
#endif /* !defined(_REENTRANT) && !defined(_LP64) */