Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2002-10-03 04:49:21 +0400
committerDanny Smith <dannysmith@users.sourceforge.net>2002-10-03 04:49:21 +0400
commit7c3de623b662e2dc389c005022fa59f4df626cce (patch)
treed0f5c19010d77348bf4ba73d74d7b254e4a6e43a /winsup/mingw/include/fcntl.h
parent14ab3f24e17b714e79e78108b1d0733e85f0e951 (diff)
* include/fcntl.h (_fmode): Remove declarations and
compatibility defines. (_setmode, setmode): Remove prototypes. * include/stdlib (_fmode): Add declarations and compatibility defines. Change type to int. * include/io.h (_setmode, setmode): Add prototypes. * samples/fmode/all.c: Adjust includes. * samples/fmode/test.c: Likewise. * crt1.c (_CRT_fmode): Declare as int. * CRTfmode.c (_CRT_fmode): Likewise. * include/stdlib: Remove comment about MB_CUR_MAX.
Diffstat (limited to 'winsup/mingw/include/fcntl.h')
-rw-r--r--winsup/mingw/include/fcntl.h46
1 files changed, 0 insertions, 46 deletions
diff --git a/winsup/mingw/include/fcntl.h b/winsup/mingw/include/fcntl.h
index 7b7a8cb2a..add43ff0e 100644
--- a/winsup/mingw/include/fcntl.h
+++ b/winsup/mingw/include/fcntl.h
@@ -85,52 +85,6 @@
#endif /* Not _NO_OLDNAMES */
-
-#ifndef RC_INVOKED
-
-/*
- * This variable determines the default file mode.
- * TODO: Which flags work?
- */
-#ifndef __DECLSPEC_SUPPORTED
-
-#ifdef __MSVCRT__
-extern unsigned int* _imp___fmode;
-#define _fmode (*_imp___fmode)
-#else
-/* CRTDLL */
-extern unsigned int* _imp___fmode_dll;
-#define _fmode (*_imp___fmode_dll)
-#endif
-
-#else /* __DECLSPEC_SUPPORTED */
-
-#ifdef __MSVCRT__
-__MINGW_IMPORT unsigned int _fmode;
-#else /* ! __MSVCRT__ */
-__MINGW_IMPORT unsigned int _fmode_dll;
-#define _fmode _fmode_dll
-#endif /* ! __MSVCRT__ */
-
-#endif /* __DECLSPEC_SUPPORTED */
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-int _setmode (int, int);
-
-#ifndef _NO_OLDNAMES
-int setmode (int, int);
-#endif /* Not _NO_OLDNAMES */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* Not RC_INVOKED */
-
#endif /* Not _FCNTL_H_ */
#endif /* Not __STRICT_ANSI__ */