zftape-eof.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:2k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. #ifndef _ZFTAPE_EOF_H
  2. #define _ZFTAPE_EOF_H
  3. /*
  4.  * Copyright (C) 1994-1995 Bas Laarhoven.
  5.  * adaptaed for zftape 1996, 1997 by Claus Heine
  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, or (at your option)
  9.  any later version.
  10.  This program is distributed in the hope that it will be useful,
  11.  but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  GNU General Public License for more details.
  14.  You should have received a copy of the GNU General Public License
  15.  along with this program; see the file COPYING.  If not, write to
  16.  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  *
  18.  * $Source: /homes/cvs/ftape-stacked/ftape/zftape/zftape-eof.h,v $
  19.  * $Revision: 1.2 $
  20.  * $Date: 1997/10/05 19:19:03 $
  21.  *
  22.  *      Definitions and declarations for the end of file markers
  23.  *      for the QIC-40/80 floppy-tape driver for Linux.
  24.  */
  25. #include <linux/ftape-header-segment.h>
  26. #include "../zftape/zftape-buffers.h"
  27. /*  failed sector log size (only used if format code != 4).
  28.  */
  29. typedef union {
  30. ft_fsl_entry mark;
  31. __u32 entry;
  32. } eof_mark_union;
  33.  
  34. /*      ftape-eof.c defined global vars.
  35.  */
  36. extern int zft_nr_eof_marks;
  37. extern eof_mark_union *zft_eof_map;
  38. /*      ftape-eof.c defined global functions.
  39.  */
  40. extern void zft_ftape_extract_file_marks(__u8* address);
  41. extern int  zft_ftape_validate_label(char* label);
  42. extern void zft_clear_ftape_file_marks(void);
  43. #endif