1 /********************************************************************/
2 /*                                                                  */
3 /*  dir_rtl.h     Primitive actions for the directory type.         */
4 /*  Copyright (C) 1989 - 2008  Thomas Mertes                        */
5 /*                                                                  */
6 /*  This file is part of the Seed7 Runtime Library.                 */
7 /*                                                                  */
8 /*  The Seed7 Runtime Library is free software; you can             */
9 /*  redistribute it and/or modify it under the terms of the GNU     */
10 /*  Lesser General Public License as published by the Free Software */
11 /*  Foundation; either version 2.1 of the License, or (at your      */
12 /*  option) any later version.                                      */
13 /*                                                                  */
14 /*  The Seed7 Runtime Library is distributed in the hope that it    */
15 /*  will be useful, but WITHOUT ANY WARRANTY; without even the      */
16 /*  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR */
17 /*  PURPOSE.  See the GNU Lesser General Public License for more    */
18 /*  details.                                                        */
19 /*                                                                  */
20 /*  You should have received a copy of the GNU Lesser General       */
21 /*  Public License along with this program; if not, write to the    */
22 /*  Free Software Foundation, Inc., 51 Franklin Street,             */
23 /*  Fifth Floor, Boston, MA  02110-1301, USA.                       */
24 /*                                                                  */
25 /*  Module: Seed7 Runtime Library                                   */
26 /*  File: seed7/src/dir_rtl.h                                       */
27 /*  Changes: 2008  Thomas Mertes                                    */
28 /*  Content: Primitive actions for the directory type.              */
29 /*                                                                  */
30 /********************************************************************/
31 
32 typedef os_DIR *dirType;
33 
34 #ifdef OS_STRI_WCHAR
35 extern const wchar_t slash[];
36 extern const wchar_t pathDelimiter[];
37 #else
38 extern const char slash[];
39 extern const char pathDelimiter[];
40 #endif
41 
42 
43 void dirClose (dirType directory);
44 dirType dirOpen (const const_striType path);
45 striType dirRead (dirType directory);
46