/freebsd-10.0-release/usr.bin/dtc/ |
H A D | input_buffer.hh | 66 * keeps a separate size, pointer, and cursor so that we can move 70 int cursor; member in class:dtc::input_buffer 76 cursor(c) {} 91 input_buffer() : buffer(0), size(0), cursor(0) {} 95 input_buffer(const char* b, int s) : buffer(b), size(s), cursor(0){} 112 return cursor >= size; 117 * the cursor is out of range. 121 if (cursor >= size) { return '\0'; } 122 if (cursor < 0) { return '\0'; } 123 return buffer[cursor]; [all...] |
H A D | input_buffer.cc | 56 if (cursor >= size) { return; } 57 if (cursor < 0) { return; } 58 char c = buffer[cursor]; 62 cursor++; 63 if (cursor > size) 69 c = buffer[cursor]; 96 if (len > size - cursor) 104 if (str[i] != buffer[cursor + i]) 109 cursor += len; 125 outInt = strtoll(&buffer[cursor], [all...] |
/freebsd-10.0-release/lib/libedit/ |
H A D | emacs.c | 48 * Delete character under cursor or list completions if at end of line 56 if (el->el_line.cursor == el->el_line.lastchar) { 58 if (el->el_line.cursor == el->el_line.buffer) { 75 if (el->el_line.cursor > el->el_line.lastchar) 76 el->el_line.cursor = el->el_line.lastchar; 84 * Cut from cursor to end of current word 93 if (el->el_line.cursor == el->el_line.lastchar) 96 cp = c__next_word(el->el_line.cursor, el->el_line.lastchar, 99 for (p = el->el_line.cursor, kp = el->el_chared.c_kill.buf; p < cp; p++) 104 c_delafter(el, cp - el->el_line.cursor); /* delet [all...] |
H A D | common.c | 83 || el->el_line.cursor >= el->el_line.lastchar) 86 *el->el_line.cursor++ = c; 92 while (count-- && el->el_line.cursor < el->el_line.lastchar) 93 *el->el_line.cursor++ = c; 105 * Delete from beginning of current word to cursor 114 if (el->el_line.cursor == el->el_line.buffer) 117 cp = c__prev_word(el->el_line.cursor, el->el_line.buffer, 120 for (p = cp, kp = el->el_chared.c_kill.buf; p < el->el_line.cursor; p++) 124 c_delbefore(el, el->el_line.cursor - cp); /* delete before dot */ 125 el->el_line.cursor [all...] |
H A D | vi.c | 71 el->el_line.cursor = el->el_line.buffer; 78 el->el_chared.c_vcmd.pos = el->el_line.cursor; 84 * Paste previous deletion before or after the cursor 100 if (!c && el->el_line.cursor < el->el_line.lastchar) 101 el->el_line.cursor++; 104 if (el->el_line.cursor + len > el->el_line.lastchar) 106 (void) memcpy(el->el_line.cursor, k->buf, len); 113 * Vi paste previous deletion to the right of the cursor 126 * Vi paste previous deletion to the left of the cursor 147 if (el->el_line.cursor [all...] |
H A D | history.c | 126 hentry_t *cursor; /* Current element in the list */ member in struct:history_t 212 h->cursor = h->list.next; 213 if (h->cursor != &h->list) 214 *ev = h->cursor->ev; 232 h->cursor = h->list.prev; 233 if (h->cursor != &h->list) 234 *ev = h->cursor->ev; 252 if (h->cursor == &h->list) { 257 if (h->cursor->next == &h->list) { 262 h->cursor [all...] |
H A D | chared.c | 67 vu->cursor = (int)(el->el_line.cursor - el->el_line.buffer); 104 if (el->el_line.cursor < el->el_line.lastchar) { 106 for (cp = el->el_line.lastchar; cp >= el->el_line.cursor; cp--) 114 * Delete num characters after the cursor 120 if (el->el_line.cursor + num > el->el_line.lastchar) 121 num = (int)(el->el_line.lastchar - el->el_line.cursor); 125 cv_yank(el, el->el_line.cursor, num); 131 for (cp = el->el_line.cursor; cp <= el->el_line.lastchar; cp++) 140 * Delete the character after the cursor, d [all...] |
/freebsd-10.0-release/crypto/heimdal/lib/hx509/ |
H A D | ks_null.c | 55 hx509_certs certs, void *data, void **cursor) 57 *cursor = NULL; 73 void *cursor) 75 assert(cursor == NULL); 54 null_iter_start(hx509_context context, hx509_certs certs, void *data, void **cursor) argument 70 null_iter_end(hx509_context context, hx509_certs certs, void *data, void *cursor) argument
|
H A D | keyset.c | 243 * @param cursor cursor that will keep track of progress, free with 256 hx509_cursor *cursor) 267 ret = (*certs->ops->iter_start)(context, certs, certs->ops_data, cursor); 276 * cursor. 280 * @param cursor cursor that keeps track of progress. 292 hx509_cursor cursor, 296 return (*certs->ops->iter)(context, certs, certs->ops_data, cursor, cert); 304 * @param cursor curso 254 hx509_certs_start_seq(hx509_context context, hx509_certs certs, hx509_cursor *cursor) argument 290 hx509_certs_next_cert(hx509_context context, hx509_certs certs, hx509_cursor cursor, hx509_cert *cert) argument 312 hx509_certs_end_seq(hx509_context context, hx509_certs certs, hx509_cursor cursor) argument 342 hx509_cursor cursor; local 501 hx509_cursor cursor; local 565 hx509_cursor cursor; local 690 hx509_cursor cursor; local [all...] |
H A D | ks_mem.c | 111 void **cursor) 119 *cursor = iter; 128 void *cursor, 131 unsigned long *iter = cursor; 148 void *cursor) 150 free(cursor); 108 mem_iter_start(hx509_context context, hx509_certs certs, void *data, void **cursor) argument 125 mem_iter(hx509_context contexst, hx509_certs certs, void *data, void *cursor, hx509_cert *cert) argument 145 mem_iter_end(hx509_context context, hx509_certs certs, void *data, void *cursor) argument
|
/freebsd-10.0-release/contrib/llvm/tools/lldb/source/Plugins/Process/Utility/ |
H A D | UnwindMacOSXFrameBackchain.cpp | 108 Cursor cursor; local 109 cursor.pc = reg_ctx->GetPC (LLDB_INVALID_ADDRESS); 110 cursor.fp = reg_ctx->GetFP (0); 112 Frame_i386 frame = { static_cast<uint32_t>(cursor.fp), static_cast<uint32_t>(cursor.pc) }; 114 m_cursors.push_back(cursor); 125 cursor.pc = frame.pc; 126 cursor.fp = frame.fp; 127 m_cursors.push_back (cursor); 162 cursor 207 Cursor cursor; local [all...] |
/freebsd-10.0-release/contrib/subversion/subversion/libsvn_fs_base/bdb/ |
H A D | strings-table.c | 85 DBC **cursor, 95 svn_fs_base__trail_debug(trail, "strings", "cursor"); 96 SVN_ERR(BDB_WRAP(fs, N_("creating cursor for reading a string"), 97 bfd->strings->cursor(bfd->strings, trail->db_txn, 98 cursor, 0))); 105 /* Advance the cursor to the key that we're looking for. */ 106 db_err = svn_bdb_dbc_get(*cursor, query, &result, DB_SET); 114 svn_bdb_dbc_close(*cursor); 125 svn_bdb_dbc_close(*cursor); 126 return BDB_WRAP(fs, N_("moving cursor"), db_er 82 locate_key(apr_size_t *length, DBC **cursor, DBT *query, svn_fs_t *fs, trail_t *trail, apr_pool_t *pool) argument 151 get_next_length(apr_size_t *length, DBC *cursor, DBT *query) argument 203 DBC *cursor; local 284 DBC *cursor; local 414 DBC *cursor; local 481 DBC *cursor; local [all...] |
H A D | rev-table.c | 174 DBC *cursor = 0; 180 /* Create a database cursor. */ 181 svn_fs_base__trail_debug(trail, "revisions", "cursor"); 182 SVN_ERR(BDB_WRAP(fs, N_("getting youngest revision (creating cursor)"), 183 bfd->revisions->cursor(bfd->revisions, trail->db_txn, 184 &cursor, 0))); 187 db_err = svn_bdb_dbc_get(cursor, 194 /* Free the cursor. Ignore any error value --- the error above 196 svn_bdb_dbc_close(cursor); 212 to them are closed, so closing a cursor ca 171 DBC *cursor = 0; local [all...] |
/freebsd-10.0-release/contrib/llvm/tools/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/ |
H A D | DYLDRendezvous.cpp | 78 addr_t cursor; local 84 cursor = info_addr = ResolveRendezvousAddress(m_process); 86 cursor = info_addr = m_rendezvous_addr; 88 if (cursor == LLDB_INVALID_ADDRESS) 91 if (!(cursor = ReadMemory(cursor, &info.version, word_size))) 94 if (!(cursor = ReadMemory(cursor + padding, &info.map_addr, address_size))) 97 if (!(cursor = ReadMemory(cursor, [all...] |
/freebsd-10.0-release/crypto/heimdal/lib/krb5/ |
H A D | cache.c | 67 krb5_cc_cursor cursor; 79 ret = krb5_cc_start_seq_get(context, id, &cursor); 83 while((ret = krb5_cc_next_cred(context, id, &cursor, &creds)) == 0){ 91 ret = krb5_cc_end_seq_get(context, id, &cursor); 716 krb5_cc_cursor cursor; local 723 ret = krb5_cc_start_seq_get(context, id, &cursor); 726 while((ret = krb5_cc_next_cred(context, id, &cursor, creds)) == 0){ 733 krb5_cc_end_seq_get(context, id, &cursor); 755 * Start iterating over `id', `cursor' is initialized to the 756 * beginning. Caller must free the cursor wit 765 krb5_cc_start_seq_get(krb5_context context, const krb5_ccache id, krb5_cc_cursor *cursor) argument 783 krb5_cc_next_cred(krb5_context context, const krb5_ccache id, krb5_cc_cursor *cursor, krb5_creds *creds) argument 799 krb5_cc_end_seq_get(krb5_context context, const krb5_ccache id, krb5_cc_cursor *cursor) argument 884 krb5_cc_cursor cursor; local 1011 krb5_cc_cursor cursor; member in struct:krb5_cc_cache_cursor_data 1029 krb5_cc_cache_get_first(krb5_context context, const char *type, krb5_cc_cache_cursor *cursor) argument 1087 krb5_cc_cache_next(krb5_context context, krb5_cc_cache_cursor cursor, krb5_ccache *id) argument 1104 krb5_cc_cache_end_seq_get(krb5_context context, krb5_cc_cache_cursor cursor) argument 1134 krb5_cccol_cursor cursor; local 1372 krb5_cc_cache_cursor cursor; member in struct:krb5_cccol_cursor_data 1388 krb5_cccol_cursor_new(krb5_context context, krb5_cccol_cursor *cursor) argument 1420 krb5_cccol_cursor_next(krb5_context context, krb5_cccol_cursor cursor, krb5_ccache *cache) argument 1471 krb5_cccol_cursor_free(krb5_context context, krb5_cccol_cursor *cursor) argument 1525 krb5_cccol_cursor cursor; local 1629 krb5_cc_cursor cursor; local [all...] |
H A D | keytab_any.c | 121 krb5_kt_cursor cursor; member in struct:any_cursor_extra_data 140 ret = krb5_kt_start_seq_get(context, ed->a->kt, &ed->cursor); 157 krb5_kt_cursor *cursor) 162 ed = (struct any_cursor_extra_data *)cursor->data; 164 ret = krb5_kt_next_entry(context, ed->a->kt, entry, &ed->cursor); 170 ret2 = krb5_kt_end_seq_get (context, ed->a->kt, &ed->cursor); 174 ret2 = krb5_kt_start_seq_get(context, ed->a->kt, &ed->cursor); 188 krb5_kt_cursor *cursor) 193 ed = (struct any_cursor_extra_data *)cursor->data; 195 ret = krb5_kt_end_seq_get(context, ed->a->kt, &ed->cursor); 154 any_next_entry(krb5_context context, krb5_keytab id, krb5_keytab_entry *entry, krb5_kt_cursor *cursor) argument 186 any_end_seq_get(krb5_context context, krb5_keytab id, krb5_kt_cursor *cursor) argument [all...] |
H A D | keytab_keyfile.c | 241 krb5_kt_cursor *cursor) 248 pos = krb5_storage_seek(cursor->sp, 0, SEEK_CUR); 258 ret = krb5_ret_int32(cursor->sp, &kvno); 266 if (cursor->data) 280 ret = krb5_storage_read(cursor->sp, entry->keyblock.keyvalue.data, 8); 291 if (cursor->data) { 292 krb5_storage_seek(cursor->sp, pos + 4 + 8, SEEK_SET); 293 cursor->data = NULL; 295 cursor->data = cursor; 238 akf_next_entry(krb5_context context, krb5_keytab id, krb5_keytab_entry *entry, krb5_kt_cursor *cursor) argument 300 akf_end_seq_get(krb5_context context, krb5_keytab id, krb5_kt_cursor *cursor) argument [all...] |
/freebsd-10.0-release/contrib/libpcap/ |
H A D | sf-pcap-ng.c | 194 * Block cursor - used when processing the contents of a block. 233 read_block(FILE *fp, pcap_t *p, struct block_cursor *cursor, char *errbuf) argument 298 * Initialize the cursor. 300 cursor->data = p->buffer + sizeof(bhdr); 301 cursor->data_remaining = bhdr.total_length - sizeof(bhdr) - 303 cursor->block_type = bhdr.block_type; 308 get_from_block_data(struct block_cursor *cursor, size_t chunk_size, argument 317 if (cursor->data_remaining < chunk_size) { 320 cursor->block_type); 327 data = cursor 334 get_opthdr_from_block_data(pcap_t *p, struct block_cursor *cursor, char *errbuf) argument 358 get_optvalue_from_block_data(struct block_cursor *cursor, struct option_header *opthdr, char *errbuf) argument 380 process_idb_options(pcap_t *p, struct block_cursor *cursor, u_int *tsresol, u_int64_t *tsoffset, char *errbuf) argument 510 struct block_cursor cursor; local 769 struct block_cursor cursor; local [all...] |
/freebsd-10.0-release/contrib/ncurses/ncurses/tinfo/ |
H A D | hashed_db.c | 42 static DBC *cursor; variable 168 if ((result = db->cursor(db, NULL, &cursor, 0)) == 0) { 169 result = cursor->c_get(cursor, key, data, DB_FIRST); 189 if (cursor != 0) { 190 result = cursor->c_get(cursor, key, data, DB_NEXT);
|
/freebsd-10.0-release/crypto/heimdal/admin/ |
H A D | rename.c | 44 krb5_kt_cursor cursor; local 66 ret = krb5_kt_start_seq_get(context, keytab, &cursor); 74 ret = krb5_kt_next_entry(context, keytab, &entry, &cursor); 106 krb5_kt_end_seq_get(context, keytab, &cursor);
|
H A D | purge.c | 106 krb5_kt_cursor cursor; local 122 ret = krb5_kt_start_seq_get(context, keytab, &cursor); 128 while(krb5_kt_next_entry(context, keytab, &entry, &cursor) == 0) { 132 krb5_kt_end_seq_get(context, keytab, &cursor); 136 ret = krb5_kt_start_seq_get(context, keytab, &cursor); 142 while(krb5_kt_next_entry(context, keytab, &entry, &cursor) == 0) { 165 ret = krb5_kt_end_seq_get(context, keytab, &cursor);
|
/freebsd-10.0-release/contrib/gdb/gdb/ |
H A D | libunwind-frame.c | 69 unw_cursor_t cursor; member in struct:libunwind_frame_cache 143 /* Get a libunwind cursor to the previous frame. We do this by initializing 144 a cursor. Libunwind treats a new cursor as the top of stack and will get 149 move the libunwind cursor back one frame. We can later use this cursor to find previous 158 unw_init_remote_p (&cache->cursor, as, next_frame); 159 unw_step_p (&cache->cursor); 163 ret = unw_get_reg_p (&cache->cursor, uw_sp_regnum, &fp); 191 unw_cursor_t cursor; local [all...] |
/freebsd-10.0-release/crypto/heimdal/kcm/ |
H A D | glue.c | 174 krb5_cc_cursor *cursor) 180 *cursor = c->creds; 182 return (*cursor == NULL) ? KRB5_CC_END : 0; 188 krb5_cc_cursor *cursor, 197 &((struct kcm_creds *)cursor)->cred, 202 *cursor = ((struct kcm_creds *)cursor)->next; 203 if (*cursor == 0) 212 krb5_cc_cursor *cursor) 214 *cursor 172 kcmss_get_first(krb5_context context, krb5_ccache id, krb5_cc_cursor *cursor) argument 186 kcmss_get_next(krb5_context context, krb5_ccache id, krb5_cc_cursor *cursor, krb5_creds *creds) argument 210 kcmss_end_get(krb5_context context, krb5_ccache id, krb5_cc_cursor *cursor) argument [all...] |
/freebsd-10.0-release/contrib/libarchive/libarchive/ |
H A D | archive_read.c | 275 if (self->archive->client.cursor == iindex) 278 self->archive->client.cursor = iindex; 279 data2 = self->archive->client.dataset[self->archive->client.cursor].data; 666 a->data_start_node = a->client.cursor; 1289 if (filter->archive->client.cursor != 1292 filter->archive->client.cursor + 1) 1476 if (filter->archive->client.cursor != 1479 filter->archive->client.cursor + 1) 1519 unsigned int cursor; local 1532 cursor [all...] |
/freebsd-10.0-release/contrib/sendmail/libsmdb/ |
H A D | smdb2.c | 170 ** SMDB_CURSOR_GET_FLAGS_TO_DB2 -- Translates smdb cursor get flags to db2 354 smdb2_cursor_close(cursor) 355 SMDB_CURSOR *cursor; 358 DBC *dbc = (DBC *) cursor->smdbc_impl; 361 free(cursor); 366 smdb2_cursor_del(cursor, flags) 367 SMDB_CURSOR *cursor; 370 DBC *dbc = (DBC *) cursor->smdbc_impl; 376 smdb2_cursor_get(cursor, key, value, flags) 377 SMDB_CURSOR *cursor; [all...] |