annotate netinstall/tar.h @ 4614:afbfad080ddd

The URLs in our current config.guess and config.sub files are obsolete. Update to the latest upstream release to get correct URLs, as well as fixes and enhancements to those scripts.
author Jerry James <james@xemacs.org>
date Wed, 11 Feb 2009 11:09:35 -0700
parents 3078fd1074e8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
448
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
1 /*
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
2 * Copyright (c) 2000, Red Hat, Inc.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
3 *
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
4 * This program is free software; you can redistribute it and/or modify
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
5 * it under the terms of the GNU General Public License as published by
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
6 * the Free Software Foundation; either version 2 of the License, or
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
7 * (at your option) any later version.
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
8 *
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
9 * A copy of the GNU General Public License can be found at
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
10 * http://www.gnu.org/
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
11 *
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
12 * Written by DJ Delorie <dj@cygnus.com>
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
13 *
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
14 */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
15
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
16 #ifndef __TAR_H_
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
17 #define __TAR_H_
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
18
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
19 /* Only one tarfile may be open at a time. gzipped files handled
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
20 automatically */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
21
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
22 /* returns zero on success, nonzero on failure */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
23 int tar_open (char *pathname);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
24
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
25 /* returns pointer to static buf containing name of next file */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
26 char * tar_next_file ();
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
27
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
28 /* byte position in [compressed] file */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
29 int tar_ftell ();
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
30
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
31 /* pass adjusted path, returns zero on success, nonzero on failure */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
32 int tar_read_file (char *path);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
33
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
34 /* closes the file */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
35 int tar_close ();
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
36
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
37 /* pass path to tar file and from/to pairs for path prefix (NULLs at
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
38 end , returns zero if completely successful, nonzero (counts
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
39 errors) on failure */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
40 int tar_auto (char *pathname, char **map);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
41
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
42 int tar_mkdir_p (int isadir, char *path);
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
43
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
44 /*
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
45 extern int _tar_verbose;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
46 extern FILE * _tar_vfile;
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
47 */
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
48
3078fd1074e8 Import from CVS: tag r21-2-39
cvs
parents:
diff changeset
49 #endif