1 /*- 2 * Copyright (c) 1980 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.proprietary.c% 6 * 7 * @(#)f_errno.h 5.3 (Berkeley) 04/12/91 8 */ 9 10 /* 11 * f77 I/O error definitions 12 */ 13 14 #include <errno.h> 15 16 extern int errno; 17 extern int f_nerr; 18 19 #define F_ER 100 /* base offset of f77 error numbers */ 20 21 #define F_ERFMT 100 /* error in format */ 22 #define F_ERUNIT 101 /* illegal unit number */ 23 #define F_ERNOFIO 102 /* formatted i/o not allowed */ 24 #define F_ERNOUIO 103 /* unformatted i/o not allowed */ 25 #define F_ERNODIO 104 /* direct i/o not allowed */ 26 #define F_ERNOSIO 105 /* sequential i/o not allowed */ 27 #define F_ERNOBKSP 106 /* can't backspace file */ 28 #define F_ERBREC 107 /* off beginning of record */ 29 #define F_ERSTAT 108 /* can't stat file */ 30 #define F_ERREPT 109 /* no * after repeat count */ 31 #define F_EREREC 110 /* off end of record */ 32 #define F_ERTRUNC 111 /* truncation failed */ 33 #define F_ERLIO 112 /* incomprehensible list input */ 34 #define F_ERSPACE 113 /* out of free space */ 35 #define F_ERNOPEN 114 /* unit not connected */ 36 #define F_ERRICHR 115 /* invalid data for integer format term */ 37 #define F_ERLOGIF 116 /* invalid data for logical format term */ 38 #define F_ERNEWF 117 /* 'new' file exists */ 39 #define F_EROLDF 118 /* can't find 'old' file */ 40 #define F_ERSYS 119 /* opening too many files or unknown system error */ 41 #define F_ERSEEK 120 /* requires seek ability */ 42 #define F_ERARG 121 /* illegal argument */ 43 #define F_ERNREP 122 /* negative repeat count */ 44 #define F_ERILLOP 123 /* illegal operation for channel or device */ 45 #define F_ERRFCHR 124 /* invalid data for d,e,f, or g format term */ 46 #define F_ERNMLIST 125 /* illegal input for namelist */ 47 48 #define F_MAXERR (f_nerr + F_ER) 49