| /dragonfly/sys/vfs/hammer/ |
| HD | hammer_cursor.c | 40 static int hammer_load_cursor_parent(hammer_cursor_t cursor, int try_exclusive); 47 hammer_init_cursor(hammer_transaction_t trans, hammer_cursor_t cursor, in hammer_init_cursor() argument 56 bzero(cursor, sizeof(*cursor)); in hammer_init_cursor() 58 cursor->trans = trans; in hammer_init_cursor() 117 if ((cursor->ip = ip) != NULL) { in hammer_init_cursor() 172 cursor->trans->type != HAMMER_TRANS_FLS) { in hammer_init_cursor() 199 cursor->node = node; in hammer_init_cursor() 201 error = hammer_load_cursor_parent(cursor, 0); in hammer_init_cursor() 212 hammer_normalize_cursor(hammer_cursor_t cursor) in hammer_normalize_cursor() argument 214 if (cursor->node == NULL) { in hammer_normalize_cursor() [all …]
|
| HD | hammer_btree.c | 83 static int btree_search(hammer_cursor_t cursor, int flags); 84 static int btree_split_internal(hammer_cursor_t cursor); 85 static int btree_split_leaf(hammer_cursor_t cursor); 86 static int btree_remove(hammer_cursor_t cursor, int *ndelete); 88 static int hammer_btree_mirror_propagate(hammer_cursor_t cursor, 92 static void hammer_cursor_mirror_filter(hammer_cursor_t cursor); 93 static __inline void hammer_debug_btree_elm(hammer_cursor_t cursor, 95 static __inline void hammer_debug_btree_parent(hammer_cursor_t cursor, 124 hammer_btree_iterate(hammer_cursor_t cursor) in hammer_btree_iterate() argument 136 hmp = cursor->trans->hmp; in hammer_btree_iterate() [all …]
|
| HD | hammer_object.c | 37 static int hammer_mem_lookup(hammer_cursor_t cursor); 38 static int hammer_mem_first(hammer_cursor_t cursor); 43 static int hammer_delete_general(hammer_cursor_t cursor, hammer_inode_t ip, 184 hammer_cursor_t cursor = data; in hammer_rec_scan_cmp() local 187 r = hammer_rec_cmp(&cursor->key_beg, rec); in hammer_rec_scan_cmp() 190 r = hammer_rec_cmp(&cursor->key_end, rec); in hammer_rec_scan_cmp() 203 hammer_cursor_t cursor = data; in hammer_rec_find_cmp() local 206 r = hammer_rec_cmp(&cursor->key_beg, rec); in hammer_rec_find_cmp() 508 hammer_ip_iterate_mem_good(hammer_cursor_t cursor, hammer_record_t record) in hammer_ip_iterate_mem_good() argument 510 if (cursor->flags & HAMMER_CURSOR_DELETE_VISIBILITY) in hammer_ip_iterate_mem_good() [all …]
|
| HD | hammer_reblock.c | 47 hammer_cursor_t cursor, 50 hammer_cursor_t cursor, hammer_btree_elm_t elm); 52 hammer_cursor_t cursor, hammer_btree_elm_t elm); 54 hammer_cursor_t cursor, hammer_btree_elm_t elm); 55 static void hammer_move_node(hammer_cursor_t cursor, hammer_btree_elm_t elm, 62 struct hammer_cursor cursor; in hammer_ioc_reblock() local 108 error = hammer_init_cursor(trans, &cursor, NULL, NULL); in hammer_ioc_reblock() 110 hammer_done_cursor(&cursor); in hammer_ioc_reblock() 113 cursor.key_beg.localization = reblock->key_cur.localization; in hammer_ioc_reblock() 114 cursor.key_beg.obj_id = reblock->key_cur.obj_id; in hammer_ioc_reblock() [all …]
|
| HD | hammer_mirror.c | 41 static int hammer_mirror_check(hammer_cursor_t cursor, 43 static int hammer_mirror_update(hammer_cursor_t cursor, 45 static int hammer_ioc_mirror_write_rec(hammer_cursor_t cursor, 50 static int hammer_ioc_mirror_write_pass(hammer_cursor_t cursor, 54 static int hammer_ioc_mirror_write_skip(hammer_cursor_t cursor, 58 static int hammer_mirror_delete_to(hammer_cursor_t cursor, 77 struct hammer_cursor cursor; in hammer_ioc_mirror_read() local 111 error = hammer_init_cursor(trans, &cursor, NULL, NULL); in hammer_ioc_mirror_read() 113 hammer_done_cursor(&cursor); in hammer_ioc_mirror_read() 116 cursor.key_beg = mirror->key_cur; in hammer_ioc_mirror_read() [all …]
|
| HD | hammer_ioctl.c | 287 struct hammer_cursor cursor; in hammer_ioc_gethistory() local 318 error = hammer_init_cursor(trans, &cursor, &ip->cache[0], NULL); in hammer_ioc_gethistory() 320 hammer_done_cursor(&cursor); in hammer_ioc_gethistory() 324 cursor.key_beg.obj_id = hist->obj_id; in hammer_ioc_gethistory() 325 cursor.key_beg.create_tid = hist->beg_tid; in hammer_ioc_gethistory() 326 cursor.key_beg.delete_tid = 0; in hammer_ioc_gethistory() 327 cursor.key_beg.obj_type = 0; in hammer_ioc_gethistory() 328 if (cursor.key_beg.create_tid == HAMMER_MIN_TID) in hammer_ioc_gethistory() 329 cursor.key_beg.create_tid = 1; in hammer_ioc_gethistory() 331 cursor.key_end.obj_id = hist->obj_id; in hammer_ioc_gethistory() [all …]
|
| HD | hammer_prune.c | 49 static void prune_check_nlinks(hammer_cursor_t cursor, 56 struct hammer_cursor cursor; in hammer_ioc_prune() local 114 error = hammer_init_cursor(trans, &cursor, NULL, NULL); in hammer_ioc_prune() 116 hammer_done_cursor(&cursor); in hammer_ioc_prune() 119 cursor.key_beg.localization = key_beg_localization; in hammer_ioc_prune() 120 cursor.key_beg.obj_id = prune->key_beg.obj_id; in hammer_ioc_prune() 121 cursor.key_beg.key = HAMMER_MIN_KEY; in hammer_ioc_prune() 122 cursor.key_beg.create_tid = 1; in hammer_ioc_prune() 123 cursor.key_beg.delete_tid = 0; in hammer_ioc_prune() 124 cursor.key_beg.rec_type = HAMMER_MIN_RECTYPE; in hammer_ioc_prune() [all …]
|
| HD | hammer_pfs.c | 45 static int hammer_pfs_delete_at_cursor(hammer_cursor_t cursor, 328 struct hammer_cursor cursor; in hammer_ioc_scan_pseudofs() local 342 error = hammer_init_cursor(trans, &cursor, in hammer_ioc_scan_pseudofs() 347 cursor.key_beg.localization = HAMMER_DEF_LOCALIZATION | in hammer_ioc_scan_pseudofs() 349 cursor.key_beg.obj_id = HAMMER_OBJID_ROOT; in hammer_ioc_scan_pseudofs() 350 cursor.key_beg.create_tid = 0; in hammer_ioc_scan_pseudofs() 351 cursor.key_beg.delete_tid = 0; in hammer_ioc_scan_pseudofs() 352 cursor.key_beg.rec_type = HAMMER_RECTYPE_PFS; in hammer_ioc_scan_pseudofs() 353 cursor.key_beg.obj_type = 0; in hammer_ioc_scan_pseudofs() 354 cursor.key_beg.key = localization; in hammer_ioc_scan_pseudofs() [all …]
|
| HD | hammer_rebalance.c | 38 hammer_cursor_t cursor, hammer_node_lock_t lcache); 57 struct hammer_cursor cursor; in hammer_ioc_rebalance() local 104 error = hammer_init_cursor(trans, &cursor, NULL, NULL); in hammer_ioc_rebalance() 106 hammer_done_cursor(&cursor); in hammer_ioc_rebalance() 109 cursor.key_beg = rebal->key_cur; in hammer_ioc_rebalance() 110 cursor.key_end = rebal->key_end; in hammer_ioc_rebalance() 111 cursor.key_end.localization = key_end_localization; in hammer_ioc_rebalance() 112 cursor.flags |= HAMMER_CURSOR_END_INCLUSIVE; in hammer_ioc_rebalance() 113 cursor.flags |= HAMMER_CURSOR_BACKEND; in hammer_ioc_rebalance() 125 cursor.flags |= HAMMER_CURSOR_REBLOCKING; in hammer_ioc_rebalance() [all …]
|
| HD | hammer_vnops.c | 1120 struct hammer_cursor cursor; in hammer_vop_nresolve() local 1223 error = hammer_init_cursor(&trans, &cursor, &dip->cache[1], dip); in hammer_vop_nresolve() 1224 cursor.key_beg.localization = dip->obj_localization | in hammer_vop_nresolve() 1226 cursor.key_beg.obj_id = dip->obj_id; in hammer_vop_nresolve() 1227 cursor.key_beg.key = namekey; in hammer_vop_nresolve() 1228 cursor.key_beg.create_tid = 0; in hammer_vop_nresolve() 1229 cursor.key_beg.delete_tid = 0; in hammer_vop_nresolve() 1230 cursor.key_beg.rec_type = HAMMER_RECTYPE_DIRENTRY; in hammer_vop_nresolve() 1231 cursor.key_beg.obj_type = 0; in hammer_vop_nresolve() 1233 cursor.key_end = cursor.key_beg; in hammer_vop_nresolve() [all …]
|
| HD | hammer_inode.c | 426 struct hammer_cursor cursor; in hammer_get_inode() local 499 hammer_init_cursor(trans, &cursor, cachep, NULL); in hammer_get_inode() 500 cursor.key_beg.localization = localization | HAMMER_LOCALIZE_INODE; in hammer_get_inode() 501 cursor.key_beg.obj_id = ip->obj_id; in hammer_get_inode() 502 cursor.key_beg.key = 0; in hammer_get_inode() 503 cursor.key_beg.create_tid = 0; in hammer_get_inode() 504 cursor.key_beg.delete_tid = 0; in hammer_get_inode() 505 cursor.key_beg.rec_type = HAMMER_RECTYPE_INODE; in hammer_get_inode() 506 cursor.key_beg.obj_type = 0; in hammer_get_inode() 508 cursor.asof = asof; in hammer_get_inode() [all …]
|
| /dragonfly/contrib/grep/lib/ |
| HD | hash.c | 183 struct hash_entry const *cursor = bucket; in hash_get_max_bucket_length() local 186 while (cursor = cursor->next, cursor) in hash_get_max_bucket_length() 211 struct hash_entry const *cursor = bucket; in hash_table_ok() local 218 while (cursor = cursor->next, cursor) in hash_table_ok() 264 struct hash_entry const *cursor; in hash_lookup() local 269 for (cursor = bucket; cursor; cursor = cursor->next) in hash_lookup() 270 if (entry == cursor->data || table->comparator (entry, cursor->data)) in hash_lookup() 271 return cursor->data; in hash_lookup() 310 struct hash_entry const *cursor; in hash_get_next() local 313 cursor = bucket; in hash_get_next() [all …]
|
| /dragonfly/contrib/libedit/src/ |
| HD | emacs.c | 62 if (el->el_line.cursor == el->el_line.lastchar) { in em_delete_or_list() 64 if (el->el_line.cursor == el->el_line.buffer) { in em_delete_or_list() 81 if (el->el_line.cursor > el->el_line.lastchar) in em_delete_or_list() 82 el->el_line.cursor = el->el_line.lastchar; in em_delete_or_list() 99 if (el->el_line.cursor == el->el_line.lastchar) in em_delete_next_word() 102 cp = c__next_word(el->el_line.cursor, el->el_line.lastchar, in em_delete_next_word() 105 for (p = el->el_line.cursor, kp = el->el_chared.c_kill.buf; p < cp; p++) in em_delete_next_word() 110 c_delafter(el, (int)(cp - el->el_line.cursor)); /* delete after dot */ in em_delete_next_word() 111 if (el->el_line.cursor > el->el_line.lastchar) in em_delete_next_word() 112 el->el_line.cursor = el->el_line.lastchar; in em_delete_next_word() [all …]
|
| HD | common.c | 92 || el->el_line.cursor >= el->el_line.lastchar) in ed_insert() 95 *el->el_line.cursor++ = c; in ed_insert() 101 while (count-- && el->el_line.cursor < el->el_line.lastchar) in ed_insert() 102 *el->el_line.cursor++ = c; in ed_insert() 123 if (el->el_line.cursor == el->el_line.buffer) in ed_delete_prev_word() 126 cp = c__prev_word(el->el_line.cursor, el->el_line.buffer, in ed_delete_prev_word() 129 for (p = cp, kp = el->el_chared.c_kill.buf; p < el->el_line.cursor; p++) in ed_delete_prev_word() 133 c_delbefore(el, (int)(el->el_line.cursor - cp));/* delete before dot */ in ed_delete_prev_word() 134 el->el_line.cursor = cp; in ed_delete_prev_word() 135 if (el->el_line.cursor < el->el_line.buffer) in ed_delete_prev_word() [all …]
|
| HD | vi.c | 83 el->el_line.cursor = el->el_line.buffer; in cv_action() 90 el->el_chared.c_vcmd.pos = el->el_line.cursor; in cv_action() 113 if (!c && el->el_line.cursor < el->el_line.lastchar) in cv_paste() 114 el->el_line.cursor++; in cv_paste() 117 if (el->el_line.cursor + len > el->el_line.lastchar) in cv_paste() 119 (void) memcpy(el->el_line.cursor, k->buf, len * in cv_paste() 120 sizeof(*el->el_line.cursor)); in cv_paste() 161 if (el->el_line.cursor == el->el_line.buffer) in vi_prev_big_word() 164 el->el_line.cursor = cv_prev_word(el->el_line.cursor, in vi_prev_big_word() 186 if (el->el_line.cursor == el->el_line.buffer) in vi_prev_word() [all …]
|
| HD | chared.c | 71 vu->cursor = (int)(el->el_line.cursor - el->el_line.buffer); in cv_undo() 108 if (el->el_line.cursor < el->el_line.lastchar) { in c_insert() 110 for (cp = el->el_line.lastchar; cp >= el->el_line.cursor; cp--) in c_insert() 124 if (el->el_line.cursor + num > el->el_line.lastchar) in c_delafter() 125 num = (int)(el->el_line.lastchar - el->el_line.cursor); in c_delafter() 129 cv_yank(el, el->el_line.cursor, num); in c_delafter() 135 for (cp = el->el_line.cursor; cp <= el->el_line.lastchar; cp++) in c_delafter() 151 for (cp = el->el_line.cursor; cp <= el->el_line.lastchar; cp++) in c_delafter1() 165 if (el->el_line.cursor - num < el->el_line.buffer) in c_delbefore() 166 num = (int)(el->el_line.cursor - el->el_line.buffer); in c_delbefore() [all …]
|
| HD | history.c | 169 hentry_t *cursor; /* Current element in the list */ member 255 h->cursor = h->list.next; in history_def_first() 256 if (h->cursor != &h->list) in history_def_first() 257 *ev = h->cursor->ev; in history_def_first() 275 h->cursor = h->list.prev; in history_def_last() 276 if (h->cursor != &h->list) in history_def_last() 277 *ev = h->cursor->ev; in history_def_last() 295 if (h->cursor == &h->list) { in history_def_next() 300 if (h->cursor->next == &h->list) { in history_def_next() 305 h->cursor = h->cursor->next; in history_def_next() [all …]
|
| /dragonfly/contrib/tcsh-6/nls/finnish/ |
| HD | set4 | 7 5 cursor to horiz pos 14 12 cursor from status line 15 13 home cursor 19 17 sends cursor down 20 18 sends cursor left 21 19 sends cursor right 22 20 sends cursor up 28 26 cursor to status line 29 27 cursor up one 34 32 cursor down multiple [all …]
|
| /dragonfly/contrib/tcsh-6/nls/ukrainian/ |
| HD | set4 | 7 5 cursor to horiz pos 14 12 cursor from status line 15 13 home cursor 19 17 sends cursor down 20 18 sends cursor left 21 19 sends cursor right 22 20 sends cursor up 28 26 cursor to status line 29 27 cursor up one 34 32 cursor down multiple [all …]
|
| HD | set3 | 4 2 Delete the character behind cursor 5 3 Cut from beginning of current word to cursor - saved in cut buffer 6 4 Cut from beginning of line to cursor - save in cut buffer 9 7 Capitalize the characters from cursor to end of current word 10 8 Vi change case of character under cursor and advance one character 17 15 Copy current word to cursor 18 16 Copy area between mark and cursor to cut buffer 20 18 Delete character under cursor 21 19 Delete character under cursor or signal end of file on an empty line 22 20 Delete character under cursor or list completions if at end of line [all …]
|
| /dragonfly/contrib/tcsh-6/nls/spanish/ |
| HD | set4 | 7 5 cursor hasta posición horizontal 14 12 cursor de línea de estado 15 13 cursor en posición inicial 19 17 envía cursor hacia abajo 20 18 envía cursor hacia la izquierda 21 19 envía cursor hacia la derecha 22 20 envía cursor hacia arriba 28 26 cursor a la línea de estado 29 27 mueve el cursor hacia arriba una línea 34 32 mueve el cursor varias líneas hacia abajo [all …]
|
| HD | set3 | 4 2 Borrar el carácter detrás del cursor 5 3 Cortar desde el comienzo de la palabra hasta el cursor - se guarda en el buffer 6 4 Cortar desde el comienzo de la línea hasta el cursor - se guarda en el buffer 9 7 Convertir en mayúsculas los caracteres desde el cursor hasta el final de la palabra 10 8 Vi: cambiar a mayúsculas o minúsculas el carácter bajo el cursor y avanza una posición 17 15 Copia la palabra hasta el cursor 18 16 Copia el área entre la marca y el cursor al buffer 20 18 Borra el carácter bajo el cursor 21 19 Borra el carácter bajo el cursor o señala el fin de archivo en un archivo vacío 22 20 Borra el carácter bajo el cursor o lista posibles finales si está al final de una línea [all …]
|
| /dragonfly/contrib/tcsh-6/nls/russian/ |
| HD | set3 | 4 2 Delete the character behind cursor 5 3 Cut from beginning of current word to cursor - saved in cut buffer 6 4 Cut from beginning of line to cursor - save in cut buffer 9 7 Capitalize the characters from cursor to end of current word 10 8 Vi change case of character under cursor and advance one character 17 15 Copy current word to cursor 18 16 Copy area between mark and cursor to cut buffer 20 18 Delete character under cursor 21 19 Delete character under cursor or signal end of file on an empty line 22 20 Delete character under cursor or list completions if at end of line [all …]
|
| HD | set4 | 14 12 cursor from status line 15 13 home cursor 28 26 cursor to status line 29 27 cursor up one 34 32 cursor down multiple 36 34 cursor left multiple 37 35 cursor right multiple 38 36 cursor up multiple
|
| /dragonfly/contrib/libpcap/ |
| HD | sf-pcapng.c | 280 read_block(FILE *fp, pcap_t *p, struct block_cursor *cursor, char *errbuf) in read_block() argument 382 cursor->data = bdata; in read_block() 383 cursor->data_remaining = data_remaining - sizeof(struct block_trailer); in read_block() 384 cursor->block_type = bhdr.block_type; in read_block() 389 get_from_block_data(struct block_cursor *cursor, size_t chunk_size, in get_from_block_data() argument 398 if (cursor->data_remaining < chunk_size) { in get_from_block_data() 401 cursor->block_type); in get_from_block_data() 408 data = cursor->data; in get_from_block_data() 409 cursor->data += chunk_size; in get_from_block_data() 410 cursor->data_remaining -= chunk_size; in get_from_block_data() [all …]
|