"Fossies" - the Fresh Open Source Software Archive

Member "coda-6.9.5/coda-src/venus/archive.h" (4 Apr 2008, 1072 Bytes) of package /linux/misc/old/coda-6.9.5.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "archive.h" see the Fossies "Dox" file reference documentation.

    1 /* BLURB gpl
    2 
    3                 Coda File System
    4                 Release 6
    5 
    6         Copyright (c) 2008 Carnegie Mellon University
    7             Additional copyrights listed below
    8 
    9 This  code  is  distributed "AS IS" without warranty of any kind under
   10 the terms of the GNU General Public Licence Version 2, as shown in the
   11 file  LICENSE.  The  technical and financial  contributors to Coda are
   12 listed in the file CREDITS.
   13 
   14             Additional copyrights
   15                 none currently
   16 #*/
   17 
   18 #ifndef _ARCHIVE_H_
   19 #define _ARCHIVE_H_
   20 
   21 #include <sys/types.h>
   22 #include <stdio.h>
   23 
   24 #define TAR_TAR   0 /* only supports 100 character path names */
   25 #define TAR_USTAR 1 /* up to 255 character path, only 100 character component */
   26 #define CPIO_ODC  2 /* short inode/uid numbers */
   27 #define CPIO_NEWC 3 /* 32-bit file size */
   28 
   29 extern int archive_type;
   30 
   31 int archive_write_entry(FILE *fp, ino_t inode, mode_t mode, uid_t uid,
   32             nlink_t nlink, time_t mtime, size_t filesize,
   33             const char *name, const char *linkname);
   34 int archive_write_data(FILE *fp, const char *container);
   35 int archive_write_trailer(FILE *fp);
   36 
   37 #endif /* _ARCHIVE_H_ */
   38