1 /* ----> DO NOT REMOVE THE FOLLOWING NOTICE <---- 2 * 3 * Copyright (c) 2014-2015 Datalight, Inc. 4 * All Rights Reserved Worldwide. 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; use version 2 of the License. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but "AS-IS," WITHOUT ANY WARRANTY; without even the implied warranty 12 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License along 16 * with this program; if not, write to the Free Software Foundation, Inc., 17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 18 */ 19 20 /* Businesses and individuals that for commercial or other reasons cannot 21 * comply with the terms of the GPLv2 license may obtain a commercial license 22 * before incorporating Reliance Edge into proprietary software for 23 * distribution in any form. Visit http://www.datalight.com/reliance-edge for 24 * more information. 25 */ 26 27 /** @file 28 */ 29 #ifndef REDEXCLUDE_H 30 #define REDEXCLUDE_H 31 32 33 #define DELETE_SUPPORTED \ 34 ( \ 35 ( REDCONF_READ_ONLY == 0 ) \ 36 && ( ( REDCONF_API_POSIX == 1 ) \ 37 && ( ( REDCONF_API_POSIX_RMDIR == 1 ) \ 38 || ( REDCONF_API_POSIX_UNLINK == 1 ) \ 39 || ( ( REDCONF_API_POSIX_RENAME == 1 ) && ( REDCONF_RENAME_ATOMIC == 1 ) ) ) ) ) 40 41 #define TRUNCATE_SUPPORTED \ 42 ( \ 43 ( REDCONF_READ_ONLY == 0 ) \ 44 && ( ( ( REDCONF_API_POSIX == 1 ) && ( REDCONF_API_POSIX_FTRUNCATE == 1 ) ) \ 45 || ( ( REDCONF_API_FSE == 1 ) && ( REDCONF_API_FSE_TRUNCATE == 1 ) ) ) ) 46 47 #define FORMAT_SUPPORTED \ 48 ( \ 49 ( REDCONF_READ_ONLY == 0 ) \ 50 && ( ( ( REDCONF_API_POSIX == 1 ) && ( REDCONF_API_POSIX_FORMAT == 1 ) ) \ 51 || ( ( REDCONF_API_FSE == 1 ) && ( REDCONF_API_FSE_FORMAT == 1 ) ) \ 52 || ( REDCONF_IMAGE_BUILDER == 1 ) ) ) 53 54 #endif /* ifndef REDEXCLUDE_H */ 55