1 /* @(#)rock.h 1.3 14/04/29 Copyright 2003-2014 J. Schilling */ 2 /* 3 * Header file for the Rock Ridge encoder and parser 4 * 5 * Copyright (c) 2003-2014 J. Schilling 6 */ 7 /* 8 * This program is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License version 2 10 * as published by the Free Software Foundation. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License along with 18 * this program; see the file COPYING. If not, write to the Free Software 19 * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 */ 21 22 /* 23 * Defines for SUSP and Rock Ridge signature flags. 24 * The first block is defined by RRIP-1.09. 25 */ 26 #define RR_FLAG_PX 1 /* POSIX attributes */ 27 #define RR_FLAG_PN 2 /* POSIX device number */ 28 #define RR_FLAG_SL 4 /* Symlink */ 29 #define RR_FLAG_NM 8 /* Alternate Name */ 30 #define RR_FLAG_CL 16 /* Child link */ 31 #define RR_FLAG_PL 32 /* Parent link */ 32 #define RR_FLAG_RE 64 /* Relocated Direcotry */ 33 #define RR_FLAG_TF 128 /* Time stamp */ 34 35 #define RR_FLAG_SF 256 /* Sparse File */ 36 37 #define RR_FLAG_SP 1024 /* SUSP record */ 38 #define RR_FLAG_AA 2048 /* Apple Signature record */ 39 #define RR_FLAG_XA 4096 /* XA signature record */ 40 41 #define RR_FLAG_CE 8192 /* SUSP Continuation aerea */ 42 #define RR_FLAG_ER 16384 /* Extensions Reference for RR */ 43 #define RR_FLAG_RR 32768 /* RR Signature in every file */ 44 #define RR_FLAG_ZF 65535 /* Linux compression extension */ 45 46 /* 47 * Defines that control the behavior of the Rock Ridge encoder 48 */ 49 #define NEED_RE 1 /* Need Relocated Direcotry */ 50 #define NEED_PL 2 /* Need Parent link */ 51 #define NEED_CL 4 /* Need Child link */ 52 #define NEED_CE 8 /* Need Continuation Area */ 53 #define NEED_SP 16 /* Need SUSP record */ 54 #define DID_CHDIR 1024 /* Did chdir() to file dir */ 55