view netinstall/tar.h @ 952:c10d0c3f965f

[xemacs-hg @ 2002-08-02 16:54:11 by youngs] 2002-05-29 Katsumi Yamaoka <yamaoka@jpl.org> * mule/japan-util.el (setup-japanese-environment-internal): Use proper coding-systems. 2002-05-28 Katsumi Yamaoka <yamaoka@jpl.org> * mule/japan-util.el: Use `characterp' instead of `integerp' while defining char properties for katakana. * mule/mule-category.el: Clear the category table before defining categories for `predefined-category-list'. * mule/mule-cmds.el (finish-set-language-environment): Fit the charsets preferences in unicode conversions for the language environment. Suggested by ARISAWA Akihiro <ari@mbf.sphere.ne.jp>.
author youngs
date Fri, 02 Aug 2002 16:54:25 +0000
parents 3078fd1074e8
children
line wrap: on
line source

/*
 * Copyright (c) 2000, Red Hat, Inc.
 *
 *     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 of the License, or
 *     (at your option) any later version.
 *
 *     A copy of the GNU General Public License can be found at
 *     http://www.gnu.org/
 *
 * Written by DJ Delorie <dj@cygnus.com>
 *
 */

#ifndef __TAR_H_
#define __TAR_H_

/* Only one tarfile may be open at a time.  gzipped files handled
   automatically */

/* returns zero on success, nonzero on failure */
int	tar_open (char *pathname);

/* returns pointer to static buf containing name of next file */
char *	tar_next_file ();

/* byte position in [compressed] file */
int	tar_ftell ();

/* pass adjusted path, returns zero on success, nonzero on failure */
int	tar_read_file (char *path);

/* closes the file */
int	tar_close ();

/* pass path to tar file and from/to pairs for path prefix (NULLs at
   end , returns zero if completely successful, nonzero (counts
   errors) on failure */
int	tar_auto (char *pathname, char **map);

int	tar_mkdir_p (int isadir, char *path);

/*
extern int _tar_verbose;
extern FILE * _tar_vfile;
*/

#endif