/src/sys/sys/ |
container_of.h | 57 #define __validate_container_of(PTR, TYPE, FIELD) 0 58 #define __validate_const_container_of(PTR, TYPE, FIELD) 0 60 #define __validate_container_of(PTR, TYPE, FIELD) \ 62 offsetof(TYPE, FIELD)))->FIELD)) 63 #define __validate_const_container_of(PTR, TYPE, FIELD) \ 65 offsetof(TYPE, FIELD)))->FIELD)) 68 #define container_of(PTR, TYPE, FIELD) \ 69 ((TYPE *)(((char *)(PTR)) - offsetof(TYPE, FIELD)) \ [all...] |
/src/lib/libform/ |
form.h | 39 /* Define the types of field justification that can be used. */ 56 /* field options */ 57 #define O_VISIBLE (0x001) /* Field is visible */ 58 #define O_ACTIVE (0x002) /* Field is active in the form */ 59 #define O_PUBLIC (0x004) /* The contents entered into the field is echoed */ 60 #define O_EDIT (0x008) /* Can edit the field */ 61 #define O_WRAP (0x010) /* The field contents can line wrap */ 62 #define O_BLANK (0x020) /* Blank the field on modification */ 63 #define O_AUTOSKIP (0x040) /* Skip to next field when current is full */ 64 #define O_NULLOK (0x080) /* Field is allowed to contain no data * [all...] |
field.c | 1 /* $NetBSD: field.c,v 1.32 2021/04/13 13:13:03 christos Exp $ */ 32 __RCSID("$NetBSD: field.c,v 1.32 2021/04/13 13:13:03 christos Exp $"); 43 FIELD _formi_default_field = { 44 0, /* rows in the field */ 45 0, /* columns in the field */ 52 0, /* index of this field in form fields array. */ 53 0, /* number of buffers associated with this field */ 55 NO_JUSTIFICATION, /* justification style of the field */ 56 FALSE, /* set to true if field is in overlay mode */ 59 NULL, /* starting line in field (vert scroll) * 554 FIELD *field = (fptr == NULL)? &_formi_default_field : fptr; local in function:set_max_field 572 FIELD *field = (fptr == NULL)? &_formi_default_field : fptr; local in function:set_field_fore 701 FIELD *field = (fptr == NULL)? &_formi_default_field : fptr; local in function:set_new_page [all...] |
field_types.c | 40 extern FIELD _formi_default_field; 50 * Process the arguments, if any, for the field type. 113 * Set the field type of the field to be the one given. 116 set_field_type(FIELD *fptr, FIELDTYPE *type, ...) 119 FIELD *field; local in function:set_field_type 124 field = (fptr == NULL)? &_formi_default_field : fptr; 126 field->type = type; 127 _formi_create_field_args(type, &field->args, &type->link, &args 143 FIELD *field; local in function:field_type 157 FIELD *field; local in function:field_arg [all...] |
internals.h | 83 /* lines structure for the field - keeps start and ends and length of the 84 * lines in a field. 103 _formi_add_char(FIELD *cur, unsigned pos, char c); 113 _formi_init_field_xpos(FIELD *field); 121 _formi_redraw_field(FORM *form, int field); 131 _formi_validate_char(FIELD *field, char c); 135 _formi_wrap_field(FIELD *field, _FORMI_FIELD_LINES *pos) [all...] |
form.c | 40 extern FIELD _formi_default_field; 45 FALSE, /* make field list circular if true */ 56 current field changes */ 58 before current field changes */ 60 0, /* current field */ 65 {NULL, NULL}, /* sorted field list */ 302 set_form_fields(FORM *form, FIELD **fields) 340 /* set the page number of the field */ 362 FIELD ** 384 * Move the given field to the row and column given 389 FIELD *field = (fptr == NULL) ? &_formi_default_field : fptr; local in function:move_field [all...] |
type_ipv6.c | 30 * the sample code for the check field function, this function is 99.999% 51 * Check the contents of the field buffer are a valid Ipv6 address only. 54 ipv6_check_field(FIELD *field, char *args) 92 * field buffer to be the reformatted IPv6 address 94 set_field_buffer(field, 0, cleaned);
|
type_regex.c | 101 * Check the contents of the field buffer match the regex. 104 regex_check_field(FIELD *field, char *args) 107 (regexec(&((regex_args *) (void *) field->args)->compiled,
|
type_alnum.c | 92 * Check the contents of the field buffer are alphanumeric only. 95 alnum_check_field(FIELD *field, char *args) 100 width = ((alnum_args *) (void *) field->args)->width; 145 set_field_buffer(field, 0, new);
|
type_alpha.c | 94 * Check the contents of the field buffer are alphanumeric only. 97 alpha_check_field(FIELD *field, char *args) 102 width = ((alpha_args *) (void *) field->args)->width; 149 set_field_buffer(field, 0, new);
|
type_integer.c | 99 * Check the contents of the field buffer are digits only. 102 integer_check_field(FIELD *field, char *args) 112 precision = ((integer_args *) (void *) field->args)->precision; 113 min = ((integer_args *) (void *) field->args)->min; 114 max = ((integer_args *) (void *) field->args)->max; 152 /* re-set the field buffer to be the reformatted numeric */ 153 set_field_buffer(field, 0, new_buf);
|
type_enum.c | 45 trim_blanks(char *field); 60 * Find the first non-blank character at the end of a field, return the 64 trim_blanks(char *field) 68 i = (int) strlen(field); 74 while ((i > 0) && isblank((unsigned char)field[i])) 220 * Check the contents of the field buffer match one of the enum strings only. 223 enum_check_field(FIELD *field, char *args) 231 ta = (enum_args *) (void *) field->args; 239 set_field_buffer(field, 0, ta->choices[match_num]) [all...] |
internals.c | 91 _formi_do_char_validation(FIELD *field, FIELDTYPE *type, char c, int *ret_val); 93 _formi_do_validation(FIELD *field, FIELDTYPE *type, int *ret_val); 95 _formi_join_line(FIELD *field, _FORMI_FIELD_LINES **rowp, int direction); 97 _formi_hscroll_back(FIELD *field, _FORMI_FIELD_LINES *row, unsigned int amt); 99 _formi_hscroll_fwd(FIELD *field, _FORMI_FIELD_LINES *row, unsigned int amt) 3076 FIELD *field; local in function:_formi_field_choice [all...] |
type_ipv4.c | 58 * Check the contents of the field buffer are a valid IPv4 address only. 61 ipv4_check_field(FIELD *field, char *args) 160 /* re-set the field buffer to be the reformatted IPv4 address */ 161 set_field_buffer(field, 0, buf); 164 * Set the field buffer 1 to the dotted quad format regardless 167 if (field->nbuf > 1) 168 set_field_buffer(field, 1, buf1);
|
type_numeric.c | 99 * Check the contents of the field buffer are numeric only. A valid 103 numeric_check_field(FIELD *field, char *args) 113 precision = ((numeric_args *) (void *) field->args)->precision; 114 min = ((numeric_args *) (void *) field->args)->min; 115 max = ((numeric_args *) (void *) field->args)->max; 185 /* re-set the field buffer to be the reformatted numeric */ 186 set_field_buffer(field, 0, new_buf);
|
/src/sys/external/bsd/common/include/linux/ |
list.h | 271 #define list_entry(PTR, TYPE, FIELD) container_of(PTR, TYPE, FIELD) 272 #define list_first_entry(PTR, TYPE, FIELD) \ 273 list_entry(list_first((PTR)), TYPE, FIELD) 274 #define list_first_entry_or_null(PTR, TYPE, FIELD) \ 275 (list_empty((PTR)) ? NULL : list_entry(list_first((PTR)), TYPE, FIELD)) 276 #define list_last_entry(PTR, TYPE, FIELD) \ 277 list_entry(list_last((PTR)), TYPE, FIELD) 278 #define list_next_entry(ENTRY, FIELD) \ 279 list_entry(list_next(&(ENTRY)->FIELD), typeof(*(ENTRY)), FIELD [all...] |
/src/sys/external/bsd/drm2/include/linux/ |
llist.h | 53 #define llist_entry(NODE, TYPE, FIELD) container_of(NODE, TYPE, FIELD) 119 #define _llist_next(ENTRY, FIELD) \ 121 __typeof__((ENTRY)->FIELD.next) _NODE = \ 122 atomic_load_consume(&(ENTRY)->FIELD.next); \ 124 llist_entry(_NODE, __typeof__(*(ENTRY)), FIELD)); \ 132 #define llist_for_each_entry(ENTRY, NODE, FIELD) \ 135 llist_entry(NODE, typeof(*(ENTRY)), FIELD))); \ 137 (ENTRY) = _llist_next(ENTRY, FIELD)) 139 #define llist_for_each_entry_safe(ENTRY, TMP, NODE, FIELD) \ [all...] |
rbtree.h | 227 #define rbtree_postorder_for_each_entry_safe(ENTRY, TMP, ROOT, FIELD) \ 229 __typeof__(*(ENTRY)), FIELD); \ 232 &(ENTRY)->FIELD), __typeof__(*(ENTRY)), FIELD), \
|
/src/sys/arch/ia64/disasm/ |
disasm_decode.c | 60 switch (FIELD(bits, 34, 2)) { /* x2a */ 62 if (FIELD(bits, 33, 1) == 0) { /* ve */ 63 switch (FIELD(bits, 29, 4)) { /* x4 */ 65 if (FIELD(bits, 27, 2) <= 1) /* x2b */ 70 if (FIELD(bits, 27, 2) <= 1) /* x2b */ 75 if (FIELD(bits, 27, 2) == 0) /* x2b */ 80 switch (FIELD(bits, 27, 2)) { /* x2b */ 100 switch (FIELD(bits, 27, 2)) { /* x2b */ 126 if (FIELD(bits, 27, 2) == 1) /* x2b */ 134 switch (FIELD(bits, 29, 8)) { /* za + x2a + zb + x4 * [all...] |
disasm_extract.c | 60 switch (FIELD(i->i_bits, 28, 2)) { /* hint */ 80 switch (FIELD(i->i_bits, 34, 2)) { 101 switch (FIELD(bits, 33, 2)) { /* bwh */ 116 if (FIELD(bits, 12, 1)) /* ph */ 121 if (FIELD(bits, 35, 1)) /* dh */ 132 switch (FIELD(bits, 3, 2)) { /* ipwh, indwh */ 147 if (FIELD(bits, 5, 1)) /* ph */ 152 switch (FIELD(bits, 0, 3)) { /* pvec */ 179 if (FIELD(bits, 35, 1)) /* ih */ 1819 i->i_oper[op].o_value = FIELD(bits, o, l) [all...] |
disasm_int.h | 58 #define FIELD(i,o,l) ((uint32_t)_FLD64(i,o,l)) 59 #define OPCODE(i) FIELD(i, 37, 4) 61 #define QP(i) FIELD(i, 0, QP_BITS) 63 #define REG(i,r) FIELD(i, ((r) - 1) * REG_BITS + QP_BITS, REG_BITS)
|
/src/games/hack/ |
hack.o_init.c | 192 #define SAVE_NAME_FIELD(FIELD) \ 193 if (objects[i].FIELD) { \ 194 len = strlen(objects[i].FIELD) + 1; \ 196 bwrite(fd, objects[i].FIELD, len); \ 213 #define RESTORE_NAME_FIELD(FIELD) \ 214 if (objects[i].FIELD) { \ 216 objects[i].FIELD = alloc(len); \ 217 mread(fd, __UNCONST(objects[i].FIELD), len); \
|
/src/tests/fs/vfs/ |
t_vnops.c | 124 #define FIELD(FN) \ 132 FIELD(st_dev); 133 FIELD(st_mode); 134 FIELD(st_ino); 135 FIELD(st_nlink); 136 FIELD(st_uid); 137 FIELD(st_gid); 138 FIELD(st_rdev); 143 FIELD(st_size); 144 FIELD(st_blocks) [all...] |
/src/sys/dev/microcode/aic7xxx/ |
aicasm_symbol.h | 58 FIELD,
|
/src/usr.sbin/puffs/mount_psshfs/ |
node.c | 150 * every field that we might send to the sftp server. 156 #define CHECK(FIELD, TYPE) do { \ 157 if ((va->FIELD != (TYPE)PUFFS_VNOVAL) && \ 158 (va->FIELD != pn->pn_va.FIELD)) \ 162 #define CHECKID(FIELD, TYPE, DOMANGLE, MINE, MANGLED) do { \ 163 if ((va->FIELD != (TYPE)PUFFS_VNOVAL) && \ 164 (pn->pn_va.FIELD != \ 165 ((pctx->DOMANGLE && (va->FIELD == pctx->MINE)) \ 167 : va->FIELD))) \ [all...] |