1 /* 2 ccp4_file_err.h: header file with file handling error codes 3 Copyright (C) 2001 CCLRC, Charles Ballard 4 5 This library is free software: you can redistribute it and/or 6 modify it under the terms of the GNU Lesser General Public License 7 version 3, modified in accordance with the provisions of the 8 license to address the requirements of UK law. 9 10 You should have received a copy of the modified GNU Lesser General 11 Public License along with this library. If not, copies may be 12 downloaded from http://www.ccp4.ac.uk/ccp4license.php 13 14 This program is distributed in the hope that it will be useful, 15 but WITHOUT ANY WARRANTY; without even the implied warranty of 16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 GNU Lesser General Public License for more details. 18 */ 19 #ifndef _GUARD_FILE_ERR 20 #define _GUARD_FILE_ERR 21 22 #define CCP4_ERRNO(y) (CCP4_ERR_FILE | (y)) 23 #define CIO_Ok 0 24 #define CIO_BadMode 1 25 #define CIO_CantOpenFile 2 26 #define CIO_MaxFile 3 27 #define CIO_ReadFail 4 28 #define CIO_WriteFail 5 29 #define CIO_CloseFail 6 30 #define CIO_SeekFail 7 31 #define CIO_NullPtr 8 32 #define CIO_EOF 9 33 #define CIO_NoFile 10 34 #define CIO_NotOpen 11 35 #define CIO_UnlinkFail 12 36 37 #endif 38 39