File: graphfile_internal.h

package info (click to toggle)
pythontracer 8.10.16-1.1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 356 kB
  • ctags: 461
  • sloc: python: 441; ansic: 325; makefile: 9
file content (31 lines) | stat: -rw-r--r-- 548 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
26
27
28
29
30
31
#ifndef __graphfile_internal_h_
#define __graphfile_internal_h_

/* TODO: Clean this up into a 64-bit file access abstraction
 * library */
#include <sys/types.h>

#include <stdio.h>

#ifdef _LARGEFILE64_SOURCE
typedef off64_t graphfile_offset_t;
#define graphfile_seek lseek64
#else
typedef off_t graphfile_offset_t;
#define graphfile_seek lseek
#endif

struct graphfile_writer {
    FILE *file;
    graphfile_offset_t offset;
};

struct graphfile_reader {
    FILE *file;
};

struct graphfile_linkable {
    graphfile_offset_t offset;
};

#endif