| 43 | | ## Make the specified type usable for |
|---|
| 44 | | ## lock files. |
|---|
| 45 | | ## </summary> |
|---|
| 46 | | ## <param name="type"> |
|---|
| 47 | | ## <summary> |
|---|
| 48 | | ## Type to be used for lock files. |
|---|
| 49 | | ## </summary> |
|---|
| 50 | | ## </param> |
|---|
| 51 | | # |
|---|
| 52 | | interface(`files_lock_file',` |
|---|
| 53 | | gen_require(` |
|---|
| 54 | | attribute lockfile; |
|---|
| 55 | | ') |
|---|
| 56 | | |
|---|
| 57 | | files_type($1) |
|---|
| 58 | | typeattribute $1 lockfile; |
|---|
| 59 | | ') |
|---|
| 60 | | |
|---|
| 61 | | ######################################## |
|---|
| 62 | | ## <summary> |
|---|
| 63 | | ## Make the specified type usable for |
|---|
| 64 | | ## filesystem mount points. |
|---|
| 65 | | ## </summary> |
|---|
| 66 | | ## <param name="type"> |
|---|
| 67 | | ## <summary> |
|---|
| 68 | | ## Type to be used for mount points. |
|---|
| 69 | | ## </summary> |
|---|
| 70 | | ## </param> |
|---|
| 71 | | # |
|---|
| 72 | | interface(`files_mountpoint',` |
|---|
| 73 | | gen_require(` |
|---|
| 74 | | attribute mountpoint; |
|---|
| 75 | | ') |
|---|
| 76 | | |
|---|
| 77 | | files_type($1) |
|---|
| 78 | | typeattribute $1 mountpoint; |
|---|
| 79 | | ') |
|---|
| 80 | | |
|---|
| 81 | | ######################################## |
|---|
| 82 | | ## <summary> |
|---|
| 83 | | ## Make the specified type usable for |
|---|
| 84 | | ## runtime process ID files. |
|---|
| 85 | | ## </summary> |
|---|
| 86 | | ## <param name="type"> |
|---|
| 87 | | ## <summary> |
|---|
| 88 | | ## Type to be used for PID files. |
|---|
| 89 | | ## </summary> |
|---|
| 90 | | ## </param> |
|---|
| 91 | | # |
|---|
| 92 | | interface(`files_pid_file',` |
|---|
| 93 | | gen_require(` |
|---|
| 94 | | attribute pidfile; |
|---|
| 95 | | ') |
|---|
| 96 | | |
|---|
| 97 | | files_type($1) |
|---|
| 98 | | typeattribute $1 pidfile; |
|---|
| 99 | | ') |
|---|
| 100 | | |
|---|
| 101 | | ######################################## |
|---|
| 102 | | ## <summary> |
|---|
| 103 | | ## Make the specified type a |
|---|
| 104 | | ## configuration file. |
|---|
| 105 | | ## </summary> |
|---|
| 106 | | ## <param name="file_type"> |
|---|
| 107 | | ## <summary> |
|---|
| 108 | | ## Type to be used as a configuration file. |
|---|
| 109 | | ## </summary> |
|---|
| 110 | | ## </param> |
|---|
| 111 | | # |
|---|
| 112 | | interface(`files_config_file',` |
|---|
| 113 | | gen_require(` |
|---|
| 114 | | attribute configfile; |
|---|
| 115 | | ') |
|---|
| 116 | | files_type($1) |
|---|
| 117 | | typeattribute $1 configfile; |
|---|
| 118 | | ') |
|---|
| 119 | | |
|---|
| 120 | | ######################################## |
|---|
| 121 | | ## <summary> |
|---|
| 122 | | ## Make the specified type a |
|---|
| 123 | | ## polyinstantiated directory. |
|---|
| 124 | | ## </summary> |
|---|
| 125 | | ## <param name="file_type"> |
|---|
| 126 | | ## <summary> |
|---|
| 127 | | ## Type of the file to be used as a |
|---|
| 128 | | ## polyinstantiated directory. |
|---|
| 129 | | ## </summary> |
|---|
| 130 | | ## </param> |
|---|
| 131 | | # |
|---|
| 132 | | interface(`files_poly',` |
|---|
| 133 | | gen_require(` |
|---|
| 134 | | attribute polydir; |
|---|
| 135 | | ') |
|---|
| 136 | | |
|---|
| 137 | | files_type($1) |
|---|
| 138 | | typeattribute $1 polydir; |
|---|
| 139 | | ') |
|---|
| 140 | | |
|---|
| 141 | | ######################################## |
|---|
| 142 | | ## <summary> |
|---|
| 143 | | ## Make the specified type a parent |
|---|
| 144 | | ## of a polyinstantiated directory. |
|---|
| 145 | | ## </summary> |
|---|
| 146 | | ## <param name="file_type"> |
|---|
| 147 | | ## <summary> |
|---|
| 148 | | ## Type of the file to be used as a |
|---|
| 149 | | ## parent directory. |
|---|
| 150 | | ## </summary> |
|---|
| 151 | | ## </param> |
|---|
| 152 | | # |
|---|
| 153 | | interface(`files_poly_parent',` |
|---|
| 154 | | gen_require(` |
|---|
| 155 | | attribute polyparent; |
|---|
| 156 | | ') |
|---|
| 157 | | |
|---|
| 158 | | files_type($1) |
|---|
| 159 | | typeattribute $1 polyparent; |
|---|
| 160 | | ') |
|---|
| 161 | | |
|---|
| 162 | | ######################################## |
|---|
| 163 | | ## <summary> |
|---|
| 164 | | ## Make the specified type a |
|---|
| 165 | | ## polyinstantiation member directory. |
|---|
| 166 | | ## </summary> |
|---|
| 167 | | ## <param name="file_type"> |
|---|
| 168 | | ## <summary> |
|---|
| 169 | | ## Type of the file to be used as a |
|---|
| 170 | | ## member directory. |
|---|
| 171 | | ## </summary> |
|---|
| 172 | | ## </param> |
|---|
| 173 | | # |
|---|
| 174 | | interface(`files_poly_member',` |
|---|
| 175 | | gen_require(` |
|---|
| 176 | | attribute polymember; |
|---|
| 177 | | ') |
|---|
| 178 | | |
|---|
| 179 | | files_type($1) |
|---|
| 180 | | typeattribute $1 polymember; |
|---|
| 181 | | ') |
|---|
| 182 | | |
|---|
| 183 | | ######################################## |
|---|
| 184 | | ## <summary> |
|---|
| 185 | | ## Make the domain use the specified |
|---|
| 186 | | ## type of polyinstantiated directory. |
|---|
| 187 | | ## </summary> |
|---|
| 188 | | ## <param name="domain"> |
|---|
| 189 | | ## <summary> |
|---|
| 190 | | ## Domain using the polyinstantiated |
|---|
| 191 | | ## directory. |
|---|
| 192 | | ## </summary> |
|---|
| 193 | | ## </param> |
|---|
| 194 | | ## <param name="file_type"> |
|---|
| 195 | | ## <summary> |
|---|
| 196 | | ## Type of the file to be used as a |
|---|
| 197 | | ## member directory. |
|---|
| 198 | | ## </summary> |
|---|
| 199 | | ## </param> |
|---|
| 200 | | # |
|---|
| 201 | | interface(`files_poly_member_tmp',` |
|---|
| 202 | | gen_require(` |
|---|
| 203 | | type tmp_t; |
|---|
| 204 | | ') |
|---|
| 205 | | |
|---|
| 206 | | type_member $1 tmp_t:dir $2; |
|---|
| 207 | | ') |
|---|
| 208 | | |
|---|
| 209 | | ######################################## |
|---|
| 210 | | ## <summary> |
|---|
| | 65 | ## lock files. |
|---|
| | 66 | ## </summary> |
|---|
| | 67 | ## <param name="type"> |
|---|
| | 68 | ## <summary> |
|---|
| | 69 | ## Type to be used for lock files. |
|---|
| | 70 | ## </summary> |
|---|
| | 71 | ## </param> |
|---|
| | 72 | # |
|---|
| | 73 | interface(`files_lock_file',` |
|---|
| | 74 | gen_require(` |
|---|
| | 75 | attribute lockfile; |
|---|
| | 76 | ') |
|---|
| | 77 | |
|---|
| | 78 | files_type($1) |
|---|
| | 79 | typeattribute $1 lockfile; |
|---|
| | 80 | ') |
|---|
| | 81 | |
|---|
| | 82 | ######################################## |
|---|
| | 83 | ## <summary> |
|---|
| | 84 | ## Make the specified type usable for |
|---|
| | 85 | ## filesystem mount points. |
|---|
| | 86 | ## </summary> |
|---|
| | 87 | ## <param name="type"> |
|---|
| | 88 | ## <summary> |
|---|
| | 89 | ## Type to be used for mount points. |
|---|
| | 90 | ## </summary> |
|---|
| | 91 | ## </param> |
|---|
| | 92 | # |
|---|
| | 93 | interface(`files_mountpoint',` |
|---|
| | 94 | gen_require(` |
|---|
| | 95 | attribute mountpoint; |
|---|
| | 96 | ') |
|---|
| | 97 | |
|---|
| | 98 | files_type($1) |
|---|
| | 99 | typeattribute $1 mountpoint; |
|---|
| | 100 | ') |
|---|
| | 101 | |
|---|
| | 102 | ######################################## |
|---|
| | 103 | ## <summary> |
|---|
| | 104 | ## Make the specified type usable for |
|---|
| | 120 | ') |
|---|
| | 121 | |
|---|
| | 122 | ######################################## |
|---|
| | 123 | ## <summary> |
|---|
| | 124 | ## Make the specified type usable for |
|---|
| | 125 | ## runtime process ID files. |
|---|
| | 126 | ## </summary> |
|---|
| | 127 | ## <param name="type"> |
|---|
| | 128 | ## <summary> |
|---|
| | 129 | ## Type to be used for PID files. |
|---|
| | 130 | ## </summary> |
|---|
| | 131 | ## </param> |
|---|
| | 132 | # |
|---|
| | 133 | interface(`files_pid_file',` |
|---|
| | 134 | gen_require(` |
|---|
| | 135 | attribute pidfile; |
|---|
| | 136 | ') |
|---|
| | 137 | |
|---|
| | 138 | files_type($1) |
|---|
| | 139 | typeattribute $1 pidfile; |
|---|
| | 140 | ') |
|---|
| | 141 | |
|---|
| | 142 | ######################################## |
|---|
| | 143 | ## <summary> |
|---|
| | 144 | ## Make the specified type a |
|---|
| | 145 | ## configuration file. |
|---|
| | 146 | ## </summary> |
|---|
| | 147 | ## <param name="file_type"> |
|---|
| | 148 | ## <summary> |
|---|
| | 149 | ## Type to be used as a configuration file. |
|---|
| | 150 | ## </summary> |
|---|
| | 151 | ## </param> |
|---|
| | 152 | # |
|---|
| | 153 | interface(`files_config_file',` |
|---|
| | 154 | gen_require(` |
|---|
| | 155 | attribute configfile; |
|---|
| | 156 | ') |
|---|
| | 157 | files_type($1) |
|---|
| | 158 | typeattribute $1 configfile; |
|---|
| | 159 | ') |
|---|
| | 160 | |
|---|
| | 161 | ######################################## |
|---|
| | 162 | ## <summary> |
|---|
| | 163 | ## Make the specified type a |
|---|
| | 164 | ## polyinstantiated directory. |
|---|
| | 165 | ## </summary> |
|---|
| | 166 | ## <param name="file_type"> |
|---|
| | 167 | ## <summary> |
|---|
| | 168 | ## Type of the file to be used as a |
|---|
| | 169 | ## polyinstantiated directory. |
|---|
| | 170 | ## </summary> |
|---|
| | 171 | ## </param> |
|---|
| | 172 | # |
|---|
| | 173 | interface(`files_poly',` |
|---|
| | 174 | gen_require(` |
|---|
| | 175 | attribute polydir; |
|---|
| | 176 | ') |
|---|
| | 177 | |
|---|
| | 178 | files_type($1) |
|---|
| | 179 | typeattribute $1 polydir; |
|---|
| | 180 | ') |
|---|
| | 181 | |
|---|
| | 182 | ######################################## |
|---|
| | 183 | ## <summary> |
|---|
| | 184 | ## Make the specified type a parent |
|---|
| | 185 | ## of a polyinstantiated directory. |
|---|
| | 186 | ## </summary> |
|---|
| | 187 | ## <param name="file_type"> |
|---|
| | 188 | ## <summary> |
|---|
| | 189 | ## Type of the file to be used as a |
|---|
| | 190 | ## parent directory. |
|---|
| | 191 | ## </summary> |
|---|
| | 192 | ## </param> |
|---|
| | 193 | # |
|---|
| | 194 | interface(`files_poly_parent',` |
|---|
| | 195 | gen_require(` |
|---|
| | 196 | attribute polyparent; |
|---|
| | 197 | ') |
|---|
| | 198 | |
|---|
| | 199 | files_type($1) |
|---|
| | 200 | typeattribute $1 polyparent; |
|---|
| | 201 | ') |
|---|
| | 202 | |
|---|
| | 203 | ######################################## |
|---|
| | 204 | ## <summary> |
|---|
| | 205 | ## Make the specified type a |
|---|
| | 206 | ## polyinstantiation member directory. |
|---|
| | 207 | ## </summary> |
|---|
| | 208 | ## <param name="file_type"> |
|---|
| | 209 | ## <summary> |
|---|
| | 210 | ## Type of the file to be used as a |
|---|
| | 211 | ## member directory. |
|---|
| | 212 | ## </summary> |
|---|
| | 213 | ## </param> |
|---|
| | 214 | # |
|---|
| | 215 | interface(`files_poly_member',` |
|---|
| | 216 | gen_require(` |
|---|
| | 217 | attribute polymember; |
|---|
| | 218 | ') |
|---|
| | 219 | |
|---|
| | 220 | files_type($1) |
|---|
| | 221 | typeattribute $1 polymember; |
|---|
| | 222 | ') |
|---|
| | 223 | |
|---|
| | 224 | ######################################## |
|---|
| | 225 | ## <summary> |
|---|
| | 226 | ## Make the domain use the specified |
|---|
| | 227 | ## type of polyinstantiated directory. |
|---|
| | 228 | ## </summary> |
|---|
| | 229 | ## <param name="domain"> |
|---|
| | 230 | ## <summary> |
|---|
| | 231 | ## Domain using the polyinstantiated |
|---|
| | 232 | ## directory. |
|---|
| | 233 | ## </summary> |
|---|
| | 234 | ## </param> |
|---|
| | 235 | ## <param name="file_type"> |
|---|
| | 236 | ## <summary> |
|---|
| | 237 | ## Type of the file to be used as a |
|---|
| | 238 | ## member directory. |
|---|
| | 239 | ## </summary> |
|---|
| | 240 | ## </param> |
|---|
| | 241 | # |
|---|
| | 242 | interface(`files_poly_member_tmp',` |
|---|
| | 243 | gen_require(` |
|---|
| | 244 | type tmp_t; |
|---|
| | 245 | ') |
|---|
| | 246 | |
|---|
| | 247 | type_member $1 tmp_t:dir $2; |
|---|