2 * SPDX-License-Identifier: Beerware
4 * ----------------------------------------------------------------------------
5 * "THE BEER-WARE LICENSE" (Revision 42):
6 * <phk@FreeBSD.org> wrote this file. As long as you retain this notice you
7 * can do whatever you want with this stuff. If we meet some day, and you think
8 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
9 * ----------------------------------------------------------------------------
18 #define Name CTM_F_Name
21 #define Mode CTM_F_Mode
23 #define Count CTM_F_Count
24 #define Bytes CTM_F_Bytes
26 /* The qualifiers... */
27 #define File CTM_Q_Name_File
28 #define Dir CTM_Q_Name_Dir
29 #define New CTM_Q_Name_New
30 #define Subst CTM_Q_Name_Subst
31 #define After CTM_Q_MD5_After
32 #define Before CTM_Q_MD5_Before
33 #define Chunk CTM_Q_MD5_Chunk
34 #define Force CTM_Q_MD5_Force
36 static int ctmFM[] = /* File Make */
37 { Name|File|New|Subst, Uid, Gid, Mode,
38 MD5|After|Chunk, Count, Bytes,0 };
40 static int ctmFS[] = /* File Substitute */
41 { Name|File|Subst, Uid, Gid, Mode,
42 MD5|Before|Force, MD5|After|Chunk, Count, Bytes,0 };
44 static int ctmFE[] = /* File Edit */
45 { Name|File|Subst, Uid, Gid, Mode,
46 MD5|Before, MD5|After, Count, Bytes,0 };
48 static int ctmFR[] = /* File Remove */
49 { Name|File|Subst, MD5|Before, 0 };
51 static int ctmAS[] = /* Attribute Substitute */
52 { Name|Subst, Uid, Gid, Mode, 0 };
54 static int ctmDM[] = /* Directory Make */
55 { Name|Dir|New , Uid, Gid, Mode, 0 };
57 static int ctmDR[] = /* Directory Remove */
60 struct CTM_Syntax Syntax[] = {