File: xfileio.h

package info (click to toggle)
funtools 1.4.7-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 14,736 kB
  • ctags: 9,152
  • sloc: ansic: 97,119; sh: 10,716; lex: 4,589; asm: 3,281; ada: 1,681; makefile: 1,418; pascal: 1,089; cpp: 1,001; cs: 879; perl: 161; python: 119; yacc: 64; sed: 32; csh: 10; tcl: 9
file content (23 lines) | stat: -rw-r--r-- 495 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 *
 * xfileio.h -- package-specific xfileio.h used by fitsy
 *
 */

#ifndef XFILEIO_H
#define XFILEIO_H

#include "gio.h"

/* define the basic IO routines */
typedef GIO File;
#define ftOpen(n, m)		gopen(n, m)
#define ftRead(f, b, s, n)	gread(f, b, s, n)
#define ftGets(f, b, n)		ggets(f, b, n)
#define ftWrite(f, b, s, n)	gwrite(f, b, s, n)
#define ftFlush(f)		gflush(f)
#define ftSeek(f, o, n)		(gseek(f, o, n), gtell(f))
#define ftTell(f)		gtell(f)
#define ftClose(fd)		gclose(fd)

#endif