mc/vfs/extfs.h

71 lines
1.9 KiB
C
Raw Normal View History

1998-02-27 07:54:42 +03:00
/* Declarations for the extfs.
Copyright (C) 1995 The Free Software Foundation
Written by: 1995 Jakub Jelinek
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
1998-02-27 07:54:42 +03:00
#include <sys/types.h>
struct inode;
1998-02-27 07:54:42 +03:00
struct entry {
1998-02-27 07:54:42 +03:00
int has_changed;
struct entry *next_in_dir;
struct entry *dir;
1998-02-27 07:54:42 +03:00
char *name;
struct inode *inode;
1998-02-27 07:54:42 +03:00
};
struct archive;
1998-02-27 07:54:42 +03:00
struct inode {
1998-02-27 07:54:42 +03:00
int has_changed;
nlink_t nlink;
struct entry *first_in_subdir; /* only used if this is a directory */
struct entry *last_in_subdir;
1998-02-27 07:54:42 +03:00
ino_t inode; /* This is inode # */
dev_t dev; /* This is an internal identification of the extfs archive */
struct archive *archive; /* And this is an archive structure */
1998-02-27 07:54:42 +03:00
dev_t rdev;
mode_t mode; /* What is umode_t? It will not compile for me, changed it t mode_t */
1998-02-27 07:54:42 +03:00
uid_t uid;
gid_t gid;
int size;
time_t mtime;
char linkflag;
char *linkname;
time_t atime;
time_t ctime;
char *local_filename;
};
struct archive {
1998-02-27 07:54:42 +03:00
int fstype;
char *name;
char *local_name;
struct stat extfsstat;
struct stat local_stat;
dev_t rdev;
int fd_usage;
ino_t __inode_counter;
struct entry *root_entry;
struct entry *current_dir;
struct archive *next;
1998-02-27 07:54:42 +03:00
};
typedef struct archive extfs_archive; /* Do _not_ use this inside extfs.c */