untar.h

来自「开放源码的嵌入式开发环境」· C头文件 代码 · 共 50 行

H
50
字号
/* *  Written by: Jake Janovetz <janovetz@tempest.ece.uiuc.edu> * *  The license and distribution terms for this file may be *  found in the file LICENSE in this distribution or at *  http://www.rtems.com/license/LICENSE. * *  $Id: untar.h,v 1.6 2005/02/07 13:26:23 ralf Exp $ */#ifndef _RTEMS_UNTAR_H#define _RTEMS_UNTAR_H#include <stddef.h>#include <rtems/tar.h>#ifdef __cplusplusextern "C" {#endif#define UNTAR_SUCCESSFUL         0#define UNTAR_FAIL               1#define UNTAR_INVALID_CHECKSUM   2#define UNTAR_INVALID_HEADER     3int Untar_FromMemory(char *tar_buf, size_t size);int Untar_FromFile(char *tar_name);/************************************************************************** * This converts octal ASCII number representations into an * unsigned long.  Only support 32-bit numbers for now. *************************************************************************/extern unsigned long_rtems_octal2ulong(const char *octascii, size_t len);/************************************************************************ * Compute the TAR checksum and check with the value in * the archive.  The checksum is computed over the entire * header, but the checksum field is substituted with blanks. ************************************************************************/extern int_rtems_tar_header_checksum(const char *bufr);#ifdef __cplusplus}#endif#endif  /* _RTEMS_UNTAR_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?