Lines Matching refs:dargs

72 	da_args		dargs;  in main()  local
104 dargs.optflag = 0; in main()
105 dargs.rootdir = NULL; in main()
106 dargs.devnames = NULL; in main()
107 dargs.devinfo = &devinfo; in main()
110 dargs.optflag |= DA_ADD; in main()
112 dargs.optflag |= DA_REMOVE; in main()
114 usage(&dargs, progname); in main()
133 if (process_args(argc, argv, &dargs, progname) != 0) { in main()
134 usage(&dargs, progname); in main()
138 if (dargs.optflag & DA_ADD) { in main()
139 if (check_args(&dargs) == NO_OVERRIDE) { in main()
142 dargs.devinfo->devname, gettext("\n")); in main()
143 usage(&dargs, progname); in main()
148 if (dargs.optflag & DA_DEFATTRS) in main()
149 rc = da_update_defattrs(&dargs); in main()
151 rc = da_update_device(&dargs); in main()
153 if ((rc != 0) && (!(dargs.optflag & DA_SILENT))) { in main()
157 else if (dargs.optflag & DA_ADD) in main()
160 else if (dargs.optflag & DA_REMOVE) in main()
170 process_args(int argc, char **argv, da_args *dargs, char *progname) in process_args() argument
177 devinfo = dargs->devinfo; in process_args()
192 if (!(dargs->optflag & DA_SILENT)) in process_args()
201 dargs->optflag |= DA_DEFATTRS; in process_args()
207 if (!(dargs->optflag & DA_SILENT)) in process_args()
216 dargs->optflag |= DA_FORCE; in process_args()
222 if (!(dargs->optflag & DA_SILENT)) in process_args()
233 if (!(dargs->optflag & DA_SILENT)) { in process_args()
245 if (dargs->optflag & DA_ADD) { in process_args()
252 dargs->optflag |= DA_SILENT; in process_args()
257 if (!(dargs->optflag & DA_SILENT)) in process_args()
271 if (dargs->optflag & DA_ADD) { in process_args()
278 if (!(dargs->optflag & DA_SILENT)) in process_args()
283 } else if (dargs->optflag & DA_REMOVE) { in process_args()
290 if (!(dargs->optflag & DA_SILENT)) in process_args()
305 if (!(dargs->optflag & DA_SILENT)) in process_args()
389 check_args(da_args *dargs) in check_args() argument
399 devinfo = dargs->devinfo; in check_args()
406 if (da && !(dargs->optflag & DA_FORCE)) { in check_args()
491 usage(da_args *dargs, char *progname) in usage() argument
493 if (dargs->optflag & DA_SILENT) in usage()
495 if (dargs->optflag & DA_ADD) in usage()
500 else if (dargs->optflag & DA_REMOVE) in usage()