/freebsd/usr.sbin/nscd/ |
H A D | parser.c | 66 strbreak(char *str, char **fields, int fields_size) in strbreak() argument 74 ((*fields = in strbreak() 77 if ((*(*fields)) != '\0') { in strbreak() 78 ++fields; in strbreak() 373 char *fields[128]; in parse_config_file() local 393 field_count = strbreak(buffer, fields, sizeof(fields)); in parse_config_file() 399 switch (fields[0][0]) { in parse_config_file() 405 (strcmp(fields[0], "enable-cache") == 0) && in parse_config_file() 406 (check_cachename(fields[ in parse_config_file() [all...] |
/freebsd/contrib/ncurses/form/ |
H A D | frm_def.c | 128 FIELD **fields; in Disconnect_Fields() local 130 for (fields = form->field; *fields; fields++) in Disconnect_Fields() 132 if (form == (*fields)->form) in Disconnect_Fields() 133 (*fields)->form = (FORM *)0; in Disconnect_Fields() 157 Connect_Fields(FORM *form, FIELD **fields) in Connect_Fields() argument 163 T((T_CALLED("Connect_Fields(%p,%p)"), (void *)form, (void *)fields)); in Connect_Fields() 167 form->field = fields; in Connect_Fields() 171 if (!fields) in Connect_Fields() 176 for (field_cnt = 0; fields[field_cnt]; field_cnt++) in Connect_Fields() 178 if (fields[field_cnt]->form) in Connect_Fields() [all …]
|
/freebsd/sbin/ipf/libipf/ |
H A D | parsefields.c | 8 wordtab_t *f, *fields; in parsefields() local 12 fields = NULL; in parsefields() 30 if (fields == NULL) { in parsefields() 31 fields = malloc(2 * sizeof(*fields)); in parsefields() 33 fields = reallocarray(fields, num + 1, sizeof(*fields)); in parsefields() 34 if (fields == NULL) { in parsefields() 41 fields[num - 1].w_word = f->w_word; in parsefields() 43 fields[num - 1].w_word = t; in parsefields() 45 fields[num - 1].w_value = f->w_value; in parsefields() 46 fields[num].w_word = NULL; in parsefields() [all …]
|
H A D | printdstlistnode.c | 12 wordtab_t *fields) in printdstlistnode() argument 30 if (fields != NULL) { in printdstlistnode() 31 for (i = 0; fields[i].w_value != 0; i++) { in printdstlistnode() 33 if (fields[i + 1].w_value != 0) in printdstlistnode()
|
H A D | printpoolnode.c | 12 printpoolnode(ip_pool_node_t *np, int opts, wordtab_t *fields) argument 16 if (fields != NULL) { 17 for (i = 0; fields[i].w_value != 0; i++) { 19 if (fields[i + 1].w_value != 0)
|
H A D | printhashnode.c | 13 wordtab_t *fields) argument 25 if (fields != NULL) { 26 for (i = 0; fields[i].w_value != 0; i++) { 28 if (fields[i + 1].w_value != 0)
|
H A D | printdstlist.c | 12 ipf_dstnode_t *nodes, wordtab_t *fields) in printdstlist() argument 23 if (fields == NULL) in printdstlist() 45 node = printdstlistnode(n, bcopywrap, opts, fields); in printdstlist()
|
H A D | printhash.c | 13 wordtab_t *fields) in printhash() argument 26 if (fields == NULL) in printhash() 41 ipep = printhashnode(&iph, ipep, copyfunc, opts, fields); in printhash()
|
/freebsd/contrib/netbsd-tests/lib/libc/regex/ |
H A D | split.c | 45 split(char *string, char *fields[], int nfields, const char *sep) in split() argument 52 char **fp = fields; in split() 188 char *fields[MNF]; in main() local 197 (void) split(buf, fields, MNF, argv[2]); in main() 216 char *fields[NF]; in dosplit() local 219 nf = split(string, fields, NF, seps); in dosplit() 220 print(nf, NF, fields); in dosplit() 224 print(int nf, int nfp, char *fields) in print() argument 232 printf("\"%s\"%s", fields[fn], (fn+1 < nf) ? ", " : "\n"); in print() 309 char *fields[RNF+1]; in regress() local [all …]
|
/freebsd/lib/libc/regex/grot/ |
H A D | split.c | 14 split(char *string, char *fields[], int nfields, char *sep) in split() argument 21 char **fp = fields; in split() 157 char *fields[MNF]; in main() local 166 (void) split(buf, fields, MNF, argv[2]); in main() 185 char *fields[NF]; in dosplit() local 188 nf = split(string, fields, NF, seps); in dosplit() 189 print(nf, NF, fields); in dosplit() 193 print(int nf, int nfp, char *fields[]) in print() argument 201 printf("\"%s\"%s", fields[fn], (fn+1 < nf) ? ", " : "\n"); in print() 278 char *fields[RNF+1]; in regress() local [all …]
|
/freebsd/cddl/contrib/opensolaris/lib/pyzfs/common/ |
H A D | table.py | 31 def __init__(self, fields, rjustfields=()): argument 33 self.fields = fields 35 self.maxfieldlen = dict.fromkeys(fields, 0) 45 for f in self.fields: 53 d = dict([(f, f.upper()) for f in self.fields]) 59 for i in range(len(self.fields)): 64 if self.fields[i] in self.rjustfields: 68 mfl = self.maxfieldlen[self.fields[i]]
|
H A D | userspace.py | 52 if field not in options.fields: 152 fields = ("type", "name", "used", "quota") 172 type="choice", choices=fields, default=list(), 176 type="choice", choices=fields, #-s sets the default 188 options.fields = options.fields.split(",") 189 for f in options.fields: 190 if f not in fields: 243 t = zfs.table.Table(options.fields, rjustfields)
|
/freebsd/tools/test/stress2/tools/ |
H A D | calc_mem_use.pl | 27 (my @fields) = split /:|,/; 30 my $size = $fields[1]; 31 my $used = $fields[3]; 32 my $free = $fields[4]; 43 my @fields; 44 @fields = split(/\s+/, $line); 45 my $memuse_s = $fields[1];
|
/freebsd/crypto/openssl/test/recipes/ |
H A D | 80-test_cmp_http.t | 249 my @fields = grep /\S/, split ",", $line; 250 s/^<EMPTY>$// for (@fields); # used for proxy="" 251 s/^\s+// for (@fields); # remove leading whitespace from elements 252 s/\s+$// for (@fields); # remove trailing whitespace from elements 253 s/^\"(\".*?\")\"$/$1/ for (@fields); # remove escaping from quotation marks from elements 254 my $expected_result = $fields[$column]; 256 my $title = $fields[$description]; 259 @fields = grep {$_ ne 'BLANK'} @fields[$description + 1 .. @fields - 1]; 260 push @result, [$title, \@fields, $expected_result];
|
/freebsd/usr.bin/stat/tests/ |
H A D | stat_test.sh | 136 fields="st_dev st_ino st_mode st_nlink" 137 fields="$fields st_uid st_gid st_rdev st_size" 138 fields="$fields st_uid st_gid st_mode" 139 fields="$fields st_atime st_mtime st_ctime st_birthtime" 140 fields="$fields st_blksize st_blocks st_flags" 151 for field in $fields; do
|
/freebsd/sys/dev/bnxt/bnxt_en/ |
H A D | convert_hsi.pl | 191 my @fields = @$macrosref; 260 foreach my $extra_field (@fields) { 299 my @fields=(); 308 push @fields, $name; 322 foreach my $field (@fields) { 325 print_single_val($field, $type{$field}, $max_field_len, $name, \%macros, \@macros, \@fields); 331 print_single_val($item, $type{$field}, $max_field_len, $name, \%macros, \@macros, \@fields); 336 print_single_val($field, $type{$field}, $max_field_len, $name, \%macros, \@macros, \@fields);
|
/freebsd/contrib/less/ |
H A D | mkutable | 64 my @fields = split /;/; 65 next if not @fields; 67 my $codes = $fields[0]; 74 if ($fields[1] =~ /, First>$/) { 79 if ($fields[1] =~ /, Last>$/) { 86 my $type = $fields[$type_field];
|
/freebsd/sys/fs/cd9660/ |
H A D | cd9660_rrip.c | 90 ana->fields &= ~ISO_SUSP_ATTR; in cd9660_rrip_attr() 188 ana->fields = 0; in cd9660_rrip_slink() 203 ana->fields &= ~ISO_SUSP_SLINK; in cd9660_rrip_slink() 259 ana->fields &= ~ISO_SUSP_ALTNAME; in cd9660_rrip_altname() 269 ana->fields &= ~ISO_SUSP_ALTNAME; in cd9660_rrip_altname() 302 ana->fields &= ~(ISO_SUSP_CLINK|ISO_SUSP_PLINK); in cd9660_rrip_pclink() 314 ana->fields = 0; in cd9660_rrip_reldir() 371 ana->fields &= ~ISO_SUSP_TSTAMP; in cd9660_rrip_tstamp() 397 ana->fields &= ~ISO_SUSP_DEVICE; in cd9660_rrip_device() 407 ana->fields &= isonum_711(p->flags)|~0xff; /* don't touch high bits */ in cd9660_rrip_idflag() [all …]
|
/freebsd/sys/arm64/coresight/ |
H A D | coresight_acpi.c | 252 const union acpi_object *fields; in cs_acpi_record_endpoint() local 261 fields = link->Package.Elements; in cs_acpi_record_endpoint() 262 if (fields[0].Type != ACPI_TYPE_INTEGER || in cs_acpi_record_endpoint() 263 fields[1].Type != ACPI_TYPE_INTEGER || in cs_acpi_record_endpoint() 264 fields[2].Type != ACPI_TYPE_LOCAL_REFERENCE || in cs_acpi_record_endpoint() 265 fields[3].Type != ACPI_TYPE_INTEGER) in cs_acpi_record_endpoint() 268 handle = fields[2].Reference.Handle; in cs_acpi_record_endpoint() 269 dir = fields[3].Integer.Value; in cs_acpi_record_endpoint()
|
/freebsd/tools/tools/mtxstat/ |
H A D | mtxstat.pl | 84 my @fields = split(' ', $_, @names); 85 next unless @fields; 88 $entry{$_} = ($_ eq 'name') ? shift(@fields) : 0.0 + shift(@fields);
|
/freebsd/contrib/llvm-project/lldb/bindings/interface/ |
H A D | SBTypeExtensions.i | 62 num_fields = property(GetNumberOfFields, None, doc='''A read only property that returns number of fields in this type as an integer.''') 78 '''An accessor function that returns a list() that contains all fields in a lldb.SBType object.''' 85 '''An accessor function that returns a list() that contains all fields in a lldb.SBType object.''' 86 fields = [] 88 fields.append(self.GetFieldAtIndex(idx)) 89 return fields 92 '''An accessor function that returns a list() that contains all members (base classes and fields) in a lldb.SBType object in ascending bit offset order.''' 95 fields = self.get_fields_array() 117 for field in fields: 139 fields [all...] |
/freebsd/contrib/tzcode/ |
H A D | zic.c | 185 static void inleap(char ** fields, int nfields); 186 static void inlink(char ** fields, int nfields); 187 static void inrule(char ** fields, int nfields); 188 static bool inzcont(char ** fields, int nfields); 189 static bool inzone(char ** fields, int nfields); 247 ** Which fields are which on a Zone line. 264 ** Which fields are which on a Zone continuation line. 297 ** Which fields are which on a Link line. 307 ** Which fields are which on a Leap line. 319 /* Expires lines are like Leap lines, except without CORR and ROLL fields 1759 char *fields[MAX_FIELDS]; infile() local 1885 inrule(char ** fields,int nfields) inrule() argument 1918 inzone(char ** fields,int nfields) inzone() argument 1950 inzcont(char ** fields,int nfields) inzcont() argument 1960 inzsub(char ** fields,int nfields,bool iscont) inzsub() argument 2050 getleapdatetime(char ** fields,bool expire_line) getleapdatetime() argument 2123 inleap(char ** fields,int nfields) inleap() argument 2149 inexpires(char ** fields,int nfields) inexpires() argument 2160 inlink(char ** fields,int nfields) inlink() argument [all...] |
/freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/NativePDB/ |
H A D | UdtRecordCompleter.cpp | 373 for (const auto &member : field->fields) { in AddMember() 411 for (const auto &field : m_record.record.fields) { in FinishRecord() 448 auto &fields = pair.second; in ConstructRecord() local 474 if (fields.size() == 1) { in ConstructRecord() 475 uint64_t end_offset = offset + fields.back()->bit_size; in ConstructRecord() 476 parent->fields.push_back(std::move(fields.back())); in ConstructRecord() 482 end_offset_map[end_offset].push_back(parent->fields.back().get()); in ConstructRecord() 486 parent->fields.push_back(std::make_unique<Member>(Member::Union)); in ConstructRecord() 487 parent = parent->fields.back().get(); in ConstructRecord() 493 for (auto &field : fields) { in ConstructRecord() [all …]
|
/freebsd/sys/arm64/arm64/ |
H A D | identcpu.c | 2038 const struct mrs_field *fields; member 2047 .fields = field_name##_fields, \ 2232 const struct mrs_field *fields; in get_kernel_reg_masked() local 2238 fields = user_regs[i].fields; in get_kernel_reg_masked() 2239 for (int j = 0; fields[j].type != 0; j++) { in get_kernel_reg_masked() 2241 fields[j].type, val, fields[j].width, in get_kernel_reg_masked() 2242 fields[j].shift, fields[j].sign); in get_kernel_reg_masked() 2298 const struct mrs_field *fields; in update_special_regs() local 2327 fields = user_regs[i].fields; in update_special_regs() 2328 for (j = 0; fields[j].type != 0; j++) { in update_special_regs() [all …]
|
/freebsd/sbin/ping/tests/ |
H A D | test_ping.py | 131 src: sc.scapy.fields.SourceIPField, 133 icmp_type: sc.scapy.fields.ByteEnumField, 134 icmp_code: sc.scapy.fields.MultiEnumField, 136 ihl: Optional[sc.scapy.fields.BitField] = None, 137 flags: Optional[sc.scapy.fields.FlagsField] = 0, 139 oip_ihl: Optional[sc.scapy.fields.BitField] = None, 143 icmp_pptr: sc.scapy.fields.ByteField = 0, 144 icmp_gwaddr: sc.scapy.fields.IPField = "0.0.0.0", 145 icmp_nextmtu: sc.scapy.fields.ShortField = 0, 149 icmp_mask: sc.scapy.fields.IPField = "0.0.0.0",
|