Lines Matching defs:pos
67 char *pos, *end, *sstart;
81 pos = s;
84 while (*pos == ' ' || *pos == '\t' || *pos == '\r')
85 pos++;
88 if (*pos == '#' || *pos == '\n' || *pos == '\0')
95 sstart = os_strchr(pos, '"');
99 sstart = pos;
104 end = pos + os_strlen(pos) - 1;
107 while (end > pos &&
112 if (*pos == '\0')
116 *_pos = pos;
117 return pos;
166 char buf[2000], *pos, *pos2;
178 while (wpa_config_get_line(buf, sizeof(buf), f, line, &pos)) {
179 if (os_strcmp(pos, "}") == 0) {
184 pos2 = os_strchr(pos, '=');
187 "'%s'.", *line, pos);
202 if (wpa_config_set(ssid, pos, pos2, *line) < 0)
227 char buf[256], *pos, *pos2;
236 while (wpa_config_get_line(buf, sizeof(buf), f, line, &pos)) {
237 if (os_strcmp(pos, "}") == 0) {
242 pos2 = os_strchr(pos, '=');
245 "'%s'.", *line, pos);
260 if (wpa_config_set_cred(cred, pos, pos2, *line) < 0)
284 char buf[256], *pos;
292 while (wpa_config_get_line(buf, sizeof(buf), f, line, &pos)) {
293 if (os_strcmp(pos, "}") == 0) {
298 len = os_strlen(pos);
307 os_memcpy(encoded + encoded_len, pos, len);
365 char buf[512], *pos;
400 while (wpa_config_get_line(buf, sizeof(buf), f, &line, &pos)) {
401 if (os_strcmp(pos, "network={") == 0) {
422 } else if (os_strcmp(pos, "cred={") == 0) {
437 } else if (os_strncmp(pos, "blob-base64-", 12) == 0) {
438 if (wpa_config_process_blob(config, f, &line, pos + 12)
446 } else if (wpa_config_process_global(config, pos, line) < 0) {
448 "line '%s'.", line, pos);
970 const u8 *pos;
976 pos = wpabuf_head(val);
978 fprintf(f, "%02X", *pos++);