File: xfileio.h

package info (click to toggle)
funtools 1.4.4+dfsg2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 16,168 kB
  • ctags: 10,760
  • sloc: ansic: 87,238; sh: 9,727; lex: 4,595; asm: 3,281; ada: 1,681; makefile: 1,458; pascal: 1,089; cpp: 1,001; cs: 879; perl: 161; yacc: 64; sed: 32; csh: 10; tcl: 9
file content (23 lines) | stat: -rw-r--r-- 480 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
/*
 *
 * 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 Open(n, m)		gopen(n, m)
#define Read(f, b, s, n)	gread(f, b, s, n)
#define Gets(f, b, n)		ggets(f, b, n)
#define Write(f, b, s, n)	gwrite(f, b, s, n)
#define Flush(f)		gflush(f)
#define Seek(f, o, n)		(gseek(f, o, n), gtell(f))
#define Tell(f)			gtell(f)
#define Close(fd)		gclose(fd)

#endif