Lines Matching defs:dc
60 dumpconf_t dc; /* current configuration */
103 * If it doesn't exist, we create an empty file and dc is
106 if (dconf_open(&dc, PATH_DEVICE, PATH_CONFIG, dcmode) == -1)
117 if (dconf_str2content(&dc, optarg) == -1)
122 if (dconf_str2device(&dc, optarg) == -1)
145 dc.dc_enable = DC_OFF;
157 if (dconf_str2savdir(&dc, optarg) == -1)
163 dc.dc_enable = DC_ON;
168 if (dconf_str2csave(&dc, optarg) == -1)
179 return (dconf_get_dumpsize(&dc) ? E_SUCCESS : E_ERROR);
185 return (dconf_write_uuid(&dc) ? E_SUCCESS : E_ERROR);
188 if (minfree_compute(dc.dc_savdir, minfstr, &minf) == -1)
190 if (minfree_write(dc.dc_savdir, minf) == -1)
203 if (dconf_update(&dc, 0) == -1)
204 (void) dconf_getdev(&dc);
205 if (dc.dc_readonly)
208 else if (dconf_write(&dc) == -1)
216 if (dc.dc_readonly) {
222 if (dconf_update(&dc, dflag) == -1 ||
223 dconf_write(&dc) == -1)
228 dconf_print(&dc, stdout);
230 if (dconf_close(&dc) == -1)