diff options
author | Garrett D'Amore <garrett@damore.org> | 2014-08-02 18:23:32 -0700 |
---|---|---|
committer | Garrett D'Amore <garrett@damore.org> | 2014-08-15 11:49:54 -0700 |
commit | ba3594ba9b5dd4c846c472a8d657edcb7c8109ac (patch) | |
tree | 1e072a76d8376217ff49110ecdc09171d2d8a07c /usr/src/head/iso/stdio_iso.h | |
parent | d8ccf998f9c944b8cf27ed840c376f9b79ebce5c (diff) | |
download | illumos-joyent-ba3594ba9b5dd4c846c472a8d657edcb7c8109ac.tar.gz |
5066 remove support for non-ANSI compilation
5068 Remove SCCSID() macro from <macros.h>
Reviewed by: Keith Wesolowski <keith.wesolowski@joyent.com>
Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr/src/head/iso/stdio_iso.h')
-rw-r--r-- | usr/src/head/iso/stdio_iso.h | 68 |
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) */ |