1
1

* direntry.c: Make functions static when possible.

* xdirentry.h: Remove unneeded declarations.
Этот коммит содержится в:
Pavel Roskin 2003-10-07 22:38:28 +00:00
родитель af43d757e3
Коммит b1aba35e22
3 изменённых файлов: 14 добавлений и 27 удалений

Просмотреть файл

@ -1,3 +1,8 @@
2003-10-07 Pavel Roskin <proski@gnu.org>
* direntry.c: Make functions static when possible.
* xdirentry.h: Remove unneeded declarations.
2003-09-28 Pavel Roskin <proski@gnu.org>
* vfs.c (vfs_type_from_op): Check if vfs->prefix is NULL before

Просмотреть файл

@ -34,6 +34,9 @@
static volatile int total_inodes = 0, total_entries = 0;
static vfs_s_entry *vfs_s_resolve_symlink (vfs * me, vfs_s_entry * entry,
char *path, int follow);
vfs_s_inode *
vfs_s_new_inode (vfs *me, vfs_s_super *super, struct stat *initstat)
{
@ -193,7 +196,7 @@ vfs_s_generate_entry (vfs *me, char *name, struct vfs_s_inode *parent, mode_t mo
}
/* We were asked to create entries automagically */
vfs_s_entry *
static vfs_s_entry *
vfs_s_automake (vfs *me, vfs_s_inode *dir, char *path, int flags)
{
struct vfs_s_entry *res;
@ -340,7 +343,7 @@ vfs_s_find_inode (vfs *me, vfs_s_inode *root, char *path, int follow, int flags)
return ent->ino;
}
vfs_s_entry *
static vfs_s_entry *
vfs_s_resolve_symlink (vfs *me, vfs_s_entry *entry, char *path, int follow)
{
char buf[MC_MAXPATHLEN], *linkname;
@ -398,7 +401,7 @@ vfs_s_resolve_symlink (vfs *me, vfs_s_entry *entry, char *path, int follow)
/* Ook, these were functions around directory entries / inodes */
/* -------------------------------- superblock games -------------------------- */
vfs_s_super *
static vfs_s_super *
vfs_s_new_super (vfs *me)
{
vfs_s_super *super;
@ -419,7 +422,7 @@ vfs_s_insert_super (vfs *me, vfs_s_super *super)
MEDATA->supers = super;
}
void
static void
vfs_s_free_super (vfs *me, vfs_s_super *super)
{
if (super->root){
@ -518,7 +521,7 @@ return_success:
return local;
}
char *
static char *
vfs_s_get_path (vfs *me, char *inname, struct vfs_s_super **archive, int flags)
{
char *buf = g_strdup( inname );
@ -557,16 +560,7 @@ vfs_s_fullpath (vfs *me, vfs_s_inode *ino)
/* Support of archives */
/* ------------------------ readdir & friends ----------------------------- */
vfs_s_super *vfs_s_super_from_path (vfs *me, char *name)
{
struct vfs_s_super *super;
if (!vfs_s_get_path_mangle (me, name, &super, 0))
return NULL;
return super;
}
vfs_s_inode *
static vfs_s_inode *
vfs_s_inode_from_path (vfs *me, char *name, int flags)
{
struct vfs_s_super *super;

Просмотреть файл

@ -185,8 +185,6 @@ void vfs_s_add_dots (vfs *me, vfs_s_inode *dir,
vfs_s_inode *parent);
vfs_s_entry *vfs_s_generate_entry (vfs *me, char *name,
struct vfs_s_inode *parent, mode_t mode);
vfs_s_entry *vfs_s_automake (vfs *me, vfs_s_inode *dir, char *path,
int flags);
vfs_s_entry *vfs_s_find_entry_tree (vfs *me, vfs_s_inode *root, char *path,
int follow, int flags);
vfs_s_entry *vfs_s_find_entry_linear (vfs *me, vfs_s_inode *root, char *path,
@ -194,24 +192,14 @@ vfs_s_entry *vfs_s_find_entry_linear (vfs *me, vfs_s_inode *root, char *path,
vfs_s_inode *vfs_s_find_inode (vfs *me, vfs_s_inode *root, char *path,
int follow, int flags);
vfs_s_inode *vfs_s_find_root (vfs *me, vfs_s_entry *entry);
vfs_s_entry *vfs_s_resolve_symlink (vfs *me, vfs_s_entry *entry, char *path,
int follow);
/* superblock games */
vfs_s_super *vfs_s_new_super (vfs *me);
void vfs_s_free_super (vfs *me, vfs_s_super *super);
/* outside interface */
char *vfs_s_get_path_mangle (vfs *me, char *inname, vfs_s_super **archive,
int flags);
char *vfs_s_get_path (vfs *me, char *inname, vfs_s_super **archive,
int flags);
void vfs_s_invalidate (vfs *me, vfs_s_super *super);
char *vfs_s_fullpath (vfs *me, vfs_s_inode *ino);
/* readdir & friends */
vfs_s_super *vfs_s_super_from_path (vfs *me, char *name);
vfs_s_inode *vfs_s_inode_from_path (vfs *me, char *name, int flags);
void *vfs_s_opendir (vfs *me, char *dirname);
void *vfs_s_readdir (void *data);
int vfs_s_telldir (void *data);