/usr/include/casacore/mirlib/io.h is in casacore-dev 2.2.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | /************************************************************************/
/* */
/* A general header file for the various file and i/o handling */
/* routines. */
/* */
/* History: */
/* rjs Dark-ages Original version. */
/* rjs 20aug92 Correct "roundup" macro when rounding 0. */
/* rjs 15may96 Moved roundup macro elsewhere. */
/* pjt 28may02 Added H_INT8 */
/* pjt 17jun02 different MIR4 structures? */
/************************************************************************/
/* Binary items start with a sequence to allow routines to blindly determine
how to read them. The "binary_item" is a catch all with only indicates
that the data is binary valued, but does not hint at the format. */
#if !defined(MIR_IO_H)
#define MIR_IO_H
#include "hio.h"
#include <unistd.h>
#define ITEM_HDR_SIZE 4
#if 1
/* MIRIAD3 and below data structures */
static char binary_item[ITEM_HDR_SIZE] = {0,0,0,0},
real_item[ITEM_HDR_SIZE] = {0,0,0,H_REAL},
int_item[ITEM_HDR_SIZE] = {0,0,0,H_INT},
int2_item[ITEM_HDR_SIZE] = {0,0,0,H_INT2},
int8_item[ITEM_HDR_SIZE] = {0,0,0,H_INT8},
char_item[ITEM_HDR_SIZE] = {0,0,0,H_BYTE},
dble_item[ITEM_HDR_SIZE] = {0,0,0,H_DBLE},
cmplx_item[ITEM_HDR_SIZE] = {0,0,0,H_CMPLX};
#else
/* MIRIAD4 data structures - not finalized on this though */
static char binary_item[ITEM_HDR_SIZE] = {1,0,0,0},
real_item[ITEM_HDR_SIZE] = {1,0,0,H_REAL},
int_item[ITEM_HDR_SIZE] = {1,0,0,H_INT},
int2_item[ITEM_HDR_SIZE] = {1,0,0,H_INT2},
int8_item[ITEM_HDR_SIZE] = {1,0,0,H_INT8},
char_item[ITEM_HDR_SIZE] = {1,0,0,H_BYTE},
dble_item[ITEM_HDR_SIZE] = {1,0,0,H_DBLE},
cmplx_item[ITEM_HDR_SIZE] = {1,0,0,H_CMPLX};
#endif
#endif /* MIR_IO_H */
|