source: rtems/cpukit/libmisc/untar/untar.h @ 5fb9e2f

4.104.114.84.9
Last change on this file since 5fb9e2f was 5fb9e2f, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 4, 2007 at 7:32:54 PM

2007-09-04 Joel Sherrill <joel.sherrill@…>

  • libmisc/untar/untar.c, libmisc/untar/untar.h: Add const to char *. Use printk.
  • 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 <rtems/tar.h>
16
17#ifdef __cplusplus
18extern "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
27int Untar_FromMemory(const char *tar_buf, size_t size);
28int 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 *************************************************************************/
34extern 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 ************************************************************************/
42extern 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.