/freebsd-src/lib/libcasper/services/cap_grp/tests/ |
H A D | grp_test.c | 228 const char *cmds[7], *fields[4], *names[5]; in test_cmds() 231 fields[0] = "gr_name"; in test_cmds() 232 fields[1] = "gr_passwd"; in test_cmds() 233 fields[2] = "gr_gid"; in test_cmds() 234 fields[3] = "gr_mem"; in test_cmds() 252 * fields: gr_name, gr_passwd, gr_gid, gr_mem in test_cmds() 268 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == 0); in test_cmds() 280 * fields: gr_name, gr_passwd, gr_gid, gr_mem in test_cmds() 296 CHECK(cap_grp_limit_fields(capgrp, fields, 4) == 0); in test_cmds() 308 * fields in test_cmds() 229 const char *cmds[7], *fields[4], *names[5]; test_cmds() local 943 const char *fields[4]; test_fields() local [all...] |
/freebsd-src/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[1]) == 0) && in parse_config_file() 407 ((value = get_yesno(fields[2])) != -1)) { in parse_config_file() [all …]
|
/freebsd-src/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 …]
|
/freebsd-src/contrib/ncurses/form/ |
H A D | frm_def.c | 119 | Description : Break association between form and array of fields. 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() 147 | Function : static int Connect_Fields(FORM *form, FIELD **fields) 149 | Description : Set association between form and array of 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() [all …]
|
/freebsd-src/lib/libcasper/services/cap_pwd/tests/ |
H A D | pwd_test.c | 240 const char *cmds[7], *fields[10], *names[6]; in test_cmds() 243 fields[0] = "pw_name"; in test_cmds() 244 fields[1] = "pw_passwd"; in test_cmds() 245 fields[2] = "pw_uid"; in test_cmds() 246 fields[3] = "pw_gid"; in test_cmds() 247 fields[4] = "pw_change"; in test_cmds() 248 fields[5] = "pw_class"; in test_cmds() 249 fields[6] = "pw_gecos"; in test_cmds() 250 fields[7] = "pw_dir"; in test_cmds() 251 fields[ in test_cmds() 241 const char *cmds[7], *fields[10], *names[6]; test_cmds() local 1011 const char *fields[10]; test_fields() local [all...] |
/freebsd-src/sys/dev/dpaa2/ |
H A D | dpaa2_ni_dpkg.h | 116 /* Protocol fields */ 118 /* Ethernet fields */ 127 /* VLAN fields */ 139 /* IP (generic) fields */ 150 /* IPV4 fields */ 168 /* IPV6 fields */ 179 /* ICMP fields */ 187 /* IGMP fields */ 194 /* TCP fields */ 208 /* UDP fields */ [all …]
|
/freebsd-src/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | OptimizedStructLayout.h | 10 /// This file provides an interface for laying out a sequence of fields 13 /// requirements of the individual fields. The resulting layout may be 14 /// substantially more compact than simply laying out the fields in their 17 /// Fields may be pre-assigned fixed offsets. They may also be given sizes 19 /// way to describe that a field has interior padding that other fields may 31 /// fields in the original array may be moved further from one another. 76 /// After layout, this will be true of all the fields. 89 /// Compute a layout for a struct containing the given fields, making a 95 /// - Fields may be assigned a fixed offset in the layout. If there are 96 /// gaps among the fixed-offset fields, the algorithm may attempt [all …]
|
/freebsd-src/contrib/llvm-project/llvm/lib/Support/ |
H A D | OptimizedStructLayout.cpp | 21 static void checkValidLayout(ArrayRef<Field> Fields, uint64_t Size, in checkValidLayout() argument 25 for (auto &Field : Fields) { in checkValidLayout() 43 llvm::performOptimizedStructLayout(MutableArrayRef<Field> Fields) { in performOptimizedStructLayout() argument 49 for (auto &Field : Fields) { in performOptimizedStructLayout() 53 "fixed-offset fields are not a strict prefix of array"); in performOptimizedStructLayout() 55 "fixed-offset fields overlap or are not in order"); in performOptimizedStructLayout() 66 // Do an initial pass over the fields. in performOptimizedStructLayout() 70 auto FirstFlexible = Fields.begin(), E = Fields.end(); in performOptimizedStructLayout() 76 // If there are no flexible fields, we're done. in performOptimizedStructLayout() 79 if (!Fields.empty()) in performOptimizedStructLayout() [all …]
|
/freebsd-src/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | CXXFieldCollector.h | 26 /// Fields - Contains all FieldDecls collected during parsing of a C++ 27 /// class. When a nested class is entered, its fields are appended to the 28 /// fields of its parent class, when it is exited its fields are removed. 29 SmallVector<FieldDecl*, 32> Fields; variable 31 /// FieldCount - Each entry represents the number of fields collected during 42 // // At this point, Fields contains [x,y,q] decls and FieldCount contains 46 // // At this point, Fields contains [x,y,z] decls and FieldCount contains 56 Fields.push_back(D); in Add() 60 /// getCurNumField - The number of fields added to the currently parsed class. 66 /// getCurFields - Pointer to array of fields added to the currently parsed [all …]
|
/freebsd-src/cddl/contrib/opensolaris/lib/pyzfs/common/ |
H A D | table.py | 17 # fields enclosed by brackets "[]" replaced with your own identifying 28 __slots__ = "fields", "rjustfields", "maxfieldlen", "lines" 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]]
|
/freebsd-src/lib/libc/regex/grot/ |
H A D | split.c | 7 - split - divide a string into fields, like awk split() 8 == int split(char *string, char *fields[], int nfields, char *sep); 9 - fields: list is not NULL-terminated 10 - nfields: number of entries available in fields[] 13 int /* number of fields, including overflow */ 14 split(char *string, char *fields[], int nfields, char *sep) in split() argument 21 char **fp = fields; in split() 54 /* we have overflowed the fields vector -- just count them */ in split() 84 /* we have overflowed the fields vector -- just count them */ in split() 157 char *fields[MNF]; in main() local [all …]
|
/freebsd-src/contrib/ofed/libibmad/ |
H A D | mad.h | 386 * PortInfo fields 439 * NodeInfo fields 457 * SwitchInfo fields 481 * SwitchLinearForwardingTable fields 486 * SwitchMulticastForwardingTable fields 491 * NodeDescription fields 496 * Notice/Trap fields 648 * GUIDInfo fields 654 * ClassPortInfo fields 680 * PortXmitDataSL fields [all …]
|
/freebsd-src/contrib/llvm-project/lldb/source/Plugins/Process/Utility/ |
H A D | RegisterFlagsLinux_arm64.h |
|
/freebsd-src/contrib/netbsd-tests/lib/libc/regex/ |
H A D | split.c | 36 * split - divide a string into fields, like awk split() 38 * returns number of fields, including overflow 40 * fields[] list is not NULL-terminated 41 * nfields number of entries available in fields[] 45 split(char *string, char *fields[], int nfields, const char *sep) in split() argument 52 char **fp = fields; in split() 85 /* we have overflowed the fields vector -- just count them */ in split() 115 /* we have overflowed the fields vector -- just count them */ in split() 188 char *fields[MNF]; in main() local 197 (void) split(buf, fields, MNF, argv[2]); in main() [all …]
|
/freebsd-src/tools/test/stress2/tools/ |
H A D | calc_mem_use.pl | 27 (my @fields) = split /:|,/; 28 #print Data::Dumper::Dumper(\@fields); 29 next unless ($#fields >= 7); 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-src/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | PaddingChecker.cpp | 81 // This is the simplest correct case: a class with no fields and one base in visitRecord() 83 // & fields might interact, so we don't bother dealing with them. in visitRecord() 84 // TODO: Support other combinations of base classes and fields. in visitRecord() 127 // TODO: Recurse into the fields to see if they have excess padding. in visitVariable() 153 // have fields. in shouldSkipDecl() 169 // How do you reorder fields if you haven't got any? in shouldSkipDecl() 185 if (llvm::any_of(RD->fields(), IsTrickyField)) in shouldSkipDecl() 195 for (const FieldDecl *FD : RD->fields()) { in calculateBaselinePad() 198 // set the same as the other fields addresses. in calculateBaselinePad() 204 // total because reordering fields wo in calculateBaselinePad() 251 SmallVector<FieldInfo, 20> Fields; calculateOptimalPad() local [all...] |
/freebsd-src/sys/dev/enic/ |
H A D | vnic_enet.h | 41 #define VENETF_RSSHASH_IPV4 0x20 /* Hash on IPv4 fields */ 42 #define VENETF_RSSHASH_TCPIPV4 0x40 /* Hash on TCP + IPv4 fields */ 43 #define VENETF_RSSHASH_IPV6 0x80 /* Hash on IPv6 fields */ 44 #define VENETF_RSSHASH_TCPIPV6 0x100 /* Hash on TCP + IPv6 fields */ 45 #define VENETF_RSSHASH_IPV6_EX 0x200 /* Hash on IPv6 extended fields */ 46 #define VENETF_RSSHASH_TCPIPV6_EX 0x400 /* Hash on TCP + IPv6 ext. fields */ 56 #define VENETF_RSSHASH_UDPIPV4 0x100000 /* Hash on UDP + IPv4 fields */ 57 #define VENETF_RSSHASH_UDPIPV6 0x200000 /* Hash on UDP + IPv6 fields */
|
/freebsd-src/usr.bin/stat/tests/ |
H A D | stat_test.sh | 135 # The order/name of each of the fields is specified by stat(1) manpage. 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" 143 # - ... relies on set -eu to ensure that the fields are set, as 151 for field in $fields; do 154 ) || atf_fail 'One or more fields not set by stat(1)'
|
/freebsd-src/sys/amd64/vmm/intel/ |
H A D | vmcs.h | 116 /* 16-bit control fields */ 120 /* 16-bit guest-state fields */ 131 /* 16-bit host-state fields */ 140 /* 64-bit control fields */ 159 /* 64-bit read-only fields */ 162 /* 64-bit guest-state fields */ 173 /* 64-bit host-state fields */ 178 /* 32-bit control fields */ 198 /* 32-bit read-only data fields */ 208 /* 32-bit guest-state fields */ [all …]
|
/freebsd-src/contrib/llvm-project/llvm/lib/DebugInfo/Symbolize/ |
H A D | MarkupFilter.cpp | 106 reportLocation(Node.Fields[0].begin()); in tryMMap() 157 reportLocation(Node.Fields[0].begin()); in tryModule() 231 OS << llvm::demangle(Node.Fields.front().str()); in trySymbol() 243 std::optional<uint64_t> Addr = parseAddr(Node.Fields[0]); in tryPC() 250 if (Node.Fields.size() == 2) { in tryPC() 251 std::optional<PCType> ParsedType = parsePCType(Node.Fields[1]); in tryPC() 261 reportLocation(Node.Fields[0].begin()); in tryPC() 296 std::optional<uint64_t> FrameNumber = parseFrameNumber(Node.Fields[0]); in tryBackTrace() 300 std::optional<uint64_t> Addr = parseAddr(Node.Fields[1]); in tryBackTrace() 306 if (Node.Fields.size() == 3) { in tryBackTrace() [all …]
|
/freebsd-src/contrib/llvm-project/llvm/utils/TableGen/ |
H A D | SearchableTableEmitter.cpp | 9 // This tablegen backend emits a generic array initialized by specified fields, 69 SmallVector<GenericField, 1> Fields; 79 SmallVector<GenericField, 2> Fields; 86 for (const auto &Field : Fields) { in getFieldByName() 218 assert(Index.Fields.size() == 1); in getNumericKey() 221 // we check for IsInstruction before Enum-- these fields are not exclusive. 222 if (Index.Fields[0].IsInstruction) { 223 Record *TheDef = Rec->getValueAsDef(Index.Fields[0].Name); in compareBy() 226 if (Index.Fields[0].Enum) { in compareBy() 227 Record *EnumEntry = Rec->getValueAsDef(Index.Fields[ in compareBy() 67 SmallVector<GenericField, 1> Fields; global() member 76 SmallVector<GenericField, 2> Fields; global() member 701 std::vector<StringRef> Fields = TableRec->getValueAsListOfStrings("Fields"); run() local [all...] |
/freebsd-src/lib/libcasper/services/cap_pwd/ |
H A D | cap_pwd.c | 340 cap_pwd_limit_fields(cap_channel_t *chan, const char * const *fields, 351 if (nvlist_exists_nvlist(limits, "fields")) in cap_pwd_limit_fields() 352 nvlist_free_nvlist(limits, "fields"); in cap_pwd_limit_fields() 356 nvlist_add_null(nvl, fields[i]); in cap_pwd_limit_fields() 357 nvlist_move_nvlist(limits, "fields", nvl); in cap_pwd_limit_fields() 511 * If no limit was set on allowed fields, then all fields are allowed. in pwd_allowed_field() 513 if (!nvlist_exists_nvlist(limits, "fields")) in pwd_allowed_field() 516 limits = nvlist_get_nvlist(limits, "fields"); in pwd_allowed_field() 541 int fields; in pwd_pack() 341 cap_pwd_limit_fields(cap_channel_t * chan,const char * const * fields,size_t nfields) cap_pwd_limit_fields() argument 542 int fields; pwd_pack() local [all...] |
/freebsd-src/contrib/llvm-project/llvm/include/llvm/ObjectYAML/ |
H A D | ArchiveYAML.h | 37 Fields["Name"] = {"", 16}; in Child() 38 Fields["LastModified"] = {"0", 12}; in Child() 39 Fields["UID"] = {"0", 6}; in Child() 40 Fields["GID"] = {"0", 6}; in Child() 41 Fields["AccessMode"] = {"0", 8}; in Child() 42 Fields["Size"] = {"0", 10}; in Child() 43 Fields["Terminator"] = {"`\n", 2}; in Child() 46 MapVector<StringRef, Field> Fields; member
|
/freebsd-src/contrib/llvm-project/lldb/bindings/interface/ |
H A D | SBTypeExtensions.i | 62 …NumberOfFields, None, doc='''A read only property that returns number of fields in this type as an… 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 …nction that returns a list() that contains all members (base classes and fields) in a lldb.SBType … 95 fields = self.get_fields_array() 117 for field in fields: 139 …fields = property(get_fields_array, None, doc='''A read only property that returns a list() of lld… [all …]
|
/freebsd-src/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | Record.h | 77 llvm::iterator_range<const_field_iter> fields() const { in fields() function 78 return llvm::make_range(Fields.begin(), Fields.end()); in fields() 81 unsigned getNumFields() const { return Fields.size(); } in getNumFields() 82 const Field *getField(unsigned I) const { return &Fields[I]; } in getField() 109 Record(const RecordDecl *, BaseList &&Bases, FieldList &&Fields, 120 /// List of all the fields in the record. 121 FieldList Fields; 118 FieldList Fields; global() variable
|