home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / adav313.zip / gnat-3_13p-os2-bin-20010916.zip / emx / gnatlib / a-adaint.h < prev    next >
C/C++ Source or Header  |  2000-07-19  |  5KB  |  84 lines

  1. /****************************************************************************/
  2. /*                                                                          */
  3. /*                         GNAT COMPILER COMPONENTS                         */
  4. /*                                                                          */
  5. /*                             A - A D A I N T                              */
  6. /*                                                                          */
  7. /*                            $Revision: 1.18 $                             */
  8. /*                                                                          */
  9. /*                              C Header File                               */
  10. /*                                                                          */
  11. /*          Copyright (C) 1992-1998 Free Software Foundation, Inc.          */
  12. /*                                                                          */
  13. /* GNAT is free software;  you can  redistribute it  and/or modify it under */
  14. /* terms of the  GNU General Public License as published  by the Free Soft- */
  15. /* ware  Foundation;  either version 2,  or (at your option) any later ver- */
  16. /* sion.  GNAT is distributed in the hope that it will be useful, but WITH- */
  17. /* OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY */
  18. /* or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License */
  19. /* for  more details.  You should have  received  a copy of the GNU General */
  20. /* Public License  distributed with GNAT;  see file COPYING.  If not, write */
  21. /* to  the Free Software Foundation,  59 Temple Place - Suite 330,  Boston, */
  22. /* MA 02111-1307, USA.                                                      */
  23. /*                                                                          */
  24. /* As a  special  exception,  if you  link  this file  with other  files to */
  25. /* produce an executable,  this file does not by itself cause the resulting */
  26. /* executable to be covered by the GNU General Public License. This except- */
  27. /* ion does not  however invalidate  any other reasons  why the  executable */
  28. /* file might be covered by the  GNU Public License.                        */
  29. /*                                                                          */
  30. /* GNAT was originally developed  by the GNAT team at  New York University. */
  31. /* It is now maintained by Ada Core Technologies Inc (http://www.gnat.com). */
  32. /*                                                                          */
  33. /****************************************************************************/
  34.  
  35. /* Add prototype support.  */
  36. #ifndef PROTO
  37. #if defined (USE_PROTOTYPES) ? USE_PROTOTYPES : defined (__STDC__)
  38. #define PROTO(ARGS) ARGS
  39. #else
  40. #define PROTO(ARGS) ()
  41. #endif
  42. #endif
  43.  
  44. #include <dirent.h>
  45.  
  46. extern void   to_gm_time  \
  47.               PROTO ((time_t *, int *, int *, int *, int *, int *, int *));
  48. extern int    Get_Maximum_File_Name_Length         PROTO ((void));
  49. extern char   Get_Switch_Character                 PROTO ((void));
  50. extern int    Get_Switches_Case_Sensitive          PROTO ((void));
  51. extern int    Get_File_Names_Case_Sensitive        PROTO ((void));
  52. extern char   Get_Default_Identifier_Character_Set PROTO ((void));
  53. extern void   Get_Object_Suffix                    PROTO ((char *));
  54. extern void   Get_Executable_Suffix                PROTO ((char *));
  55. extern int    Try_Lock                             PROTO ((char *, char *));
  56. extern int    open_new                             PROTO ((char *, int));
  57. extern int    open_read                            PROTO ((char *, int));
  58. extern int    open_rw                              PROTO ((char *, int));
  59. extern int    open_create                          PROTO ((char *, int));
  60. extern int    open_append                          PROTO ((char *, int));
  61. extern long   file_length                          PROTO ((int));
  62. extern char*  readdir_gnat                         PROTO ((DIR*, char*));
  63. extern int    readdir_is_thread_safe               PROTO ((void));
  64. extern time_t file_time_name                       PROTO ((char *));
  65. extern time_t file_time_fd                         PROTO ((int));
  66. extern void   get_env_value_ptr \
  67.               PROTO ((char *, int *, char **));
  68. extern int    file_exists                          PROTO ((char *));
  69. extern int    is_regular_file                      PROTO ((char *));
  70. extern int    portable_spawn                       PROTO ((char *[]));
  71. extern int    portable_no_block_spawn              PROTO ((char *[]));
  72. extern int    portable_wait                        PROTO ((int *));
  73. extern char   *locate_exec                         PROTO ((char *, char *));
  74. extern char   *locate_regular_file                 PROTO ((char *, char *));
  75. extern void   maybe_glob_args                      PROTO ((int *, char ***));
  76. extern char   *to_canonical_dir_spec               PROTO ((char *, int));
  77. extern char   *to_canonical_file_spec              PROTO ((char *));
  78. extern char   *to_host_dir_spec                    PROTO ((char *, int));
  79. extern char   *to_host_file_spec                   PROTO ((char *));
  80.  
  81.  
  82. /* portable definition of strdup which is not available on all systems */
  83. #define xstrdup(s)  strcpy ((char *) malloc (strlen(s)+1), s)
  84.