Lines Matching defs:string
238 static int in_string_table(char *stable[], int size, char *string);
258 * Macros to produce a quoted string containing the value of a
277 {"string", IPQOS_DATA_TYPE_STRING},
323 * o MT_ENOSTR (error message with system error string appended)
352 /* fill in format string */
385 * prefix message with appropriate severity string
407 * for errno message type suffix message with errno string
1857 /* action name / string */
3127 (void) fprintf(fp, "%s", name_val->sv.string);
3130 (void) fprintf(fp, ", %s", name_val->sv.string);
3595 return (originators[x].string);
3704 * a pointer to a string with the contents of str enclose in double quotes.
3741 * copy string into buffer with quotes.
3978 * returns a string containing module_name '.' name.
4007 * check if element with matching s1 and s2 string is in table table.
4061 /* ********************* string value manip fns ************************** */
4065 * searches through the str_val_nd_t list of string value pairs finding
4089 * add an entry with string string and value val to sv_entrys.
4095 char *string,
4101 IPQOSCDBG2(L1, "In add_str_val_entry: string: %s, val: %u\n", string,
4113 sv_entry->sv.string = malloc(strlen(string) + 1);
4114 if (sv_entry->sv.string == NULL) {
4119 (void) strcpy(sv_entry->sv.string, string);
4144 free(sve->sv.string);
4152 * finds the value associated with string and assigns it to value ref'd by
4154 * RETURNS: IPQOS_CONF_ERR if string not found, else IPQOS_CONF_SUCCESS.
4159 char *string,
4165 IPQOSCDBG1(L1, "In str_val_list_lookup: %s\n", string);
4170 if (strcmp(sv->sv.string, string) == 0) {
4192 * Reads a uid or username from string 'str' and assigns either the uid
4197 * RETURNS: IPQOS_CONF_ERR if a NULL string pointer is passed, the read uid
4220 * we have consumed the whole string.
4255 IPQOSCDBG1(L0, "In readrange: string: %s\n", range_st);
4347 * read whole array declaration string into buffer.
4350 * within another string.
4372 if (svalue == NULL) { /* missing value string */
4373 IPQOSCDBG0(L0, "Missing value string\n");
4604 * Case insensitively compares the string in str with IPQOS_CONF_TRUE_STR
4637 IPQOSCDBG1(L1, "In readproto: string: %s\n", proto_str);
4668 IPQOSCDBG1(L1, "In readport: string: %s\n", port_str);
4689 * Reads a curly brace, a string enclosed in double quotes, or a whitespace/
4690 * curly brace delimited string. If a double quote enclosed string the
4696 * for each of these token is set to point at the read string.
4853 ipqos_msg(MT_ERROR, gettext("Quoted string exceeds "
4861 /* find first whitespace, curl, newline or string end */
4880 /* if just read quoted string remove quote from remaining string */
4886 /* if not end of string, store rest for latter parsing */
4949 * or string end.
4989 IPQOSCDBG1(L1, "sscanf of value failed, string: %s\n",
5153 * Parses the string info_str into it's components. Its format is:
5183 IPQOSCDBG0(L0, "Null info string\n");
5200 * check we have another string.
5396 * and store them in a string table pointed to by perm_items,
5443 * read the name, extend the items string array
5444 * and store the string off the array.
5649 for (x = 0; nv_types[x].string[0]; x++) {
5650 if (strcmp(nv_types[x].string, typest) == 0) {
5658 if (nv_types[x].string[0] == '\0') {
5682 IPQOSCDBG2(L1, "read type: %s default: %s\n", nv_types[x].string,
5802 valst, nv_types[*type].string);
5828 * convert value string to appropriate type and add to nvlist
6112 nv_types[*type].string, lineno);
6952 * if next action string continue string set action to
6953 * IPP_ANAME_CONT, else if drop string IPP_ANAME_DROP
7690 * This function parses the parameter string version into a version of the
7691 * form "%u.%u" (as a sscanf format string). It then encodes this into an
7693 * RETURNS: -1 if an invalid string, else the integer encoding.
7703 IPQOSCDBG0(L0, "Failed to process version number string\n");
7762 * convert version string into int.
8411 * read version tag string.
8423 * read version number string.
9161 in_string_table(char *stable[], int size, char *string)
9164 IPQOSCDBG1(L1, "In in_string_table: search string %s\n", string);
9167 if (strcmp(stable[size], string) == 0) {
9168 IPQOSCDBG1(L1, "Found %s in string table\n", string);
9176 /* free the memory occupied by the string table ctable and its contents. */
9194 * makes a copy of a string table and returns a ptr to it.
9212 /* create copy of each string from stable1 in array */