File: tarhead.h

package info (click to toggle)
libsolv 0.7.36-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,804 kB
  • sloc: ansic: 73,124; python: 871; perl: 742; tcl: 730; ruby: 705; sh: 263; cpp: 204; makefile: 42
file content (25 lines) | stat: -rw-r--r-- 560 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * Copyright (c) 2012, SUSE LLC
 *
 * This program is licensed under the BSD license, read LICENSE.BSD
 * for further information
 */

struct tarhead {
  FILE *fp;
  unsigned char blk[512];
  int type;
  long long length;
  char *path;
  int eof;
  int ispax;

  int off;
  int end;
};

extern void tarhead_init(struct tarhead *th, FILE *fp);
extern void tarhead_free(struct tarhead *th);
extern int tarhead_next(struct tarhead *th);
extern void tarhead_skip(struct tarhead *th);
extern size_t tarhead_gets(struct tarhead *th, char **line, size_t *allocp);