home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / c / cpio11as.zip / CPIO.H < prev    next >
C/C++ Source or Header  |  1990-07-07  |  1KB  |  38 lines

  1. /* cpio.h  -  constants and structures for cpio.
  2.    Copyright (C) 1988, 1989, 1990 Free Software Foundation, Inc.
  3.  
  4.    This program is free software; you can redistribute it and/or modify
  5.    it under the terms of the GNU General Public License as published by
  6.    the Free Software Foundation; either version 1, or (at your option)
  7.    any later version.
  8.  
  9.    This program is distributed in the hope that it will be useful,
  10.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.    GNU General Public License for more details.
  13.  
  14.    You should have received a copy of the GNU General Public License
  15.    along with this program; if not, write to the Free Software
  16.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  17.  
  18. #define    TRUE    1
  19. #define FALSE    0
  20.  
  21. struct cpio_header
  22. {
  23.   unsigned short h_magic;
  24.   short h_dev;
  25.   unsigned short h_ino;
  26.   unsigned short h_mode;
  27.   unsigned short h_uid;
  28.   unsigned short h_gid;
  29.   unsigned short h_nlink;
  30.   short h_rdev;
  31.   unsigned short h_mtimes[2];
  32.   unsigned short h_namesize;
  33.   unsigned short h_filesizes[2];
  34.   unsigned long h_mtime;    /* Long-aligned copy of `h_mtimes'. */
  35.   unsigned long h_filesize;    /* Long-aligned copy of `h_filesizes'. */
  36.   char *h_name;
  37. };
  38.