* *
* C Header File *
* *
- * Copyright (C) 1992-2009, Free Software Foundation, Inc. *
+ * Copyright (C) 1992-2010, Free Software Foundation, Inc. *
* *
* GNAT is free software; you can redistribute it and/or modify it under *
* terms of the GNU General Public License as published by the Free Soft- *
determine at compile time what support the system offers for large files.
For now we just list the platforms we have manually tested. */
-#if defined (__GLIBC__) || defined (sun) || defined (__sgi)
+#if defined (__GLIBC__) || defined (sun) || (defined (__sgi) && defined(_LFAPI))
#define GNAT_FOPEN fopen64
#define GNAT_STAT stat64
#define GNAT_FSTAT fstat64
*/
struct file_attributes {
- short exists;
+ unsigned char exists;
- short writable;
- short readable;
- short executable;
+ unsigned char writable;
+ unsigned char readable;
+ unsigned char executable;
- short symbolic_link;
- short regular;
- short directory;
+ unsigned char symbolic_link;
+ unsigned char regular;
+ unsigned char directory;
OS_Time timestamp;
long file_length;
extern int __gnat_get_maximum_file_name_length (void);
extern int __gnat_get_switches_case_sensitive (void);
extern int __gnat_get_file_names_case_sensitive (void);
+extern int __gnat_get_env_vars_case_sensitive (void);
extern char __gnat_get_default_identifier_character_set (void);
extern void __gnat_get_current_dir (char *, int *);
extern void __gnat_get_object_suffix_ptr (int *,
extern int __gnat_is_readable_file (char *name);
extern int __gnat_is_executable_file (char *name);
-extern void reset_attributes (struct file_attributes* attr);
+extern void __gnat_reset_attributes (struct file_attributes* attr);
extern long __gnat_file_length_attr (int, char *, struct file_attributes *);
extern OS_Time __gnat_file_time_name_attr (char *, struct file_attributes *);
extern OS_Time __gnat_file_time_fd_attr (int, struct file_attributes *);