#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
/* check filesystem types and read superblock into memory buffer */
-int
+static int
ext2fs_mount (fsi_file_t *ffi, const char *options)
{
int retval = 1;
}
/* preconditions: all preconds of ext2fs_block_map */
-int
+static int
ext2fs_read (fsi_file_t *ffi, char *buf, int len)
{
int logical_block;
* inode of the file we were trying to look up
* side effects: messes up GROUP_DESC buffer area
*/
-int
+static int
ext2fs_dir (fsi_file_t *ffi, char *dirname)
{
int current_ino = EXT2_ROOT_INO; /* start at the root */
#define log2 grub_log2
-int
+static int
fat_mount (fsi_file_t *ffi, const char *options)
{
struct fat_bpb bpb;
return 1;
}
-int
+static int
fat_read (fsi_file_t *ffi, char *buf, int len)
{
int logical_clust;
return errnum ? 0 : ret;
}
-int
+static int
fat_dir (fsi_file_t *ffi, char *dirname)
{
char *rest, ch, dir_buf[FAT_DIRENTRY_LENGTH];
return devread(ffi, sector, byte_offset, byte_len, buf);
}
-int
+static int
iso9660_mount (fsi_file_t *ffi, const char *options)
{
unsigned int sector;
return 0;
}
-int
+static int
iso9660_dir (fsi_file_t *ffi, char *dirname)
{
struct iso_directory_record *idr;
return 1;
}
-int
+static int
iso9660_read (fsi_file_t *ffi, char *buf, int len)
{
int sector, blkoffset, size, ret;
}
/* check filesystem types and read superblock into memory buffer */
-int
+static int
reiserfs_mount (fsi_file_t *ffi, const char *options)
{
struct reiserfs_super_block super;
return 0;
}
-int
+static int
reiserfs_read (fsi_file_t *ffi, char *buf, int len)
{
unsigned int blocksize;
* of the file we were trying to look up, filepos is 0 and filemax is
* the size of the file.
*/
-int
+static int
reiserfs_dir (fsi_file_t *ffi, char *dirname)
{
struct reiserfs_de_head *de_head;
static grub_daddr32_t sbmap(fsi_file_t *, grub_daddr32_t);
/* read superblock and check fs magic */
-int
+static int
ufs_mount(fsi_file_t *ffi, const char *options)
{
if (/*! IS_PC_SLICE_TYPE_SOLARIS(current_slice) || */
* The entry point should really be named ufs_open(char *pathname).
* For now, keep it consistent with the rest of fsys modules.
*/
-int
+static int
ufs_dir(fsi_file_t *ffi, char *dirname)
{
grub_ino_t inode = ROOTINO; /* start from root */
/*
* This is the high-level read function.
*/
-int
+static int
ufs_read(fsi_file_t *ffi, char *buf, int len)
{
int off, size, ret = 0, ok;
* 1 - success
* 0 - failure
*/
-int
+static int
zfs_mount(fsi_file_t *ffi, const char *options)
{
char *stack;
* 1 - success
* 0 - failure
*/
-int
+static int
zfs_open(fsi_file_t *ffi, char *filename)
{
char *stack;
* len - the length successfully read in to the buffer
* 0 - failure
*/
-int
+static int
zfs_read(fsi_file_t *ffi, char *buf, int len)
{
char *stack;
};
#undef X
-int lock_pages(void *addr, size_t len)
+static int lock_pages(void *addr, size_t len)
{
int e = 0;
#ifndef __sun__
return (e);
}
-void unlock_pages(void *addr, size_t len)
+static void unlock_pages(void *addr, size_t len)
{
#ifndef __sun__
munlock(addr, len);
static PyObject *acm_error_obj;
/* generic shared function */
-void * __getssid(int domid, uint32_t *buflen)
+static void *__getssid(int domid, uint32_t *buflen)
{
struct acm_getssid getssid;
int xc_handle;