Home
last modified time | relevance | path

Searched refs:nfields (Results 1 – 25 of 50) sorted by relevance

12

/freebsd-12.1/contrib/netbsd-tests/lib/libc/regex/
H A Dsplit.c45 split(char *string, char *fields[], int nfields, const char *sep) in split() argument
74 fn = nfields; in split()
82 return(nfields - fn); in split()
86 fn = nfields; in split()
98 fn = nfields; in split()
106 return(nfields - fn); in split()
116 fn = nfields; in split()
132 if (fn == nfields+1) in split()
143 if (fn < nfields) in split()
156 if (fn < nfields) in split()
H A Dtest_regex.h41 int split(char *string, char *fields[], int nfields, const char *sep);
/freebsd-12.1/lib/libc/regex/grot/
H A Dsplit.c17 split(char *string, char *fields[], int nfields, char *sep) in split() argument
46 fn = nfields; in split()
54 return(nfields - fn); in split()
58 fn = nfields; in split()
70 fn = nfields; in split()
78 return(nfields - fn); in split()
88 fn = nfields; in split()
104 if (fn == nfields+1) in split()
115 if (fn < nfields) in split()
128 if (fn < nfields) in split()
/freebsd-12.1/contrib/tzdata/
H A Dzoneinfo2tdf.pl32 my $nfields = @fields;
33 $nfields >= 5 or warn "bad zone line";
34 if ($nfields > 6) {
37 splice(@fields, 5, $nfields-5, "@fields[5..$nfields-1]");
/freebsd-12.1/contrib/gdb/gdb/
H A Djv-lang.c338 int ninterfaces, nfields, nmethods; in java_link_class_type() local
375 nfields += TYPE_N_BASECLASSES (type); in java_link_class_type()
376 nfields++; /* Add one for dummy "class" field. */ in java_link_class_type()
377 TYPE_NFIELDS (type) = nfields; in java_link_class_type()
384 (B_TYPE *) TYPE_ALLOC (type, B_BYTES (nfields)); in java_link_class_type()
388 (B_TYPE *) TYPE_ALLOC (type, B_BYTES (nfields)); in java_link_class_type()
392 (B_TYPE *) TYPE_ALLOC (type, B_BYTES (nfields)); in java_link_class_type()
393 B_CLRALL (TYPE_FIELD_IGNORE_BITS (type), nfields); in java_link_class_type()
421 SET_FIELD_PHYSADDR (TYPE_FIELD (type, nfields), in java_link_class_type()
423 TYPE_FIELD_NAME (type, nfields) = "class"; in java_link_class_type()
[all …]
H A Dstabsread.c3186 int nfields = 0; in attach_fields_to_type() local
3197 nfields++; in attach_fields_to_type()
3208 TYPE_NFIELDS (type) = nfields; in attach_fields_to_type()
3218 (B_TYPE *) TYPE_ALLOC (type, B_BYTES (nfields)); in attach_fields_to_type()
3222 (B_TYPE *) TYPE_ALLOC (type, B_BYTES (nfields)); in attach_fields_to_type()
3226 (B_TYPE *) TYPE_ALLOC (type, B_BYTES (nfields)); in attach_fields_to_type()
3234 while (nfields-- > 0) in attach_fields_to_type()
3236 TYPE_FIELD (type, nfields) = fip->list->field; in attach_fields_to_type()
3240 SET_TYPE_FIELD_PRIVATE (type, nfields); in attach_fields_to_type()
3244 SET_TYPE_FIELD_PROTECTED (type, nfields); in attach_fields_to_type()
[all …]
H A Dremote-mips.c1717 int nfields; in mips_wait() local
1758 if (nfields >= 3) in mips_wait()
1774 if (nfields == 9) in mips_wait()
1813 if (nfields == 1 && rpc == 1) in mips_wait()
2406 int nfields; in common_breakpoint() local
2446 nfields = sscanf (buf, "0x%x b 0x0 0x%x", &rpid, &rerrflg); in common_breakpoint()
2447 if (nfields != 2) in common_breakpoint()
2497 nfields = sscanf (buf, "0x%x %c 0x%x 0x%x", in common_breakpoint()
2499 if (nfields != 4 || rcmd != cmd || rresponse > 255) in common_breakpoint()
2563 nfields = sscanf (buf, "0x%x %c 0x%x 0x%x", in common_breakpoint()
[all …]
H A Ddwarfread.c931 int nfields = 0; in struct_type() local
1060 nfields++; in struct_type()
1073 if (nfields == 0) in struct_type()
1079 TYPE_NFIELDS (type) = nfields; in struct_type()
1081 TYPE_ALLOC (type, sizeof (struct field) * nfields); in struct_type()
1083 for (n = nfields; list; list = list->next) in struct_type()
1649 int nfields = 0; in enum_type() local
1708 nfields++; in enum_type()
1729 if (nfields > 0) in enum_type()
1733 TYPE_NFIELDS (type) = nfields; in enum_type()
[all …]
H A Dhpread.c3735 nfields++; in hpread_read_struct_type()
4052 nfields++; in hpread_read_struct_type()
4087 nfields++; in hpread_read_struct_type()
4108 nfields++; in hpread_read_struct_type()
4129 nfields++; in hpread_read_struct_type()
4205 nfields++; in hpread_read_struct_type()
4278 TYPE_NFIELDS (type) = nfields; in hpread_read_struct_type()
4335 while (nfields-- > 0) in hpread_read_struct_type()
4338 SET_TYPE_FIELD_VIRTUAL (type, nfields); in hpread_read_struct_type()
4340 SET_TYPE_FIELD_PRIVATE (type, nfields); in hpread_read_struct_type()
[all …]
H A Dada-lang.c5952 int nfields, bit_len; in template_to_fixed_record_type() local
5956 nfields = TYPE_NFIELDS (type); in template_to_fixed_record_type()
5960 TYPE_NFIELDS (rtype) = nfields; in template_to_fixed_record_type()
5972 for (f = 0; f < nfields; f += 1) in template_to_fixed_record_type()
6062 int nfields; in template_to_static_fixed_type() local
6068 nfields = TYPE_NFIELDS (templ_type); in template_to_static_fixed_type()
6073 TYPE_NFIELDS (type) = nfields; in template_to_static_fixed_type()
6083 for (f = 0; f < nfields; f += 1) in template_to_static_fixed_type()
6117 int nfields = TYPE_NFIELDS (type); in to_record_with_fixed_variant_part() local
6129 sizeof (struct field) * nfields); in to_record_with_fixed_variant_part()
[all …]
H A Ddwarf2read.c550 int nfields; member
2579 fip->nfields++; in dwarf2_add_field()
2737 int nfields = fip->nfields; in dwarf2_attach_fields_to_type() local
2741 TYPE_NFIELDS (type) = nfields; in dwarf2_attach_fields_to_type()
2751 (B_TYPE *) TYPE_ALLOC (type, B_BYTES (nfields)); in dwarf2_attach_fields_to_type()
2780 while (nfields-- > 0) in dwarf2_attach_fields_to_type()
2786 SET_TYPE_FIELD_PRIVATE (type, nfields); in dwarf2_attach_fields_to_type()
2790 SET_TYPE_FIELD_PROTECTED (type, nfields); in dwarf2_attach_fields_to_type()
2804 if (nfields < fip->nbaseclasses) in dwarf2_attach_fields_to_type()
2810 SET_TYPE_FIELD_VIRTUAL (type, nfields); in dwarf2_attach_fields_to_type()
[all …]
H A Dcoffread.c1934 int nfields = 0; in coff_read_struct_type() local
1973 nfields++; in coff_read_struct_type()
1992 nfields++; in coff_read_struct_type()
2002 TYPE_NFIELDS (type) = nfields; in coff_read_struct_type()
2004 TYPE_ALLOC (type, sizeof (struct field) * nfields); in coff_read_struct_type()
2008 for (n = nfields; list; list = list->next) in coff_read_struct_type()
/freebsd-12.1/contrib/tzcode/zic/
H A Dzic.c831 nfields = 0;
837 ++nfields;
839 if (nfields == 0) {
937 const int nfields;
966 const int nfields;
971 if (nfields < ZONE_MINFIELDS || nfields > ZONE_MAXFIELDS) {
1011 const int nfields;
1013 if (nfields < ZONEC_MINFIELDS || nfields > ZONEC_MAXFIELDS) {
1023 const int nfields;
1104 const int nfields;
[all …]
/freebsd-12.1/contrib/one-true-awk/
H A Dlib.c69 makefields(1, nfields); in recinit()
297 if (i > nfields) in fldbld()
313 if (i > nfields) in fldbld()
333 if (i > nfields) in fldbld()
347 if (i > nfields) in fldbld()
384 if (n > nfields) in newfld()
395 if (n > nfields) /* fields after NF are empty */ in fieldadr()
402 int nf = 2 * nfields; in growfldtab()
414 makefields(nfields+1, nf); in growfldtab()
415 nfields = nf; in growfldtab()
[all …]
H A Dmain.c41 extern int nfields;
/freebsd-12.1/bin/sh/
H A Dmknodes.c82 int nfields; /* number of fields in the structure */ member
140 if (curstr && curstr->nfields > 0) in parsenode()
154 sp->nfields = 0; in parsenode()
177 fp = &curstr->field[curstr->nfields]; in parsefield()
206 curstr->nfields++; in parsefield()
239 for (i = sp->nfields, fp = sp->field ; --i >= 0 ; fp++) { in output()
322 for (i = sp->nfields ; --i >= 1 ; ) { in outfunc()
/freebsd-12.1/lib/libcasper/services/cap_grp/
H A Dcap_grp.h58 size_t nfields);
84 #define cap_grp_limit_fields(chan, fields, nfields) (0) argument
H A Dcap_grp.c391 size_t nfields) in cap_grp_limit_fields() argument
405 for (i = 0; i < nfields; i++) in cap_grp_limit_fields()
/freebsd-12.1/lib/libcasper/services/cap_pwd/
H A Dcap_pwd.h58 size_t nfields);
78 #define cap_pwd_limit_fields(chan, fields, nfields) (0) argument
H A Dcap_pwd.c345 size_t nfields) in cap_pwd_limit_fields() argument
359 for (i = 0; i < nfields; i++) in cap_pwd_limit_fields()
/freebsd-12.1/usr.bin/uniq/
H A Duniq.c291 int nchars, nfields; in skip() local
293 for (nfields = 0; *str != L'\0' && nfields++ != numfields; ) { in skip()
/freebsd-12.1/lib/libradius/
H A Dradlib.c493 int nfields; in rad_config() local
528 nfields = split(buf, fields, MAX_FIELDS, msg, sizeof msg); in rad_config()
529 if (nfields == -1) { in rad_config()
534 if (nfields == 0) in rad_config()
544 if (nfields >= MAX_FIELDS) { in rad_config()
550 nfields++; in rad_config()
551 for (i = nfields; --i > 0; ) in rad_config()
555 if (nfields < 3) { in rad_config()
/freebsd-12.1/contrib/apr-util/dbd/
H A Dapr_dbd_mysql.c715 int nfields, i; in dbd_mysql_pselect_internal() local
736 nfields = mysql_num_fields((*res)->res); in dbd_mysql_pselect_internal()
738 (*res)->bind = apr_palloc(pool, nfields*sizeof(MYSQL_BIND)); in dbd_mysql_pselect_internal()
739 length = apr_pcalloc(pool, nfields*sizeof(unsigned long)); in dbd_mysql_pselect_internal()
741 error = apr_palloc(pool, nfields*sizeof(my_bool)); in dbd_mysql_pselect_internal()
743 is_nullr = apr_pcalloc(pool, nfields*sizeof(my_bool)); in dbd_mysql_pselect_internal()
744 for ( i = 0; i < nfields; ++i ) { in dbd_mysql_pselect_internal()
/freebsd-12.1/lib/libtacplus/
H A Dtaclib.c843 int nfields; in tac_config() local
871 nfields = split(buf, fields, 4, msg, sizeof msg); in tac_config()
872 if (nfields == -1) { in tac_config()
877 if (nfields == 0) in tac_config()
879 if (nfields < 2) { in tac_config()
/freebsd-12.1/usr.sbin/bsdconfig/networking/share/
H A Dresolv.subr171 local search nfields ndots domain="${hostname#*.}"
174 IFS=. f_count_ifs nfields "$domain"
175 ndots=$(( $nfields - 1 ))

12