Lines Matching defs:options

188 	 * Set options
234 * Process options. The resulting options string overwrites the
237 * XXX: This code doesn't do a good job of resolving options that are
240 * doesn't produce well defined behavior for options that may
653 * Set "opts" to the the original options for later comparison in
654 * cmp_....(). But strip the options which aren't returned by
656 * And strip the options which aren't set through mount: "logging",
674 * Set the options for ``/etc/mnttab'' to be the original
675 * options from main(); except for the option "f" and "remount".
691 "mount [-F ufs] [generic options] [-o suboptions] {special | mount_point}\n"));
719 /* strip empty options */
734 replace_opts(char *options, int flag, char *trueopt, char *falseopt)
741 (void) strcpy(tmptopts, options);
743 (void) strcpy(options, "");
747 if (options[0] != '\0')
748 (void) strcat(options, ",");
750 (void) strcat(options, f);
754 (void) strcat(options, trueopt);
756 (void) strcat(options, f);
759 (void) strcat(options, f);
762 if (options[0] != '\0')
763 (void) strcat(options, ",");
764 (void) strcat(options, flag ? trueopt : falseopt);
770 * a default value for the option. Rewrite the contents of options to include
772 * mentioned, append one or the other to options, according to the value of
780 * should certainly be used to handle new options that don't have
785 char *options,
796 * Transfer the contents of options to tmptopts, in anticipation of
797 * copying a subset of the contents back to options.
799 (void) strcpy(tmptopts, options);
801 (void) strcpy(options, "");
805 * options and updating the last seen occurrence of trueopt or
817 if (options[0] != '\0')
818 (void) strcat(options, ",");
819 (void) strcat(options, f);
827 if (options[0] != '\0')
828 (void) strcat(options, ",");
829 (void) strcat(options, last ? trueopt : falseopt);