diff options
author | Keith M Wesolowski <wesolows@foobazco.org> | 2014-08-20 20:04:47 +0000 |
---|---|---|
committer | Keith M Wesolowski <wesolows@foobazco.org> | 2014-08-20 20:04:47 +0000 |
commit | 5f00496ef2e39b976b062f196ff01a99fd4864a4 (patch) | |
tree | 20be9cbc8f4b7ed3e616ce23552728083801e846 /usr/src/head/stdio.h | |
parent | af59b1a40df03681c1c8129aea7b1f5f52f2bcea (diff) | |
parent | 86bb58aec7165f8a0303564575c65e5a2ad58bf1 (diff) | |
download | illumos-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/stdio.h')
-rw-r--r-- | usr/src/head/stdio.h | 103 |
1 files changed, 1 insertions, 102 deletions
diff --git a/usr/src/head/stdio.h b/usr/src/head/stdio.h index d4178a4c0e..65003f56a8 100644 --- a/usr/src/head/stdio.h +++ b/usr/src/head/stdio.h @@ -20,6 +20,7 @@ */ /* + * Copyright 2014 Garrett D'Amore <garrett@damore.org> * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. */ @@ -215,19 +216,11 @@ extern unsigned char _sibuf[], _sobuf[]; /* large file compilation environment setup */ #if !defined(_LP64) && _FILE_OFFSET_BITS == 64 #if !defined(__PRAGMA_REDEFINE_EXTNAME) -#if defined(__STDC__) extern FILE *fopen64(const char *, const char *); extern FILE *freopen64(const char *, const char *, FILE *); extern FILE *tmpfile64(void); extern int fgetpos64(FILE *, fpos_t *); extern int fsetpos64(FILE *, const fpos_t *); -#else /* defined(__STDC__) */ -extern FILE *fopen64(); -extern FILE *freopen64(); -extern FILE *tmpfile64(); -extern int fgetpos64(); -extern int fsetpos64(); -#endif /* defined(__STDC__) */ #define fopen fopen64 #define freopen freopen64 #define tmpfile tmpfile64 @@ -269,8 +262,6 @@ typedef int ssize_t; /* (historical version) */ #endif #endif /* !_SSIZE_T */ -#if defined(__STDC__) - #if defined(__EXTENSIONS__) || \ (!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX)) || \ defined(_REENTRANT) @@ -371,94 +362,11 @@ extern int fseeko64(FILE *, off64_t, int); extern off64_t ftello64(FILE *); #endif -#else /* !defined __STDC__ */ - -#ifndef _LP64 -#define _bufend(p) ((fileno(p) < _NFILE) ? _bufendtab[fileno(p)] : \ - (unsigned char *)_realbufend(p)) -#define _bufsiz(p) (_bufend(p) - (p)->_base) -#endif /* _LP64 */ - -#if defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) || \ - defined(_REENTRANT) -extern char *tmpnam_r(); -#endif - -#if defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) -extern int fcloseall(); -extern void setbuffer(); -extern int setlinebuf(); -extern int asprintf(); -extern int vasprintf(); -#endif - -#if defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) - /* || defined(_XPG7) */ -extern ssize_t getdelim(); -extern ssize_t getline(); -#endif /* __EXTENSIONS__ ... */ - -#if defined(__EXTENSIONS__) || defined(__XOPEN_OR_POSIX) -extern FILE *fdopen(); -extern char *ctermid(); -extern int fileno(); -#endif /* defined(__EXTENSIONS__) || defined(__XOPEN_OR_POSIX) */ - -#if defined(__EXTENSIONS__) || defined(_REENTRANT) || \ - (_POSIX_C_SOURCE - 0 >= 199506L) -extern void flockfile(); -extern int ftrylockfile(); -extern void funlockfile(); -extern int getc_unlocked(); -extern int getchar_unlocked(); -extern int putc_unlocked(); -extern int putchar_unlocked(); -#endif /* defined(__EXTENSIONS__) || defined(_REENTRANT).. */ - -#if defined(__EXTENSIONS__) || defined(_XOPEN_SOURCE) -extern FILE *popen(); -extern char *tempnam(); -extern int pclose(); - -#if !defined(_XOPEN_SOURCE) -extern int getsubopt(); -#endif /* !defined(_XOPEN_SOURCE) */ - -#if !defined(_XPG6) || defined(__EXTENSIONS__) -extern char *cuserid(); -extern int getopt(); -extern char *optarg; -extern int optind, opterr, optopt; -extern int getw(); -extern int putw(); -#endif /* !defined(_XPG6) || defined(__EXTENSIONS__) */ - -#endif /* defined(__EXTENSIONS__) || defined(_XOPEN_SOURCE) */ - -#if defined(_LARGEFILE_SOURCE) || defined(_XPG5) -extern int fseeko(); -extern off_t ftello(); -#endif - -#if defined(_LARGEFILE64_SOURCE) && !((_FILE_OFFSET_BITS == 64) && \ - !defined(__PRAGMA_REDEFINE_EXTNAME)) -extern FILE *fopen64(); -extern FILE *freopen64(); -extern FILE *tmpfile64(); -extern int fgetpos64(); -extern int fsetpos64(); -extern int fseeko64(); -extern off64_t ftello64(); -#endif - -#endif /* __STDC__ */ - #if !defined(__lint) #if defined(__EXTENSIONS__) || defined(_REENTRANT) || \ (_POSIX_C_SOURCE - 0 >= 199506L) #ifndef _LP64 -#ifdef __STDC__ #define getc_unlocked(p) (--(p)->_cnt < 0 \ ? __filbuf(p) \ : (int)*(p)->_ptr++) @@ -466,15 +374,6 @@ extern off64_t ftello64(); ? __flsbuf((x), (p)) \ : (int)(*(p)->_ptr++ = \ (unsigned char) (x))) -#else -#define getc_unlocked(p) (--(p)->_cnt < 0 \ - ? _filbuf(p) \ - : (int)*(p)->_ptr++) -#define putc_unlocked(x, p) (--(p)->_cnt < 0 \ - ? _flsbuf((x), (p)) \ - : (int)(*(p)->_ptr++ = \ - (unsigned char) (x))) -#endif /* __STDC__ */ #endif /* _LP64 */ #define getchar_unlocked() getc_unlocked(stdin) #define putchar_unlocked(x) putc_unlocked((x), stdout) |