2001-01-31 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/stdio.h (FILENAME_MAX): Changed to use __FILENAME_MAX__ if defined. (FOPEN_MAX): Changed to use __FOPEN_MAX__ if defined. (L_tmpnam): Changed to use __L_tmpnam__ if defined. * libc/include/sys/config.h: Changed to set __FILENAME_MAX__ appropriately for Cygwin and RTEMS so not to exceed PATH_MAX.
This commit is contained in:
parent
f8da150758
commit
e29d83550e
|
@ -1,3 +1,12 @@
|
|||
2001-01-31 Jeff Johnston <jjohnstn@redhat.com>
|
||||
|
||||
* libc/include/stdio.h (FILENAME_MAX): Changed to use __FILENAME_MAX__
|
||||
if defined.
|
||||
(FOPEN_MAX): Changed to use __FOPEN_MAX__ if defined.
|
||||
(L_tmpnam): Changed to use __L_tmpnam__ if defined.
|
||||
* libc/include/sys/config.h: Changed to set __FILENAME_MAX__
|
||||
appropriately for Cygwin and RTEMS so not to exceed PATH_MAX.
|
||||
|
||||
Mon Jan 29 23:03:06 2001 Christopher Faylor <cgf@cygnus.com>
|
||||
|
||||
* libc/stdlib/mallocr.c: Undefine windows preprocessor variables when
|
||||
|
|
|
@ -90,9 +90,24 @@ typedef struct __sFILE FILE;
|
|||
#define BUFSIZ 1024
|
||||
#define EOF (-1)
|
||||
|
||||
#define FOPEN_MAX 20 /* must be <= OPEN_MAX <sys/syslimits.h> */
|
||||
#define FILENAME_MAX 1024 /* must be <= PATH_MAX <sys/syslimits.h> */
|
||||
#define L_tmpnam 1024 /* XXX must be == PATH_MAX */
|
||||
#ifdef __FOPEN_MAX__
|
||||
#define FOPEN_MAX __FOPEN_MAX__
|
||||
#else
|
||||
#define FOPEN_MAX 20
|
||||
#endif
|
||||
|
||||
#ifdef __FILENAME_MAX__
|
||||
#define FILENAME_MAX __FILENAME_MAX__
|
||||
#else
|
||||
#define FILENAME_MAX 1024
|
||||
#endif
|
||||
|
||||
#ifdef __L_tmpnam__
|
||||
#define L_tmpnam __L_tmpnam__
|
||||
#else
|
||||
#define L_tmpnam FILENAME_MAX
|
||||
#endif
|
||||
|
||||
#ifndef __STRICT_ANSI__
|
||||
#define P_tmpdir "/tmp"
|
||||
#endif
|
||||
|
|
|
@ -127,6 +127,7 @@ typedef unsigned int __uint32_t;
|
|||
|
||||
|
||||
#if defined(__CYGWIN32__) || defined(__CYGWIN__)
|
||||
#define __FILENAME_MAX__ (260 - 1 /* NUL */)
|
||||
#if defined(__INSIDE_CYGWIN__) || defined(_COMPILING_NEWLIB)
|
||||
#define __IMPORT
|
||||
#else
|
||||
|
@ -134,6 +135,10 @@ typedef unsigned int __uint32_t;
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(__rtems__)
|
||||
#define __FILENAME_MAX__ 255
|
||||
#endif
|
||||
|
||||
#ifndef __IMPORT
|
||||
#define __IMPORT
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue