]> git.ozlabs.org Git - yaboot.git/blob - second/fs_iso.c
extract_netinfo_args() should be a void function.
[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                         struct partition_t*     part,
33                         struct boot_fspec_t*    fspec);
34 static int iso_read(    struct boot_file_t*     file,
35                         unsigned int            size,
36                         void*                   buffer);
37 static int iso_seek(    struct boot_file_t*     file,
38                         unsigned int            newpos);
39 static int iso_close(   struct boot_file_t*     file);
40
41 struct fs_t iso_filesystem =
42 {
43      "iso9660",
44      iso_open,
45      iso_read,
46      iso_seek,
47      iso_close
48 };
49
50 static int
51 iso_open(       struct boot_file_t*     file,
52                 struct partition_t*     part,
53                 struct boot_fspec_t*    fspec)
54 {
55      return FILE_ERR_BAD_FSYS;
56 }
57
58 static int
59 iso_read(       struct boot_file_t*     file,
60                 unsigned int            size,
61                 void*                   buffer)
62 {
63      return FILE_ERR_BAD_FSYS;
64 }
65
66 static int
67 iso_seek(       struct boot_file_t*     file,
68                 unsigned int            newpos)
69 {
70      return FILE_ERR_BAD_FSYS;
71 }
72
73 static int
74 iso_close(      struct boot_file_t*     file)
75 {
76      return 0;
77 }
78
79 /*
80  * Local variables:
81  * c-file-style: "k&r"
82  * c-basic-offset: 5
83  * End:
84  */