* extfs.h: Merge ...

* extfs.c: ... here.
* Makefile.am: Remove extfs.h.
This commit is contained in:
Pavel Roskin 2003-10-29 23:05:27 +00:00
parent c6d7467b7b
commit f2550b08ee
5 changed files with 18 additions and 38 deletions

View File

@ -1,5 +1,9 @@
2003-10-29 Pavel Roskin <proski@gnu.org>
* extfs.h: Merge ...
* extfs.c: ... here.
* Makefile.am: Remove extfs.h.
* ftpfs.c: Use HAVE_STRUCT_LINGER_L_LINGER instead of
HAVE_STRUCT_LINGER.

View File

@ -23,7 +23,6 @@ BASICFILES = \
vfs.c
VFSHDRS = \
extfs.h \
ftpfs.h \
local.h \
mcfs.h \

View File

@ -19,7 +19,7 @@
License along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
/* Namespace: exports only vfs_extfs_ops */
/* Namespace: init_extfs */
#include <config.h>
#include <stdio.h>
@ -37,7 +37,6 @@
#include "utilvfs.h"
#include "../src/execute.h" /* For shell_execute */
#include "vfs.h"
#include "extfs.h"
#undef ERRNOR
#define ERRNOR(x,y) do { my_errno = x; return y; } while(0)
@ -76,6 +75,19 @@ struct pseudofile {
struct entry *entry;
};
struct archive {
int fstype;
char *name;
char *local_name;
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;
};
static struct entry *extfs_find_entry (struct entry *dir, char *name,
int make_dirs, int make_file);
static int extfs_which (struct vfs_class *me, char *path);

View File

@ -1,34 +0,0 @@
/* 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. */
struct archive {
int fstype;
char *name;
char *local_name;
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;
};
typedef struct archive extfs_archive; /* Do _not_ use this inside extfs.c */

View File

@ -48,7 +48,6 @@
#include "../src/wtools.h" /* input_dialog() */
#include "vfs.h"
#include "extfs.h" /* FIXME: we should not know anything about our modules */
#ifdef USE_NETCODE
# include "tcputil.h"
#endif