NCEPLIBS-bacio  2.5.0
clib.h File Reference

Include file to define variables for Fortran to C interface(s) revision history. More...

#include <stdlib.h>

Go to the source code of this file.

Macros

#define BA_ECLOSE   247
 Error in close. More...
 
#define BA_EDATANULL   102
 Data pointer is NULL. More...
 
#define BA_EFEWDATA   246
 Read or wrote fewer data than requested. More...
 
#define BA_EFILEOPEN   252
 Failure in opening file. More...
 
#define BA_EINTNAME   253
 Internal failure in name processing. More...
 
#define BA_ERANDW   254
 Tried to read and write in the same call. More...
 
#define BA_ERNOSTART   250
 Failed in read to find the 'start' location. More...
 
#define BA_EROANDWO   255
 Tried to open read only and write only. More...
 
#define BA_ERONWO   251
 Tried to read on a write-only file. More...
 
#define BA_EWANDRO   249
 Tried to write to a read only file. More...
 
#define BA_EWNOSTART   248
 Failed in write to find the 'start' location. More...
 
#define BA_NOERROR   0
 No error. More...
 
#define BACLOSE   8
 Close an open file. More...
 
#define BAOPEN_RONLY   1
 Open file read only. More...
 
#define BAOPEN_RW   4
 Open or create file for read/write. More...
 
#define BAOPEN_WONLY   2
 Open or create file for Write only. More...
 
#define BAOPEN_WONLY_APPEND   256
 Open or create a file for write only append. More...
 
#define BAOPEN_WONLY_TRUNC   128
 Open or create a file for write only, truncating existing contents. More...
 
#define BAREAD   16
 Read from an open file. More...
 
#define BAWRITE   32
 Write to an open file. More...
 
#define NOSEEK   64
 No seek ignore start parameter and do not call lseek(). More...
 

Detailed Description

Include file to define variables for Fortran to C interface(s) revision history.

Program History Log

Date Programmer Comments
16 March 1998 Robert Grumbine Initial.
25 March 1998 Robert Grumbine NOSEEK added
20 April 1998 Robert Grumbine CRAY compatibility added
Aug 2012 Jun Wang move system definition to makefile as a compiler option

Definition in file clib.h.

Macro Definition Documentation

◆ BA_ECLOSE

#define BA_ECLOSE   247

Error in close.

Definition at line 38 of file clib.h.

◆ BA_EDATANULL

#define BA_EDATANULL   102

Data pointer is NULL.

Definition at line 40 of file clib.h.

◆ BA_EFEWDATA

#define BA_EFEWDATA   246

Read or wrote fewer data than requested.

Definition at line 39 of file clib.h.

◆ BA_EFILEOPEN

#define BA_EFILEOPEN   252

Failure in opening file.

Definition at line 33 of file clib.h.

◆ BA_EINTNAME

#define BA_EINTNAME   253

Internal failure in name processing.

Definition at line 32 of file clib.h.

◆ BA_ERANDW

#define BA_ERANDW   254

Tried to read and write in the same call.

Definition at line 31 of file clib.h.

◆ BA_ERNOSTART

#define BA_ERNOSTART   250

Failed in read to find the 'start' location.

Definition at line 35 of file clib.h.

◆ BA_EROANDWO

#define BA_EROANDWO   255

Tried to open read only and write only.

Definition at line 30 of file clib.h.

◆ BA_ERONWO

#define BA_ERONWO   251

Tried to read on a write-only file.

Definition at line 34 of file clib.h.

◆ BA_EWANDRO

#define BA_EWANDRO   249

Tried to write to a read only file.

Definition at line 36 of file clib.h.

◆ BA_EWNOSTART

#define BA_EWNOSTART   248

Failed in write to find the 'start' location.

Definition at line 37 of file clib.h.

◆ BA_NOERROR

#define BA_NOERROR   0

No error.

Definition at line 29 of file clib.h.

◆ BACLOSE

#define BACLOSE   8

Close an open file.

Definition at line 20 of file clib.h.

◆ BAOPEN_RONLY

#define BAOPEN_RONLY   1

Open file read only.

Definition at line 17 of file clib.h.

◆ BAOPEN_RW

#define BAOPEN_RW   4

Open or create file for read/write.

Definition at line 19 of file clib.h.

◆ BAOPEN_WONLY

#define BAOPEN_WONLY   2

Open or create file for Write only.

Definition at line 18 of file clib.h.

◆ BAOPEN_WONLY_APPEND

#define BAOPEN_WONLY_APPEND   256

Open or create a file for write only append.

Definition at line 25 of file clib.h.

◆ BAOPEN_WONLY_TRUNC

#define BAOPEN_WONLY_TRUNC   128

Open or create a file for write only, truncating existing contents.

Definition at line 24 of file clib.h.

◆ BAREAD

#define BAREAD   16

Read from an open file.

Definition at line 21 of file clib.h.

◆ BAWRITE

#define BAWRITE   32

Write to an open file.

Definition at line 22 of file clib.h.

◆ NOSEEK

#define NOSEEK   64

No seek ignore start parameter and do not call lseek().

Definition at line 23 of file clib.h.