Lines Matching defs:of

4  * The contents of this file are subject to the terms of the
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
17 * information: Portions Copyright [yyyy] [name of copyright owner]
29 * the grammar (see nwamcfg_grammar.y) builds up into commands, some of
66 /* usage of commands */
101 /* delimiter used for list of values */
105 /* the max number of values for an enum used by some properties in libnwam */
108 * All arrays/tables are null-terminated, rather than defining the length of
132 /* These *must* match the order of the RT1_ define's from nwamcfg.h */
142 /* These *must* match the order of the RT2_ define's from nwamcfg.h */
155 /* These *MUST* match the order of the PT_ define's from nwamcfg.h */
495 nerr("Out of memory");
549 * To fill in the rest of a string when user types the tab key.
550 * First digital number is the length of the string, the second digital number
551 * is the min number of chars that is needed to uniquely identify a string.
678 * This is a separate function rather than a set of define's because of the
707 return (gettext("Ends specification of a resource."));
713 return (gettext("Gets the value of the specified "
725 return (gettext("Sets the value of the specified "
768 /* Prints the line number of the current command if in command-file mode */
780 (void) fprintf(stderr, gettext("On line %d of %s:\n"),
828 * same. Since nwam_ncp_free() takes care of its ncus, no need to explicitly
949 * read_input() is the driver of this program. It is a wrapper around
1010 * If any command on a list of commands
1046 /* Calls the help_func() to print the usage of all commands */
1132 /* Retrive the name of the object from its handle */
1291 * Creates a new resource and enters the scope of that resource.
1292 * The new resource can also be a copy of an existing resource (-t option).
1447 /* do a walk of the properties if in interactive mode */
1467 /* Processing of return value for destroy_*_callback() */
1765 * Revert configuration of an instance to latest previous version.
1837 * of that resource.
1991 * If is_list_prop, break input_str into array of strings first.
2009 * max number of sub strings is half of string length + 1.
2015 nerr("Out of memory");
2022 * Break down input_str and save as array of sub strings.
2023 * Set num as the number of the sub strings.
2043 nerr("Out of memory");
2050 nerr("Out of memory");
2057 nerr("Out of memory");
2135 * Displaying/Skipping of properties
2151 * displayed only any of the rules is satisfied. This checking, however,
2160 /* The most number of values in pde_checkvals below */
2174 * This is taken care of in libnwam_ncp.c
2279 * value of a different property.
2317 /* get the value(s) of the (other) property to check */
2517 * be skipped during a walk (as determined by the value of some other
2714 /* arrays for values retrieved according to the type of value */
2720 /* pointer to function to generate string representation of value */
2784 FILE *of = (arg == NULL) ? stdout : arg;
2788 (void) fprintf(of, "\t%-*s\t", width, prop);
2790 (void) fprintf(of, "%s=", prop);
2793 output_prop_val(prop, values, of, B_TRUE);
2795 (void) fprintf(of, "\n");
2805 /* For locations because of longer property names */
3015 * Note that, here NCUs are treated as properties of NCPs.
3203 nwam_value_t values, FILE *of)
3209 (void) fprintf(of, "set ");
3210 output_propname(prop, values, of);
3225 FILE *of = arg;
3227 assert(of != NULL);
3238 (void) fprintf(of, "create ncu %s \"%s\"\n",
3242 * Because of dependencies between properties, they have to be
3252 vals, of);
3256 (void) fprintf(of, "end\n");
3267 FILE *of = arg;
3269 assert(of != NULL);
3280 (void) fprintf(of, "create ncp \"%s\"\n", name);
3284 ret = nwam_ncp_walk_ncus(ncp, export_ncu_callback, of,
3290 (void) fprintf(of, "end\n");
3303 FILE *of = arg;
3305 assert(of != NULL);
3310 (void) fprintf(of, "create enm \"%s\"\n", name);
3313 * Because of dependencies between properties, they have to be
3322 vals, of);
3326 (void) fprintf(of, "end\n");
3341 FILE *of = arg;
3343 assert(of != NULL);
3354 (void) fprintf(of, "create loc \"%s\"\n", name);
3357 * Because of dependencies between properties, they have to be
3366 vals, of);
3370 (void) fprintf(of, "end\n");
3385 FILE *of = arg;
3387 assert(of != NULL);
3392 (void) fprintf(of, "create wlan \"%s\"\n", name);
3395 * Because of dependencies between properties, they have to be
3405 props[i], vals, of);
3409 (void) fprintf(of, "end\n");
3427 FILE *of = NULL; /* either filename or stdout */
3454 of = stdout;
3463 if ((of = fopen(filepath, "w")) == NULL) {
3468 setbuf(of, NULL);
3475 (void) fprintf(of, "destroy -a\n");
3584 ret = nwam_walk_ncps(export_ncp_callback, of, 0, NULL);
3596 ret = export_ncp_callback(ncp_h, of);
3609 ret = nwam_ncp_walk_ncus(ncp_h, export_ncu_callback, of,
3624 ret = export_ncu_callback(ncu_h, of);
3633 ret = export_ncu_callback(ncu_h, of);
3641 ret = export_ncu_callback(ncu_h, of);
3649 ret = export_ncu_callback(ncu_h, of);
3660 ret = nwam_walk_locs(export_loc_callback, of,
3672 ret = export_loc_callback(loc_h, of);
3686 ret = nwam_walk_enms(export_enm_callback, of,
3695 ret = export_enm_callback(enm_h, of);
3709 ret = nwam_walk_known_wlans(export_wlan_callback, of,
3719 ret = export_wlan_callback(wlan_h, of);
3736 (void) fclose(of);
3809 * Clears value of a property.
4121 * Verify whether all properties of a resource are valid.
4163 nerr("Out of memory");
4180 * If any command on a list of commands give an error,