4.10
Last change
on this file since 17c5077 was
17c5077,
checked in by Ralf Corsepius <ralf.corsepius@…>, on 06/13/10 at 03:38:52
|
2010-06-13 Ralf Corsépius <ralf.corsepius@…>
- include/rtems/tar.h, libcsupport/include/tar.h: Remove.
- configure.ac: Require toolchain to provide tar.h.
- libfs/src/imfs/imfs_load_tar.c, libmisc/untar/untar.h:
Use <tar.h> instead of <rtems/tar.h>.
|
-
Property mode set to
100644
|
File size:
1.4 KB
|
Line | |
---|
1 | /* |
---|
2 | * Written by: Jake Janovetz <janovetz@tempest.ece.uiuc.edu> |
---|
3 | * |
---|
4 | * The license and distribution terms for this file may be |
---|
5 | * found in the file LICENSE in this distribution or at |
---|
6 | * http://www.rtems.com/license/LICENSE. |
---|
7 | * |
---|
8 | * $Id$ |
---|
9 | */ |
---|
10 | |
---|
11 | #ifndef _RTEMS_UNTAR_H |
---|
12 | #define _RTEMS_UNTAR_H |
---|
13 | |
---|
14 | #include <stddef.h> |
---|
15 | #include <tar.h> |
---|
16 | |
---|
17 | #ifdef __cplusplus |
---|
18 | extern "C" { |
---|
19 | #endif |
---|
20 | |
---|
21 | #define UNTAR_SUCCESSFUL 0 |
---|
22 | #define UNTAR_FAIL 1 |
---|
23 | #define UNTAR_INVALID_CHECKSUM 2 |
---|
24 | #define UNTAR_INVALID_HEADER 3 |
---|
25 | |
---|
26 | |
---|
27 | int Untar_FromMemory(void *tar_buf, size_t size); |
---|
28 | int Untar_FromFile(const char *tar_name); |
---|
29 | |
---|
30 | /************************************************************************** |
---|
31 | * This converts octal ASCII number representations into an |
---|
32 | * unsigned long. Only support 32-bit numbers for now. |
---|
33 | *************************************************************************/ |
---|
34 | extern unsigned long |
---|
35 | _rtems_octal2ulong(const char *octascii, size_t len); |
---|
36 | |
---|
37 | /************************************************************************ |
---|
38 | * Compute the TAR checksum and check with the value in |
---|
39 | * the archive. The checksum is computed over the entire |
---|
40 | * header, but the checksum field is substituted with blanks. |
---|
41 | ************************************************************************/ |
---|
42 | extern int |
---|
43 | _rtems_tar_header_checksum(const char *bufr); |
---|
44 | |
---|
45 | #ifdef __cplusplus |
---|
46 | } |
---|
47 | #endif |
---|
48 | |
---|
49 | #endif /* _RTEMS_UNTAR_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.