/third_party/e2fsprogs/lib/ext2fs/ |
D | inline_data.c | 33 errcode_t retval; in ext2fs_inline_data_ea_set() local 35 retval = ext2fs_xattrs_open(data->fs, data->ino, &handle); in ext2fs_inline_data_ea_set() 36 if (retval) in ext2fs_inline_data_ea_set() 37 return retval; in ext2fs_inline_data_ea_set() 39 retval = ext2fs_xattrs_read(handle); in ext2fs_inline_data_ea_set() 40 if (retval) in ext2fs_inline_data_ea_set() 43 retval = ext2fs_xattr_set(handle, "system.data", in ext2fs_inline_data_ea_set() 47 return retval; in ext2fs_inline_data_ea_set() 53 errcode_t retval; in ext2fs_inline_data_ea_get() local 58 retval = ext2fs_xattrs_open(data->fs, data->ino, &handle); in ext2fs_inline_data_ea_get() [all …]
|
D | namei.c | 35 errcode_t retval; in follow_link() local 44 retval = ext2fs_read_inode (fs, inode, &ei); in follow_link() 45 if (retval) return retval; in follow_link() 56 retval = ext2fs_get_memzero(ei.i_size, &buffer); in follow_link() 57 if (retval) in follow_link() 58 return retval; in follow_link() 60 retval = ext2fs_inline_data_get(fs, inode, in follow_link() 62 if (retval) { in follow_link() 64 return retval; in follow_link() 68 retval = ext2fs_bmap2(fs, inode, &ei, NULL, 0, 0, NULL, &blk); in follow_link() [all …]
|
D | fileio.c | 48 errcode_t retval; in ext2fs_file_open2() local 58 retval = ext2fs_get_mem(sizeof(struct ext2_file), &file); in ext2fs_file_open2() 59 if (retval) in ext2fs_file_open2() 60 return retval; in ext2fs_file_open2() 71 retval = ext2fs_read_inode(fs, ino, &file->inode); in ext2fs_file_open2() 72 if (retval) in ext2fs_file_open2() 76 retval = ext2fs_get_array(3, fs->blocksize, &file->buf); in ext2fs_file_open2() 77 if (retval) in ext2fs_file_open2() 87 return retval; in ext2fs_file_open2() 130 errcode_t retval; in ext2fs_file_flush() local [all …]
|
D | punch.c | 53 errcode_t retval; in ind_punch() local 75 retval = ext2fs_read_ind_block(fs, b, block_buf); in ind_punch() 76 if (retval) in ind_punch() 77 return retval; in ind_punch() 79 retval = ind_punch(fs, inode, block_buf + fs->blocksize, in ind_punch() 83 if (retval) in ind_punch() 84 return retval; in ind_punch() 85 retval = ext2fs_write_ind_block(fs, b, block_buf); in ind_punch() 86 if (retval) in ind_punch() 87 return retval; in ind_punch() [all …]
|
D | bmap.c | 41 errcode_t retval; in block_ind_bmap() local 50 retval = io_channel_read_blk(fs->io, ind, 1, block_buf); in block_ind_bmap() 51 if (retval) in block_ind_bmap() 52 return retval; in block_ind_bmap() 71 retval = ext2fs_alloc_block(fs, b, in block_ind_bmap() 73 if (retval) in block_ind_bmap() 74 return retval; in block_ind_bmap() 82 retval = io_channel_write_blk(fs->io, ind, 1, block_buf); in block_ind_bmap() 83 if (retval) in block_ind_bmap() 84 return retval; in block_ind_bmap() [all …]
|
D | rw_bitmaps.c | 59 errcode_t retval; in write_bitmaps() local 76 retval = io_channel_alloc_buf(fs->io, 0, &block_buf); in write_bitmaps() 77 if (retval) in write_bitmaps() 84 retval = io_channel_alloc_buf(fs->io, 0, &inode_buf); in write_bitmaps() 85 if (retval) in write_bitmaps() 98 retval = ext2fs_get_block_bitmap_range2(fs->block_map, in write_bitmaps() 100 if (retval) in write_bitmaps() 114 retval = ext2fs_block_bitmap_csum_set(fs, i, block_buf, in write_bitmaps() 116 if (retval) in write_bitmaps() 117 return retval; in write_bitmaps() [all …]
|
D | tst_iscan.c | 73 errcode_t retval; in setup() local 86 retval = ext2fs_initialize("test fs", EXT2_FLAG_64BITS, ¶m, in setup() 88 if (retval) { in setup() 89 com_err("setup", retval, in setup() 93 retval = ext2fs_allocate_tables(test_fs); in setup() 94 if (retval) { in setup() 95 com_err("setup", retval, in setup() 99 retval = ext2fs_allocate_block_bitmap(test_fs, "bad block map", in setup() 101 if (retval) { in setup() 102 com_err("setup", retval, in setup() [all …]
|
D | mmp.c | 48 errcode_t retval = 0; in ext2fs_mmp_read() local 75 retval = EXT2_ET_MMP_OPEN_DIRECT; in ext2fs_mmp_read() 83 retval = ext2fs_get_memalign(fs->blocksize, align, in ext2fs_mmp_read() 85 if (retval) in ext2fs_mmp_read() 86 return retval; in ext2fs_mmp_read() 92 retval = EXT2_ET_LLSEEK_FAILED; in ext2fs_mmp_read() 97 retval = EXT2_ET_SHORT_READ; in ext2fs_mmp_read() 105 retval = EXT2_ET_MMP_CSUM_INVALID; in ext2fs_mmp_read() 115 retval = EXT2_ET_MMP_MAGIC_INVALID; in ext2fs_mmp_read() 120 return retval; in ext2fs_mmp_read() [all …]
|
D | expanddir.c | 41 errcode_t retval; in expand_dir_proc() local 53 retval = ext2fs_new_block2(fs, es->goal, 0, &new_blk); in expand_dir_proc() 54 if (retval) { in expand_dir_proc() 55 es->err = retval; in expand_dir_proc() 62 retval = ext2fs_new_dir_block(fs, 0, 0, &block); in expand_dir_proc() 63 if (retval) { in expand_dir_proc() 64 es->err = retval; in expand_dir_proc() 68 retval = ext2fs_write_dir_block4(fs, new_blk, block, 0, in expand_dir_proc() 72 retval = ext2fs_zero_blocks2(fs, new_blk, 1, NULL, NULL); in expand_dir_proc() 75 if (retval) { in expand_dir_proc() [all …]
|
D | undo_io.c | 190 errcode_t retval; in write_undo_indexes() local 205 retval = io_channel_write_blk64(data->undo_file, in write_undo_indexes() 208 if (retval) in write_undo_indexes() 209 return retval; in write_undo_indexes() 224 retval = io_channel_read_blk64(channel, 1, -SUPERBLOCK_SIZE, &super); in write_undo_indexes() 225 if (retval) in write_undo_indexes() 246 retval = io_channel_write_blk64(data->undo_file, 0, in write_undo_indexes() 249 if (retval) in write_undo_indexes() 257 retval = io_channel_write_blk64(data->undo_file, data->super_blk_num, in write_undo_indexes() 259 if (retval) in write_undo_indexes() [all …]
|
D | extent.c | 222 errcode_t retval; in ext2fs_extent_open2() local 232 retval = ext2fs_get_mem(sizeof(struct ext2_extent_handle), &handle); in ext2fs_extent_open2() 233 if (retval) in ext2fs_extent_open2() 234 return retval; in ext2fs_extent_open2() 244 retval = ext2fs_read_inode(fs, ino, handle->inode); in ext2fs_extent_open2() 245 if (retval) in ext2fs_extent_open2() 265 retval = EXT2_ET_INODE_NOT_EXTENT; in ext2fs_extent_open2() 269 retval = ext2fs_extent_header_verify(eh, sizeof(handle->inode->i_block)); in ext2fs_extent_open2() 270 if (retval) in ext2fs_extent_open2() 277 retval = ext2fs_get_memzero(handle->max_paths * in ext2fs_extent_open2() [all …]
|
D | mkdir.c | 39 errcode_t retval; in ext2fs_mkdir() local 62 retval = ext2fs_new_inode(fs, parent, LINUX_S_IFDIR | 0755, in ext2fs_mkdir() 64 if (retval) in ext2fs_mkdir() 73 retval = ext2fs_new_block2(fs, ext2fs_find_inode_goal(fs, ino, in ext2fs_mkdir() 77 if (retval) in ext2fs_mkdir() 85 retval = ext2fs_new_dir_inline_data(fs, ino, parent, in ext2fs_mkdir() 88 retval = ext2fs_new_dir_block(fs, ino, parent, &block); in ext2fs_mkdir() 89 if (retval) in ext2fs_mkdir() 96 retval = ext2fs_read_inode(fs, parent, &parent_inode); in ext2fs_mkdir() 97 if (retval) in ext2fs_mkdir() [all …]
|
D | get_pathname.c | 51 errcode_t retval; in get_pathname_proc() local 59 retval = ext2fs_get_mem(name_len + 1, &gp->name); in get_pathname_proc() 60 if (retval) { in get_pathname_proc() 61 gp->errcode = retval; in get_pathname_proc() 77 errcode_t retval; in ext2fs_get_pathname_int() local 80 retval = ext2fs_get_mem(2, name); in ext2fs_get_pathname_int() 81 if (retval) in ext2fs_get_pathname_int() 82 return retval; in ext2fs_get_pathname_int() 88 retval = ext2fs_get_mem(4, name); in ext2fs_get_pathname_int() 89 if (retval) in ext2fs_get_pathname_int() [all …]
|
D | test_io.c | 117 errcode_t retval = 0; in test_flush() local 124 retval = io_channel_flush(data->real); in test_flush() 128 retval ? error_message(retval) : "OK"); in test_flush() 130 return retval; in test_flush() 176 errcode_t retval; in test_open() local 181 retval = ext2fs_get_mem(sizeof(struct struct_io_channel), &io); in test_open() 182 if (retval) in test_open() 186 retval = ext2fs_get_mem(sizeof(struct test_private_data), &data); in test_open() 187 if (retval) in test_open() 190 retval = ext2fs_get_mem(strlen(name)+1, &io->name); in test_open() [all …]
|
/third_party/mesa3d/include/android_stub/log/ |
D | log_event_list.h | 120 int retval = android_log_destroy(&ctx); in close() local 121 if (retval < 0) ret = retval; in close() 122 return retval; in close() 136 int retval = android_log_write_list_begin(ctx); in begin() local 137 if (retval < 0) ret = retval; in begin() 141 int retval = android_log_write_list_end(ctx); in end() local 142 if (retval < 0) ret = retval; in end() 147 int retval = android_log_write_int32(ctx, value); variable 148 if (retval < 0) ret = retval; 153 int retval = android_log_write_int32(ctx, static_cast<int32_t>(value)); variable [all …]
|
/third_party/e2fsprogs/tests/progs/ |
D | test_rel.c | 108 errcode_t retval; in display_irel_entry() local 116 retval = ext2fs_irel_start_iter_ref(irel, old); in display_irel_entry() 117 if (retval) { in display_irel_entry() 119 error_message(retval)); in display_irel_entry() 123 retval = ext2fs_irel_next_ref(irel, &ref); in display_irel_entry() 124 if (retval) { in display_irel_entry() 125 printf("(%s) ", error_message(retval)); in display_irel_entry() 147 errcode_t retval; in do_brel_ma_create() local 156 retval = ext2fs_brel_memarray_create(argv[1], max_blk, &brel); in do_brel_ma_create() 157 if (retval) { in do_brel_ma_create() [all …]
|
D | test_icount.c | 67 errcode_t retval; in do_create_icount() local 87 retval = ext2fs_create_icount(test_fs, flags, (int) size, in do_create_icount() 89 if (retval) { in do_create_icount() 90 com_err(progname, retval, "while creating icount"); in do_create_icount() 112 errcode_t retval; in do_fetch() local 124 retval = ext2fs_icount_fetch(test_icount, ino, &count); in do_fetch() 125 if (retval) { in do_fetch() 126 com_err(argv[0], retval, "while calling ext2fs_icount_fetch"); in do_fetch() 135 errcode_t retval; in do_increment() local 147 retval = ext2fs_icount_increment(test_icount, ino, &count); in do_increment() [all …]
|
/third_party/e2fsprogs/misc/ |
D | create_inode.c | 76 errcode_t retval; in add_link() local 78 retval = ext2fs_read_inode(fs, ino, &inode); in add_link() 79 if (retval) { in add_link() 80 com_err(__func__, retval, _("while reading inode %u"), ino); in add_link() 81 return retval; in add_link() 84 retval = ext2fs_link(fs, parent_ino, name, ino, in add_link() 86 if (retval == EXT2_ET_DIR_NO_SPACE) { in add_link() 87 retval = ext2fs_expand_dir(fs, parent_ino); in add_link() 88 if (retval) { in add_link() 89 com_err(__func__, retval, in add_link() [all …]
|
/third_party/skia/third_party/externals/freetype/src/type1/ |
D | t1driver.c | 192 FT_ULong retval = 0; /* always >= 1 if valid */ in t1_ps_get_font_value() local 202 retval = sizeof ( type1->font_type ); in t1_ps_get_font_value() 203 if ( value && value_len >= retval ) in t1_ps_get_font_value() 214 retval = sizeof ( val ); in t1_ps_get_font_value() 215 if ( value && value_len >= retval ) in t1_ps_get_font_value() 244 retval = sizeof ( val ); in t1_ps_get_font_value() 245 if ( value && value_len >= retval ) in t1_ps_get_font_value() 268 retval = sizeof ( type1->paint_type ); in t1_ps_get_font_value() 269 if ( value && value_len >= retval ) in t1_ps_get_font_value() 276 retval = ft_strlen( type1->font_name ) + 1; in t1_ps_get_font_value() [all …]
|
/third_party/freetype/src/type1/ |
D | t1driver.c | 192 FT_ULong retval = 0; /* always >= 1 if valid */ in t1_ps_get_font_value() local 202 retval = sizeof ( type1->font_type ); in t1_ps_get_font_value() 203 if ( value && value_len >= retval ) in t1_ps_get_font_value() 214 retval = sizeof ( val ); in t1_ps_get_font_value() 215 if ( value && value_len >= retval ) in t1_ps_get_font_value() 244 retval = sizeof ( val ); in t1_ps_get_font_value() 245 if ( value && value_len >= retval ) in t1_ps_get_font_value() 268 retval = sizeof ( type1->paint_type ); in t1_ps_get_font_value() 269 if ( value && value_len >= retval ) in t1_ps_get_font_value() 276 retval = ft_strlen( type1->font_name ) + 1; in t1_ps_get_font_value() [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/filesystem/unix/ |
D | SDL_sysfilesystem.c | 47 char *retval = NULL; in readSymLink() local 53 char *ptr = (char *) SDL_realloc(retval, (size_t) len); in readSymLink() 59 retval = ptr; in readSymLink() 61 rc = readlink(path, retval, len); in readSymLink() 65 retval[rc] = '\0'; /* readlink doesn't null-terminate. */ in readSymLink() 66 return retval; /* we're good to go. */ in readSymLink() 72 SDL_free(retval); in readSymLink() 80 char *retval = NULL; in SDL_GetBasePath() local 87 retval = SDL_strdup(fullpath); in SDL_GetBasePath() 88 if (!retval) { in SDL_GetBasePath() [all …]
|
/third_party/flutter/skia/third_party/externals/freetype/src/type1/ |
D | t1driver.c | 193 FT_ULong retval = 0; /* always >= 1 if valid */ in t1_ps_get_font_value() local 203 retval = sizeof ( type1->font_type ); in t1_ps_get_font_value() 204 if ( value && value_len >= retval ) in t1_ps_get_font_value() 215 retval = sizeof ( val ); in t1_ps_get_font_value() 216 if ( value && value_len >= retval ) in t1_ps_get_font_value() 245 retval = sizeof ( val ); in t1_ps_get_font_value() 246 if ( value && value_len >= retval ) in t1_ps_get_font_value() 269 retval = sizeof ( type1->paint_type ); in t1_ps_get_font_value() 270 if ( value && value_len >= retval ) in t1_ps_get_font_value() 277 retval = ft_strlen( type1->font_name ) + 1; in t1_ps_get_font_value() [all …]
|
/third_party/e2fsprogs/contrib/android/ |
D | perms.c | 35 errcode_t retval, close_retval; in ino_add_xattr() local 38 retval = ext2fs_xattrs_open(fs, ino, &xhandle); in ino_add_xattr() 39 if (retval) { in ino_add_xattr() 40 com_err(__func__, retval, _("while opening inode %u"), ino); in ino_add_xattr() 41 return retval; in ino_add_xattr() 43 retval = ext2fs_xattrs_read(xhandle); in ino_add_xattr() 44 if (retval) { in ino_add_xattr() 45 com_err(__func__, retval, in ino_add_xattr() 49 retval = ext2fs_xattr_set(xhandle, name, value, value_len); in ino_add_xattr() 50 if (retval) { in ino_add_xattr() [all …]
|
D | fsmap.c | 31 errcode_t retval; in ino_iter_extents() local 38 retval = ext2fs_extent_get(extents, op, &extent); in ino_iter_extents() 39 if (retval) in ino_iter_extents() 56 if (retval == EXT2_ET_EXTENT_NO_NEXT) in ino_iter_extents() 57 retval = 0; in ino_iter_extents() 58 if (retval) { in ino_iter_extents() 59 com_err(__func__, retval, ("getting extents of ino \"%u\""), in ino_iter_extents() 62 return retval; in ino_iter_extents() 68 errcode_t retval; in ino_iter_blocks() local 73 retval = ext2fs_read_inode(fs, ino, &inode); in ino_iter_blocks() [all …]
|
/third_party/gettext/gettext-tools/tests/ |
D | setlocale.c | 39 const char *retval; in category_to_name() local 45 retval = "LC_COLLATE"; in category_to_name() 50 retval = "LC_CTYPE"; in category_to_name() 55 retval = "LC_MONETARY"; in category_to_name() 60 retval = "LC_NUMERIC"; in category_to_name() 65 retval = "LC_TIME"; in category_to_name() 70 retval = "LC_MESSAGES"; in category_to_name() 75 retval = "LC_RESPONSE"; in category_to_name() 82 retval = "LC_ALL"; in category_to_name() 87 retval = "LC_XXX"; in category_to_name() [all …]
|