Add missing includes
[yaboot.git] / second / fs_iso.c
1 /*
2  *  fs_iso.c - a non-implementation for the ISO9660 filesystem
3  *
4  *  Copyright (C) 1999 Benjamin Herrenschnidt
5  *
6  *  This program is free software; you can redistribute it and/or modify
7  *  it under the terms of the GNU General Public License as published by
8  *  the Free Software Foundation; either version 2 of the License, or
9  *  (at your option) any later version.
10  *
11  *  This program is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  *  GNU General Public License for more details.
15  *
16  *  You should have received a copy of the GNU General Public License
17  *  along with this program; if not, write to the Free Software
18  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
19  */
20
21 #include "ctype.h"
22 #include "types.h"
23 #include "stddef.h"
24 #include "file.h"
25 #include "prom.h"
26 #include "string.h"
27 #include "partition.h"
28 #include "fs.h"
29 #include "errors.h"
30
31 static int iso_open(    struct boot_file_t*     file,
32                         const char*             dev_name,
33                         struct partition_t*     part,
34                         const char*             file_name);
35 static int iso_read(    struct boot_file_t*     file,
36                         unsigned int            size,
37                         void*                   buffer);
38 static int iso_seek(    struct boot_file_t*     file,
39                         unsigned int            newpos);
40 static int iso_close(   struct boot_file_t*     file);
41
42 struct fs_t iso_filesystem =
43 {
44      "iso9660",
45      iso_open,
46      iso_read,
47      iso_seek,
48      iso_close
49 };
50
51 static int
52 iso_open(       struct boot_file_t*     file,
53                 const char*             dev_name,
54                 struct partition_t*     part,
55                 const char*             file_name)
56 {
57      return FILE_ERR_BAD_FSYS;
58 }
59
60 static int
61 iso_read(       struct boot_file_t*     file,
62                 unsigned int            size,
63                 void*                   buffer)
64 {
65      return FILE_ERR_BAD_FSYS;
66 }
67
68 static int
69 iso_seek(       struct boot_file_t*     file,
70                 unsigned int            newpos)
71 {
72      return FILE_ERR_BAD_FSYS;
73 }
74
75 static int
76 iso_close(      struct boot_file_t*     file)
77 {
78      return 0;
79 }
80
81 /*
82  * Local variables:
83  * c-file-style: "k&r"
84  * c-basic-offset: 5
85  * End:
86  */