| /freebsd-12-stable/contrib/ntp/sntp/libopts/ |
| D | parse-duration.c | 104 parse_hr_min_sec (time_t start, cch_t * pz) in parse_hr_min_sec() argument 112 while ((*pz == ':') && (lpct++ <= 1)) in parse_hr_min_sec() 114 unsigned long v = str_const_to_ul (pz+1, &pz, 10); in parse_hr_min_sec() 126 while (isspace ((unsigned char)*pz)) in parse_hr_min_sec() 127 pz++; in parse_hr_min_sec() 128 if (*pz != NUL) in parse_hr_min_sec() 143 cch_t * pz = *ppz; in parse_scaled_value() local 150 val = str_const_to_ul (pz, &pz, 10); in parse_scaled_value() 153 while (isspace ((unsigned char)*pz)) in parse_scaled_value() 154 pz++; in parse_scaled_value() [all …]
|
| D | configfile.c | 460 char * pz = strstr(txt, "-->"); in handle_comment() local 461 if (pz != NULL) in handle_comment() 462 pz += 3; in handle_comment() 463 return pz; in handle_comment() 611 char * pz; in aoflags_directive() local 613 pz = SPN_WHITESPACE_CHARS(txt+1); in aoflags_directive() 614 txt = strchr(pz, '>'); in aoflags_directive() 617 size_t len = (unsigned)(txt - pz); in aoflags_directive() 620 memcpy(ftxt, pz, len); in aoflags_directive() 733 char * pz = *ppz; in parse_xml_encoding() local [all …]
|
| D | enum.c | 172 char * pz = VOIDP(name); in find_name() local 173 unsigned long val = strtoul(pz, &pz, 0); in find_name() 174 if ((*pz == NUL) && (val < name_ct)) in find_name() 347 char * pz; in set_memb_names() local 364 od->optArg.argString = pz = AGALOC(len, "enum"); in set_memb_names() 367 *pz = NUL; in set_memb_names() 380 memcpy(pz, nm_list[ix], nln); in set_memb_names() 381 pz += nln; in set_memb_names() 384 memcpy(pz, PLUS_STR, PLUS_STR_LEN); in set_memb_names() 385 pz += PLUS_STR_LEN; in set_memb_names() [all …]
|
| D | load.c | 41 char * pz = canonicalize_file_name(buf); in get_realpath() local 42 if (pz == NULL) in get_realpath() 45 name_len = strlen(pz); in get_realpath() 47 free(pz); in get_realpath() 51 memcpy(buf, pz, name_len + 1); in get_realpath() 52 free(pz); in get_realpath() 188 char const * pz; in add_prog_path() local 216 pz = strrchr(path, DIRCH); in add_prog_path() 222 if (pz == NULL) in add_prog_path() 227 dir_len = (pz - path) + 1; // + dir sep character in add_prog_path() [all …]
|
| D | tokenize.c | 128 char const * pz = str; in alloc_token_list() local 132 pz = BRK_WHITESPACE_CHARS(pz+1); in alloc_token_list() 133 pz = SPN_WHITESPACE_CHARS(pz); in alloc_token_list() 134 } while (*pz != NUL); in alloc_token_list() 136 res = malloc(sizeof(*res) + (size_t)(pz - str) in alloc_token_list()
|
| D | putshell.c | 228 char const * pz = strchr(str, APOSTROPHE); in print_quot_str() local 229 if (pz == NULL) in print_quot_str() 235 (void)fwrite(str, (size_t)(pz - str), (size_t)1, stdout); in print_quot_str() 242 str = print_quoted_apostrophes(pz); in print_quot_str() 279 char const * pz; in print_membership() local 286 pz = pOD->optArg.argString; in print_membership() 287 while (*pz != NUL) { in print_membership() 289 pz = SPN_PLUS_N_SPACE_CHARS(pz); in print_membership() 292 int ch = *(pz++); in print_membership() 296 else if (ch == NUL) { pz--; goto name_done; } in print_membership()
|
| D | nested.c | 570 char * pz = AGALOC(v_len+1, "h scan"); in scan_xml() local 571 memcpy(pz, val_str, v_len); in scan_xml() 572 pz[v_len] = NUL; in scan_xml() 573 add_nested(&(res_val->v.nestVal), xml_name, nm_len, pz, v_len); in scan_xml() 574 AGFREE(pz); in scan_xml() 830 char const * pz = *ppz; in get_special_char() local 835 if (*pz == '#') { in get_special_char() 839 pz++; in get_special_char() 840 if (*pz == 'x') { in get_special_char() 842 pz++; in get_special_char() [all …]
|
| D | numeric.c | 109 char * pz; in optionNumericVal() local 132 val = strtol(od->optArg.argString, &pz, 0); in optionNumericVal() 133 if ((pz == od->optArg.argString) || (errno != 0)) in optionNumericVal() 137 switch (*(pz++)) { in optionNumericVal() 138 case NUL: pz--; break; in optionNumericVal() 152 if (*pz != NUL) in optionNumericVal()
|
| D | init.c | 94 char const * pz = strrchr(pname, DIRCH); in validate_struct() local 98 if (pz != NULL) in validate_struct() 99 *pp = pz+1; in validate_struct() 103 pz = pathfind(getenv("PATH"), (char *)pname, "rx"); in validate_struct() 104 if (pz != NULL) in validate_struct() 105 pname = VOIDP(pz); in validate_struct()
|
| D | makeshell.c | 361 char const * pz = opts->pzPROGNAME; in emit_usage() local 366 if ((*pzPN++ = (char)tolower(*pz++)) == NUL) in emit_usage() 649 char * pz = name_bf + min_match_ct; in emit_match_expr() local 655 *pz = NUL; in emit_match_expr() 657 *pz++ = name[nm_ix++]; in emit_match_expr() 659 *pz = NUL; in emit_match_expr() 869 char * pz; in genshelloptUsage() 871 AGDUPSTR(pz, optionParseShellOptions->pzPROGNAME, "prog name"); in genshelloptUsage() 872 *pp = pz; in genshelloptUsage() 873 while (*pz != NUL) { in genshelloptUsage() [all …]
|
| D | boolean.c | 50 char * pz; in optionBooleanVal() local 64 long val = strtol(od->optArg.argString, &pz, 0); in optionBooleanVal() 65 if ((val != 0) || (*pz != NUL)) in optionBooleanVal()
|
| D | proto.h | 133 find_member_bit(tOptions * opts, tOptDesc * od, char const * pz, int len, 366 parse_hr_min_sec (time_t start, cch_t * pz); 372 parse_year_month_day (cch_t * pz, cch_t * ps); 378 parse_YMWD (cch_t * pz); 381 parse_hour_minute_second (cch_t * pz, cch_t * ps); 387 parse_HMS (cch_t * pz); 390 parse_time (cch_t * pz); 393 trim (char * pz); 399 parse_non_iso8601 (cch_t * pz); 465 prt_string(FILE * fp, char const * name, char const * pz);
|
| D | genshell.c | 386 static char * AO_gettext(char const * pz); 400 AO_gettext(char const * pz) in AO_gettext() argument 403 if (pz == NULL) in AO_gettext() 412 res = dgettext("libopts", pz); in AO_gettext() 413 if (res == pz) in AO_gettext() 414 res = (char *)VOIDP(_(pz)); in AO_gettext() 416 res = (char *)VOIDP(_(pz)); in AO_gettext() 418 res = (char *)VOIDP(_(pz)); in AO_gettext() 420 if (res == pz) in AO_gettext()
|
| D | genshell.h | 188 static inline char* aoGetsText(char const* pz) ATTRIBUTE_FORMAT_ARG(1); 189 static inline char* aoGetsText(char const* pz) { in aoGetsText() argument 190 if (pz == NULL) return NULL; in aoGetsText() 191 return (char*)gettext(pz); in aoGetsText()
|
| D | save.c | 52 char const * pz = strchr(dir, '>'); in find_dir_name() local 53 if (pz == NULL) in find_dir_name() 55 while (*(++pz) == '>') ; in find_dir_name() 56 pz += strspn(pz, " \t"); in find_dir_name() 57 dir = pz; in find_dir_name() 231 char const * pz = in prt_entry() local 240 space_ct = 17 - strlen(pz); in prt_entry() 241 fputs(pz, fp); in prt_entry() 363 prt_string(FILE * fp, char const * name, char const * pz) in prt_string() argument 367 int ch = ((int)*(pz++)) & 0xFF; in prt_string()
|
| D | text_mmap.c | 96 char * pz = mapinfo->txt_data; in load_text_file() local 99 ssize_t rdct = read(mapinfo->txt_fd, pz, sz); in load_text_file() 107 pz += rdct; in load_text_file() 111 *pz = NUL; in load_text_file()
|
| D | stack.c | 236 char * pz; in optionStackArg() local 256 AGDUPSTR(pz, od->optArg.argString, "stack arg"); in optionStackArg() 257 addArgListEntry(&(od->optCookie), VOIDP(pz)); in optionStackArg()
|
| /freebsd-12-stable/contrib/ntp/ntpsnmpd/ |
| D | ntpsnmpd-opts.c | 448 static char * AO_gettext(char const * pz); 462 AO_gettext(char const * pz) in AO_gettext() argument 465 if (pz == NULL) in AO_gettext() 474 res = dgettext("libopts", pz); in AO_gettext() 475 if (res == pz) in AO_gettext() 476 res = (char *)VOIDP(_(pz)); in AO_gettext() 478 res = (char *)VOIDP(_(pz)); in AO_gettext() 480 res = (char *)VOIDP(_(pz)); in AO_gettext() 482 if (res == pz) in AO_gettext()
|
| D | ntpsnmpd-opts.h | 216 static inline char* aoGetsText(char const* pz) ATTRIBUTE_FORMAT_ARG(1); 217 static inline char* aoGetsText(char const* pz) { in aoGetsText() argument 218 if (pz == NULL) return NULL; in aoGetsText() 219 return (char*)gettext(pz); in aoGetsText()
|
| /freebsd-12-stable/contrib/ntp/ntpdc/ |
| D | ntpdc-opts.c | 717 static char * AO_gettext(char const * pz); 731 AO_gettext(char const * pz) in AO_gettext() argument 734 if (pz == NULL) in AO_gettext() 743 res = dgettext("libopts", pz); in AO_gettext() 744 if (res == pz) in AO_gettext() 745 res = (char *)VOIDP(_(pz)); in AO_gettext() 747 res = (char *)VOIDP(_(pz)); in AO_gettext() 749 res = (char *)VOIDP(_(pz)); in AO_gettext() 751 if (res == pz) in AO_gettext()
|
| D | ntpdc-opts.h | 274 static inline char* aoGetsText(char const* pz) ATTRIBUTE_FORMAT_ARG(1); 275 static inline char* aoGetsText(char const* pz) { in aoGetsText() argument 276 if (pz == NULL) return NULL; in aoGetsText() 277 return (char*)gettext(pz); in aoGetsText()
|
| /freebsd-12-stable/contrib/ntp/ntpq/ |
| D | ntpq-opts.c | 762 static char * AO_gettext(char const * pz); 776 AO_gettext(char const * pz) in AO_gettext() argument 779 if (pz == NULL) in AO_gettext() 788 res = dgettext("libopts", pz); in AO_gettext() 789 if (res == pz) in AO_gettext() 790 res = (char *)VOIDP(_(pz)); in AO_gettext() 792 res = (char *)VOIDP(_(pz)); in AO_gettext() 794 res = (char *)VOIDP(_(pz)); in AO_gettext() 796 if (res == pz) in AO_gettext()
|
| D | ntpq-opts.h | 287 static inline char* aoGetsText(char const* pz) ATTRIBUTE_FORMAT_ARG(1); 288 static inline char* aoGetsText(char const* pz) { in aoGetsText() argument 289 if (pz == NULL) return NULL; in aoGetsText() 290 return (char*)gettext(pz); in aoGetsText()
|
| /freebsd-12-stable/contrib/ntp/sntp/ |
| D | sntp-opts.c | 1069 static char * AO_gettext(char const * pz); 1083 AO_gettext(char const * pz) in AO_gettext() argument 1086 if (pz == NULL) in AO_gettext() 1095 res = dgettext("libopts", pz); in AO_gettext() 1096 if (res == pz) in AO_gettext() 1097 res = (char *)VOIDP(_(pz)); in AO_gettext() 1099 res = (char *)VOIDP(_(pz)); in AO_gettext() 1101 res = (char *)VOIDP(_(pz)); in AO_gettext() 1103 if (res == pz) in AO_gettext()
|
| /freebsd-12-stable/contrib/ntp/util/ |
| D | ntp-keygen-opts.h | 359 static inline char* aoGetsText(char const* pz) ATTRIBUTE_FORMAT_ARG(1); 360 static inline char* aoGetsText(char const* pz) { in aoGetsText() argument 361 if (pz == NULL) return NULL; in aoGetsText() 362 return (char*)gettext(pz); in aoGetsText()
|