Home
last modified time | relevance | path

Searched refs:current (Results 1 – 25 of 3169) sorted by relevance

12345678910>>...127

/netbsd-src/external/gpl2/xcvs/dist/diff/
H A Dio.c82 sip (current, skip_test) in sip() argument
83 struct file_data *current; in sip()
87 if (current->desc < 0)
90 current->bufsize = sizeof (word);
91 current->buffer = xmalloc (current->bufsize);
95 current->bufsize = STAT_BLOCKSIZE (current->stat);
96 current->buffer = xmalloc (current->bufsize);
102 int oldmode = setmode (current->desc, O_BINARY);
104 ssize_t n = read (current->desc, current->buffer, current->bufsize);
106 pfatal_with_name (current->name);
[all …]
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
H A Dsanitizer_procmaps_linux.cc36 if (data_.current >= last) return false; in Next()
38 (char *)internal_memchr(data_.current, '\n', last - data_.current); in Next()
42 segment->start = ParseHex(&data_.current); in Next()
43 CHECK_EQ(*data_.current++, '-'); in Next()
44 segment->end = ParseHex(&data_.current); in Next()
45 CHECK_EQ(*data_.current++, ' '); in Next()
46 CHECK(IsOneOf(*data_.current, '-', 'r')); in Next()
48 if (*data_.current++ == 'r') segment->protection |= kProtectionRead; in Next()
49 CHECK(IsOneOf(*data_.current, '-', 'w')); in Next()
50 if (*data_.current++ == 'w') segment->protection |= kProtectionWrite; in Next()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_procmaps_linux.cpp35 if (data_.current >= last) return false; in Next()
37 (char *)internal_memchr(data_.current, '\n', last - data_.current); in Next()
41 segment->start = ParseHex(&data_.current); in Next()
42 CHECK_EQ(*data_.current++, '-'); in Next()
43 segment->end = ParseHex(&data_.current); in Next()
44 CHECK_EQ(*data_.current++, ' '); in Next()
45 CHECK(IsOneOf(*data_.current, '-', 'r')); in Next()
47 if (*data_.current++ == 'r') segment->protection |= kProtectionRead; in Next()
48 CHECK(IsOneOf(*data_.current, '-', 'w')); in Next()
49 if (*data_.current++ == 'w') segment->protection |= kProtectionWrite; in Next()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_procmaps_linux.cc33 if (data_.current >= last) return false; in Next()
35 (char *)internal_memchr(data_.current, '\n', last - data_.current); in Next()
39 segment->start = ParseHex(&data_.current); in Next()
40 CHECK_EQ(*data_.current++, '-'); in Next()
41 segment->end = ParseHex(&data_.current); in Next()
42 CHECK_EQ(*data_.current++, ' '); in Next()
43 CHECK(IsOneOf(*data_.current, '-', 'r')); in Next()
45 if (*data_.current++ == 'r') segment->protection |= kProtectionRead; in Next()
46 CHECK(IsOneOf(*data_.current, '-', 'w')); in Next()
47 if (*data_.current++ == 'w') segment->protection |= kProtectionWrite; in Next()
[all …]
/netbsd-src/external/gpl2/diffutils/dist/src/
H A Dio.c74 file_block_read (struct file_data *current, size_t size) in file_block_read() argument
76 if (size && ! current->eof) in file_block_read()
78 size_t s = block_read (current->desc, in file_block_read()
79 FILE_BUFFER (current) + current->buffered, size); in file_block_read()
81 pfatal_with_name (current->name); in file_block_read()
82 current->buffered += s; in file_block_read()
83 current->eof = s < size; in file_block_read()
99 sip (struct file_data *current, bool skip_test) in sip() argument
102 if (current->desc < 0) in sip()
105 current->bufsize = sizeof (word); in sip()
[all …]
/netbsd-src/external/gpl3/gcc/dist/gcc/
H A Dgengtype-state.cc166 void write_state_string_option (options_p current);
167 void write_state_type_option (options_p current);
168 void write_state_nested_option (options_p current);
169 void write_state_option (options_p current);
173 void write_state_scalar_type (type_p current);
174 void write_state_string_type (type_p current);
175 void write_state_callback_type (type_p current);
176 void write_state_undefined_type (type_p current);
177 void write_state_struct_union_type (type_p current, const char *kindstr);
178 void write_state_struct_type (type_p current);
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/gcc/
H A Dgengtype-state.c165 void write_state_string_option (options_p current);
166 void write_state_type_option (options_p current);
167 void write_state_nested_option (options_p current);
168 void write_state_option (options_p current);
172 void write_state_scalar_type (type_p current);
173 void write_state_string_type (type_p current);
174 void write_state_undefined_type (type_p current);
175 void write_state_struct_union_type (type_p current, const char *kindstr);
176 void write_state_struct_type (type_p current);
177 void write_state_user_struct_type (type_p current);
[all …]
/netbsd-src/external/mit/libcbor/dist/test/
H A Dstream_expectations.c12 struct test_assertion current() { in current() function
24 assert_true(current().expectation == UINT8_EQ); in uint8_callback()
25 assert_true(current().data.int8 == actual); in uint8_callback()
35 assert_true(current().expectation == UINT16_EQ); in uint16_callback()
36 assert_true(current().data.int16 == actual); in uint16_callback()
46 assert_true(current().expectation == UINT32_EQ); in uint32_callback()
47 assert_true(current().data.int32 == actual); in uint32_callback()
57 assert_true(current().expectation == UINT64_EQ); in uint64_callback()
58 assert_true(current().data.int64 == actual); in uint64_callback()
68 assert_true(current().expectation == NEGINT8_EQ); in negint8_callback()
[all …]
H A Dstream_expectations.c.erb16 struct test_assertion current()
31 assert_true(current().expectation == <%= type.upcase %>INT<%= width %>_EQ);
32 assert_true(current().data.int<%= width %> == actual);
45 assert_true(current().expectation == BSTRING_MEM_EQ);
46 assert_true(current().data.string.address == address);
47 assert_true(current().data.string.length == length);
58 assert_true(current().expectation == BSTRING_INDEF_START);
69 assert_true(current().expectation == INDEF_BREAK);
82 assert_true(current().expectation == <%= type.upcase %>_START);
83 assert_true(current().data.length == length);
[all …]
/netbsd-src/crypto/external/cpl/trousers/dist/src/tspi/daa/utils/
H A Dlist.c26 list->current = (node_t *) malloc (sizeof(struct _list_t)); in list_add()
27 if (list->current == NULL) { in list_add()
32 list->head = list->current; in list_add()
34 list->previous->next = list->current; in list_add()
35 list->current->obj = obj; in list_add()
36 list->current->next = NULL; in list_add()
37 list->previous = list->current; in list_add()
41 node_t *current; in list_dump() local
46 current = list->head; // go to first node in list_dump()
48 printf("%d\n", (int)current->obj); // print value at current node in list_dump()
[all …]
/netbsd-src/libexec/telnetd/
H A Dslc.c74 add_slc((unsigned char)i, slctab[i].current.flag, in send_slc()
75 slctab[i].current.val); in send_slc()
91 slctab[i].current.val = slctab[i].defset.val; in default_slc()
92 if (slctab[i].current.val == (cc_t)(_POSIX_VDISABLE)) in default_slc()
93 slctab[i].current.flag = SLC_NOSUPPORT; in default_slc()
95 slctab[i].current.flag = slctab[i].defset.flag; in default_slc()
120 slctab[i].current.flag = SLC_NOSUPPORT; in get_slc_defaults()
121 slctab[i].current.val = 0; in get_slc_defaults()
254 mylevel = slctab[func].current.flag & SLC_LEVELBITS; in process_slc()
261 if (hislevel == mylevel && (val == slctab[func].current.val || ack)) { in process_slc()
[all …]
/netbsd-src/external/mpl/bind/dist/lib/dns/
H A Drbt.c217 addonlevel(dns_rbtnode_t *node, dns_rbtnode_t *current, int order, in dns__rbtnode_getdistance()
235 dns_name_t current;
240 dns_name_init(&current, NULL);
244 node_name(node, &current);
245 len += current.length;
252 } while (!dns_name_isabsolute(&current));
404 dns_rbtnode_t **root, *parent, *child, *current, *new_current; in chain_name()
480 current = NULL; in dns_rbt_addnode()
488 current = child; in dns_rbt_addnode()
490 node_name(current, in dns_rbt_addnode()
285 dns_name_t current; dns__rbtnode_namelen() local
459 dns_rbtnode_t **root, *parent, *child, *current, *new_current; dns_rbt_addnode() local
806 dns_rbtnode_t *current, *last_compared; dns_rbt_findnode() local
1501 dns_name_t current; dns_rbt_fullnamefromnode() local
1895 addonlevel(dns_rbtnode_t * node,dns_rbtnode_t * current,int order,dns_rbtnode_t ** rootp) addonlevel() argument
2675 dns_rbtnode_t *current, *previous, *predecessor; dns_rbtnodechain_prev() local
2797 dns_rbtnode_t *current, *successor; dns_rbtnodechain_down() local
2863 dns_rbtnode_t *current, *previous, *successor; dns_rbtnodechain_nextflat() local
2910 dns_rbtnode_t *current, *previous, *successor; dns_rbtnodechain_next() local
[all...]
/netbsd-src/external/mit/lua/dist/src/
H A Dllex.c36 #define next(ls) (ls->current = zgetc(ls->z))
40 #define currIsNewline(ls) (ls->current == '\n' || ls->current == '\r')
55 #define save_and_next(ls) (save(ls, ls->current), next(ls))
165 int old = ls->current; in inclinenumber()
168 if (currIsNewline(ls) && ls->current != old) in inclinenumber()
179 ls->current = firstchar; in luaX_setinput()
200 if (ls->current == c) { in check_next1()
214 if (ls->current == set[0] || ls->current == set[1]) { in check_next2()
239 int first = ls->current; in read_numeral()
240 lua_assert(lisdigit(ls->current)); in read_numeral()
[all …]
/netbsd-src/external/lgpl3/gmp/dist/
H A Dtal-notreent.c48 static tmp_stack *current = &xxx; variable
62 ASSERT (((unsigned) current->alloc_point % __TMP_ALIGN) == 0); in __gmp_tmp_alloc()
64 if (size > (char *) current->end - (char *) current->alloc_point) in __gmp_tmp_alloc()
95 header->prev = current; in __gmp_tmp_alloc()
96 current = header; in __gmp_tmp_alloc()
99 that = current->alloc_point; in __gmp_tmp_alloc()
100 current->alloc_point = (char *) that + size; in __gmp_tmp_alloc()
111 mark->which_chunk = current; in __gmp_tmp_mark()
112 mark->alloc_point = current->alloc_point; in __gmp_tmp_mark()
119 while (mark->which_chunk != current) in __gmp_tmp_free()
[all …]
/netbsd-src/external/mpl/dhcp/bind/dist/lib/dns/
H A Drbt.c434 addonlevel(dns_rbtnode_t *node, dns_rbtnode_t *current, int order,
554 dns_name_t current; in dns__rbtnode_namelen() local
559 dns_name_init(&current, NULL); in dns__rbtnode_namelen()
563 NODENAME(node, &current); in dns__rbtnode_namelen()
564 len += current.length; in dns__rbtnode_namelen()
571 } while (!dns_name_isabsolute(&current)); in dns__rbtnode_namelen()
1195 dns_rbtnode_t **root, *parent, *child, *current, *new_current; in dns_rbt_addnode() local
1275 current = NULL; in dns_rbt_addnode()
1283 current = child; in dns_rbt_addnode()
1285 NODENAME(current, &current_name); in dns_rbt_addnode()
[all …]
/netbsd-src/sys/sys/
H A Dgcq.h256 _gcq_next(struct gcq *current, struct gcq_head *head, struct gcq *start) in _gcq_next() argument
260 q = current->q_next; in _gcq_next()
263 if (current != start) in _gcq_next()
264 GCQ_ASSERT(gcq_onlist(current)); in _gcq_next()
269 _gcq_prev(struct gcq *current, struct gcq_head *head, struct gcq *start) in _gcq_prev() argument
273 q = current->q_prev; in _gcq_prev()
276 if (current != start) in _gcq_prev()
277 GCQ_ASSERT(gcq_onlist(current)); in _gcq_prev()
291 #define _GCQ_NP(var, current, head, start, np, fn) \ argument
292 (np(current, head, start) != (start) ? \
[all …]
/netbsd-src/lib/libcurses/
H A Dgetch.c215 static key_entry_t *add_new_key(keymap_t *current, char ch, int key_type,
217 static void delete_key_sequence(keymap_t *current, int key_type);
218 static void do_keyok(keymap_t *current, int key_type, bool set, bool flag,
259 add_new_key(keymap_t *current, char chr, int key_type, int symbol) in add_new_key() argument
267 if (current->mapping[(unsigned char)chr] < 0) { in add_new_key()
268 if (current->mapping[(unsigned char)chr] == MAPPING_UNUSED) { in add_new_key()
270 current->mapping[(unsigned char)chr] = in add_new_key()
271 current->count; /* map new entry */ in add_new_key()
272 ki = current->count; in add_new_key()
275 if ((current->count & (KEYMAP_ALLOC_CHUNK - 1)) == 0) in add_new_key()
[all …]
/netbsd-src/external/bsd/tradcpp/dist/
H A Ddirective.c202 ifstate_push(&lp->current, val); in d_if()
206 debuglog(&lp->current, "#if: %s", in d_if()
221 ifstate_push(&lp->current, macro_isdefined(line)); in d_ifdef()
224 debuglog(&lp->current, "#ifdef %s: %s", in d_ifdef()
239 ifstate_push(&lp->current, !macro_isdefined(line)); in d_ifndef()
242 debuglog(&lp->current, "#ifndef %s: %s", in d_ifndef()
257 complain(&lp->current, "#elif after #else"); in d_elif()
279 debuglog2(&lp->current, &ifstate->startplace, "#elif: %s", in d_elif()
294 complain(&lp->current, in d_else()
306 debuglog2(&lp->current, &ifstate->startplace, "#else: %s", in d_else()
[all …]
/netbsd-src/external/mpl/dhcp/bind/dist/lib/isc/unix/
H A Difiter_getifaddrs.c43 isc_interface_t current; /*%< Current interface data. */ member
155 memset(&iter->current, 0, sizeof(iter->current)); in internal_current()
158 if (namelen > sizeof(iter->current.name) - 1) { in internal_current()
159 namelen = sizeof(iter->current.name) - 1; in internal_current()
162 memset(iter->current.name, 0, sizeof(iter->current.name)); in internal_current()
163 memmove(iter->current.name, ifa->ifa_name, namelen); in internal_current()
165 iter->current.flags = 0; in internal_current()
168 iter->current.flags |= INTERFACE_F_UP; in internal_current()
172 iter->current.flags |= INTERFACE_F_POINTTOPOINT; in internal_current()
176 iter->current.flags |= INTERFACE_F_LOOPBACK; in internal_current()
[all …]
/netbsd-src/external/gpl3/binutils/dist/bfd/
H A Darchive.c1584 bfd *current; in _bfd_construct_extended_name_table() local
1593 for (current = abfd->archive_head; in _bfd_construct_extended_name_table()
1594 current != NULL; in _bfd_construct_extended_name_table()
1595 current = current->archive_next) in _bfd_construct_extended_name_table()
1602 const char *filename = bfd_get_filename (current); in _bfd_construct_extended_name_table()
1606 if (current->my_archive in _bfd_construct_extended_name_table()
1607 && ! bfd_is_thin_archive (current->my_archive)) in _bfd_construct_extended_name_table()
1608 filename = bfd_get_filename (current->my_archive); in _bfd_construct_extended_name_table()
1636 normal = normalize (abfd, bfd_get_filename (current)); in _bfd_construct_extended_name_table()
1658 struct ar_hdr *hdr = arch_hdr (current); in _bfd_construct_extended_name_table()
[all …]
/netbsd-src/external/gpl3/binutils.old/dist/bfd/
H A Darchive.c1571 bfd *current; in _bfd_construct_extended_name_table() local
1580 for (current = abfd->archive_head; in _bfd_construct_extended_name_table()
1581 current != NULL; in _bfd_construct_extended_name_table()
1582 current = current->archive_next) in _bfd_construct_extended_name_table()
1589 const char *filename = bfd_get_filename (current); in _bfd_construct_extended_name_table()
1593 if (current->my_archive in _bfd_construct_extended_name_table()
1594 && ! bfd_is_thin_archive (current->my_archive)) in _bfd_construct_extended_name_table()
1595 filename = bfd_get_filename (current->my_archive); in _bfd_construct_extended_name_table()
1623 normal = normalize (abfd, bfd_get_filename (current)); in _bfd_construct_extended_name_table()
1645 struct ar_hdr *hdr = arch_hdr (current); in _bfd_construct_extended_name_table()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/regex/internal/
H A Dparser.d169 immutable current = str[k];//accepts ascii only, so it's OK to index directly in parseUniHex() local
170 if ('0' <= current && current <= '9') in parseUniHex()
171 val = val * 16 + current - '0'; in parseUniHex()
172 else if ('a' <= current && current <= 'f') in parseUniHex()
173 val = val * 16 + current -'a' + 10; in parseUniHex()
174 else if ('A' <= current && current <= 'F') in parseUniHex()
175 val = val * 16 + current - 'A' + 10; in parseUniHex()
645 @property dchar current(){ return _current; } in current() function
661 while (isWhite(current) && _next()){ } in skipSpace()
680 while (std.ascii.isDigit(current)) in parseDecimal()
[all …]
/netbsd-src/external/mpl/bind/dist/lib/isc/
H A Dinterfaceiter.c149 struct ifaddrs *pos; /*%< Ptr to current ifaddr */
150 isc_interface_t current; /*%< Current interface data. */
199 * Get information about the current interface to iter->current. in isc_interfaceiter_create()
227 memset(&iter->current, 0, sizeof(iter->current)); in isc_interfaceiter_create()
230 if (namelen > sizeof(iter->current.name) - 1) { in isc_interfaceiter_create()
231 namelen = sizeof(iter->current.name) - 1; in isc_interfaceiter_create()
234 memset(iter->current.name, 0, sizeof(iter->current in isc_interfaceiter_create()
167 isc_interface_t current; /*%< Current interface data. */ global() member
[all...]
/netbsd-src/lib/libc/rpc/
H A Dxdr_rec.c297 u_int current; in xdrrec_getbytes() local
300 current = (u_int)rstrm->fbtbc; in xdrrec_getbytes()
301 if (current == 0) { in xdrrec_getbytes()
308 current = (len < current) ? len : current; in xdrrec_getbytes()
309 if (! get_input_bytes(rstrm, addr, current)) in xdrrec_getbytes()
311 addr += current; in xdrrec_getbytes()
312 rstrm->fbtbc -= current; in xdrrec_getbytes()
313 len -= current; in xdrrec_getbytes()
322 size_t current; in xdrrec_putbytes() local
325 current = (size_t)((u_long)rstrm->out_boundry - in xdrrec_putbytes()
[all …]
/netbsd-src/crypto/dist/ipsec-tools/src/racoon/
H A Dvendorid.c122 struct vendor_id *current; in vid_string_by_id() local
127 current = lookup_vendor_id_by_id(id); in vid_string_by_id()
129 return current ? current->string : NULL; in vid_string_by_id()
187 struct vendor_id *current; in set_vendorid() local
197 current = lookup_vendor_id_by_id(vendorid); in set_vendorid()
198 if (current == NULL) { in set_vendorid()
207 return vdup(current->hash); in set_vendorid()
220 struct vendor_id *current; in check_vendorid() local
227 current = lookup_vendor_id_by_hash((char *)(gen + 1)); in check_vendorid()
228 if (!current) in check_vendorid()
[all …]

12345678910>>...127