Main Page   Compound List   File List   Compound Members   File Members   Related Pages  

ccp4_sysdep.h File Reference

System-dependent definitions. More...

#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/times.h>
#include <stddef.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
#include <ctype.h>
#include <limits.h>
#include <float.h>
#include <fcntl.h>

Go to the source code of this file.

Defines

#define PATH_SEPARATOR   '/'
#define EXT_SEPARATOR   '.'
#define MAXFLEN   512
#define MAXFILES   16
#define DEFMODE   2
#define IRRELEVANT_OP   0
#define READ_OP   1
#define WRITE_OP   2
#define SEEK_SET   0
#define SEEK_CUR   1
#define SEEK_END   2
#define O_RDONLY   0x0000
#define O_WRONLY   0x0001
#define O_RDWR   0x0002
#define O_APPEND   0x0008
#define O_CREAT   0x0200
#define O_TRUNC   0x0400
#define O_TMP   0x0010
#define BYTE   0
#define INT16   1
#define INT32   6
#define FLOAT32   2
#define COMP32   3
#define COMP64   4
#define DFNTI_MBO   1
#define DFNTI_IBO   4
#define DFNTF_BEIEEE   1
#define DFNTF_VAX   2
#define DFNTF_CONVEXNATIVE   5
#define DFNTF_LEIEEE   4
#define DFNT_UINT   0
#define DFNT_SINT   1
#define DFNT_INT   2
#define DFNT_UCHAR   3
#define DFNT_CHAR   4
#define DFNT_FLOAT   5
#define DFNT_DOUBLE   6


Detailed Description

System-dependent definitions.

Author:
Charles Ballard, based in part on earlier versions

Define Documentation

#define DEFMODE   2
 

default mode access for random access files

#define DFNT_CHAR   4
 

char

#define DFNT_DOUBLE   6
 

double

#define DFNT_FLOAT   5
 

float

#define DFNT_INT   2
 

int

#define DFNT_SINT   1
 

short int

#define DFNT_UCHAR   3
 

unsigned char

#define DFNT_UINT   0
 

unsigned int

#define DFNTF_BEIEEE   1
 

big endian IEEE (canonical)

#define DFNTF_CONVEXNATIVE   5
 

Convex native floats

#define DFNTF_LEIEEE   4
 

little-endian IEEE format

#define DFNTF_VAX   2
 

Vax format

#define DFNTI_IBO   4
 

Intel byte order 2's compl

#define DFNTI_MBO   1
 

Motorola byte order 2's compl

#define MAXFILES   16
 

maximum number of files open symultaneously

#define MAXFLEN   512
 

the maximum length of a filename in CCP4

#define O_APPEND   0x0008
 

i/o mode: append to existing file

#define O_CREAT   0x0200
 

i/o mode: create file

#define O_RDONLY   0x0000
 

i/o mode: read-only

#define O_RDWR   0x0002
 

i/o mode: read and write

#define O_TMP   0x0010
 

i/o mode: scratch file

#define O_TRUNC   0x0400
 

i/o mode: truncate existing file

#define O_WRONLY   0x0001
 

i/o mode: write-only