Home
last modified time | relevance | path

Searched refs:entry (Results 1 – 25 of 2093) sorted by relevance

12345678910>>...84

/freebsd/contrib/libarchive/libarchive/
H A Darchive_entry.c154 archive_entry_clear(struct archive_entry *entry) in archive_entry_clear() argument
156 if (entry == NULL) in archive_entry_clear()
158 archive_mstring_clean(&entry->ae_fflags_text); in archive_entry_clear()
159 archive_mstring_clean(&entry->ae_gname); in archive_entry_clear()
160 archive_mstring_clean(&entry->ae_linkname); in archive_entry_clear()
161 archive_mstring_clean(&entry->ae_pathname); in archive_entry_clear()
162 archive_mstring_clean(&entry->ae_sourcepath); in archive_entry_clear()
163 archive_mstring_clean(&entry->ae_uname); in archive_entry_clear()
164 archive_entry_copy_mac_metadata(entry, NULL, 0); in archive_entry_clear()
165 archive_acl_clear(&entry->acl); in archive_entry_clear()
[all …]
H A Darchive_entry_stat.c39 archive_entry_stat(struct archive_entry *entry)
42 if (entry->stat == NULL) { in archive_entry_stat()
43 entry->stat = calloc(1, sizeof(*st)); in archive_entry_stat()
44 if (entry->stat == NULL) in archive_entry_stat()
46 entry->stat_valid = 0; in archive_entry_stat()
57 if (entry->stat_valid) in archive_entry_stat()
58 return (entry->stat); in archive_entry_stat()
60 st = entry->stat; in archive_entry_stat()
65 st->st_atime = archive_entry_atime(entry); in archive_entry_stat()
67 st->st_birthtime = archive_entry_birthtime(entry); in archive_entry_stat()
40 archive_entry_stat(struct archive_entry * entry) archive_entry_stat() argument
[all...]
/freebsd/contrib/libarchive/libarchive/test/
H A Dtest_link_resolver.c29 struct archive_entry *entry, *e2; in test_linkify_tar() local
38 assert(NULL != (entry = archive_entry_new())); in test_linkify_tar()
39 archive_entry_set_pathname(entry, "test1"); in test_linkify_tar()
40 archive_entry_set_ino(entry, 1); in test_linkify_tar()
41 archive_entry_set_dev(entry, 2); in test_linkify_tar()
42 archive_entry_set_nlink(entry, 1); in test_linkify_tar()
43 archive_entry_set_size(entry, 10); in test_linkify_tar()
44 archive_entry_linkify(resolver, &entry, &e2); in test_linkify_tar()
48 assertEqualInt(10, archive_entry_size(entry)); in test_linkify_tar()
49 assertEqualString("test1", archive_entry_pathname(entry)); in test_linkify_tar()
[all …]
H A Dtest_pax_filename_encoding.c52 struct archive_entry *entry; in test_pax_filename_encoding_1() local
69 assertEqualInt(ARCHIVE_WARN, archive_read_next_header(a, &entry)); in test_pax_filename_encoding_1()
70 assertEqualString(filename, archive_entry_pathname(entry)); in test_pax_filename_encoding_1()
77 assertEqualInt(ARCHIVE_OK, archive_read_next_header(a, &entry)); in test_pax_filename_encoding_1()
78 assertEqualString(filename, archive_entry_pathname(entry)); in test_pax_filename_encoding_1()
92 struct archive_entry *entry; in test_pax_filename_encoding_2() local
122 assert((entry = archive_entry_new()) != NULL); in test_pax_filename_encoding_2()
124 archive_entry_copy_pathname(entry, filename); in test_pax_filename_encoding_2()
125 archive_entry_copy_gname(entry, filename); in test_pax_filename_encoding_2()
126 archive_entry_copy_uname(entry, filename); in test_pax_filename_encoding_2()
[all …]
H A Dtest_write_format_tar_v7tar.c53 struct archive_entry *entry; in DEFINE_TEST()
86 assert((entry = archive_entry_new()) != NULL); in DEFINE_TEST()
87 archive_entry_set_mtime(entry, 1, 10); in DEFINE_TEST()
88 archive_entry_set_pathname(entry, "file"); in DEFINE_TEST()
89 archive_entry_set_mode(entry, S_IFREG | 0664); in DEFINE_TEST()
90 archive_entry_set_size(entry, 10); in DEFINE_TEST()
91 archive_entry_set_uid(entry, 80); in DEFINE_TEST()
92 archive_entry_set_gid(entry, 90); in DEFINE_TEST()
93 archive_entry_set_dev(entry, 12); in DEFINE_TEST()
94 archive_entry_set_ino(entry, 8 in DEFINE_TEST()
54 struct archive_entry *entry; DEFINE_TEST() local
[all...]
H A Dtest_zip_filename_encoding.c32 struct archive_entry *entry; in DEFINE_TEST() local
56 entry = archive_entry_new2(a); in DEFINE_TEST()
58 archive_entry_set_pathname(entry, "\xD0\xBF\xD1\x80\xD0\xB8"); in DEFINE_TEST()
59 archive_entry_set_filetype(entry, AE_IFREG); in DEFINE_TEST()
60 archive_entry_set_size(entry, 0); in DEFINE_TEST()
61 assertEqualInt(ARCHIVE_OK, archive_write_header(a, entry)); in DEFINE_TEST()
62 archive_entry_free(entry); in DEFINE_TEST()
81 entry = archive_entry_new2(a); in DEFINE_TEST()
83 archive_entry_set_pathname(entry, "\xD0\xBF\xD1\x80\xD0\xB8"); in DEFINE_TEST()
84 archive_entry_set_filetype(entry, AE_IFREG); in DEFINE_TEST()
[all …]
H A Dtest_write_format_tar_ustar.c52 struct archive_entry *entry; in DEFINE_TEST()
91 assert((entry = archive_entry_new()) != NULL); in DEFINE_TEST()
92 archive_entry_set_mtime(entry, 1, 10); in DEFINE_TEST()
93 archive_entry_set_pathname(entry, "file"); in DEFINE_TEST()
94 archive_entry_set_mode(entry, S_IFREG | 0664); in DEFINE_TEST()
95 archive_entry_set_size(entry, 10); in DEFINE_TEST()
96 archive_entry_set_uid(entry, 80); in DEFINE_TEST()
97 archive_entry_set_gid(entry, 90); in DEFINE_TEST()
98 archive_entry_set_dev(entry, 12); in DEFINE_TEST()
99 archive_entry_set_ino(entry, 8 in DEFINE_TEST()
53 struct archive_entry *entry; DEFINE_TEST() local
[all...]
H A Dtest_gnutar_filename_encoding.c31 struct archive_entry *entry; in DEFINE_TEST() local
55 entry = archive_entry_new2(a); in DEFINE_TEST()
57 archive_entry_set_pathname(entry, "\xD0\xBF\xD1\x80\xD0\xB8"); in DEFINE_TEST()
58 archive_entry_set_filetype(entry, AE_IFREG); in DEFINE_TEST()
59 archive_entry_set_size(entry, 0); in DEFINE_TEST()
60 assertEqualInt(ARCHIVE_OK, archive_write_header(a, entry)); in DEFINE_TEST()
61 archive_entry_free(entry); in DEFINE_TEST()
72 struct archive_entry *entry; in DEFINE_TEST() local
96 entry = archive_entry_new2(a); in DEFINE_TEST()
98 archive_entry_set_pathname(entry, "\xD0\xD2\xC9"); in DEFINE_TEST()
[all …]
H A Dtest_ustar_filename_encoding.c32 struct archive_entry *entry; in DEFINE_TEST() local
56 entry = archive_entry_new2(a); in DEFINE_TEST()
58 archive_entry_set_pathname(entry, "\xD0\xBF\xD1\x80\xD0\xB8"); in DEFINE_TEST()
59 archive_entry_set_filetype(entry, AE_IFREG); in DEFINE_TEST()
60 archive_entry_set_size(entry, 0); in DEFINE_TEST()
61 assertEqualInt(ARCHIVE_OK, archive_write_header(a, entry)); in DEFINE_TEST()
62 archive_entry_free(entry); in DEFINE_TEST()
73 struct archive_entry *entry; in DEFINE_TEST() local
97 entry = archive_entry_new2(a); in DEFINE_TEST()
99 archive_entry_set_pathname(entry, "\xD0\xD2\xC9"); in DEFINE_TEST()
[all …]
H A Dtest_entry_strmode.c29 struct archive_entry *entry; in DEFINE_TEST()
31 assert((entry = archive_entry_new()) != NULL); in DEFINE_TEST()
33 archive_entry_set_mode(entry, AE_IFREG | 0642); in DEFINE_TEST()
34 assertEqualString(archive_entry_strmode(entry), "-rw-r---w- "); in DEFINE_TEST()
37 archive_entry_set_mode(entry, AE_IFREG | 0644); in DEFINE_TEST()
38 archive_entry_set_hardlink(entry, "link"); in DEFINE_TEST()
39 assertEqualString(archive_entry_strmode(entry), "-rw-r--r-- "); in DEFINE_TEST()
41 archive_entry_set_mode(entry, 0640); in DEFINE_TEST()
42 archive_entry_set_hardlink(entry, "link"); in DEFINE_TEST()
43 assertEqualString(archive_entry_strmode(entry), "hr in DEFINE_TEST()
30 struct archive_entry *entry; DEFINE_TEST() local
[all...]
H A Dtest_write_format_cpio_odc.c46 struct archive_entry *entry; in DEFINE_TEST()
65 assert((entry = archive_entry_new()) != NULL); in DEFINE_TEST()
66 archive_entry_set_mtime(entry, 1, 10); in DEFINE_TEST()
67 archive_entry_set_pathname(entry, "file"); in DEFINE_TEST()
68 archive_entry_set_mode(entry, S_IFREG | 0664); in DEFINE_TEST()
69 archive_entry_set_size(entry, 10); in DEFINE_TEST()
70 archive_entry_set_uid(entry, 80); in DEFINE_TEST()
71 archive_entry_set_gid(entry, 90); in DEFINE_TEST()
72 archive_entry_set_dev(entry, 12); in DEFINE_TEST()
73 archive_entry_set_ino(entry, 8 in DEFINE_TEST()
48 struct archive_entry *entry; DEFINE_TEST() local
[all...]
/freebsd/contrib/wpa/src/ap/
H A Dpmksa_cache_auth.c31 void (*free_cb)(struct rsn_pmksa_cache_entry *entry, void *ctx);
39 static void _pmksa_cache_free_entry(struct rsn_pmksa_cache_entry *entry) in _pmksa_cache_free_entry() argument
41 os_free(entry->vlan_desc); in _pmksa_cache_free_entry()
42 os_free(entry->identity); in _pmksa_cache_free_entry()
43 os_free(entry->dpp_pkhash); in _pmksa_cache_free_entry()
44 wpabuf_free(entry->cui); in _pmksa_cache_free_entry()
46 radius_free_class(&entry->radius_class); in _pmksa_cache_free_entry()
48 bin_clear_free(entry, sizeof(*entry)); in _pmksa_cache_free_entry()
53 struct rsn_pmksa_cache_entry *entry) in pmksa_cache_free_entry() argument
61 pmksa->free_cb(entry, pmksa->ctx); in pmksa_cache_free_entry()
[all …]
/freebsd/contrib/expat/tests/
H A Dmemcheck.c58 AllocationEntry *const entry in tracking_malloc() local
61 if (entry == NULL) { in tracking_malloc()
65 entry->num_bytes = size; in tracking_malloc()
66 entry->allocation = malloc(size); in tracking_malloc()
67 if (entry->allocation == NULL) { in tracking_malloc()
68 free(entry); in tracking_malloc()
71 entry->next = NULL; in tracking_malloc()
75 entry->prev = NULL; in tracking_malloc()
76 alloc_head = alloc_tail = entry; in tracking_malloc()
78 entry->prev = alloc_tail; in tracking_malloc()
[all …]
/freebsd/contrib/wpa/src/rsn_supp/
H A Dpmksa_cache.c27 void (*free_cb)(struct rsn_pmksa_cache_entry *entry, void *ctx,
29 bool (*is_current_cb)(struct rsn_pmksa_cache_entry *entry,
31 void (*notify_cb)(struct rsn_pmksa_cache_entry *entry, void *ctx);
39 static void _pmksa_cache_free_entry(struct rsn_pmksa_cache_entry *entry) in _pmksa_cache_free_entry() argument
41 bin_clear_free(entry, sizeof(*entry)); in _pmksa_cache_free_entry()
46 struct rsn_pmksa_cache_entry *entry, in pmksa_cache_free_entry() argument
50 wpa_sm_remove_pmkid(pmksa->sm, entry->network_ctx, entry->aa, in pmksa_cache_free_entry()
51 entry->pmkid, in pmksa_cache_free_entry()
52 entry->fils_cache_id_set ? in pmksa_cache_free_entry()
53 entry->fils_cache_id : NULL); in pmksa_cache_free_entry()
[all …]
/freebsd/usr.sbin/bsnmpd/modules/snmp_hostres/
H A Dhostres_swrun_tbl.c115 struct swrun_entry *entry; in swrun_entry_create() local
117 if ((entry = malloc(sizeof(*entry))) == NULL) { in swrun_entry_create()
121 memset(entry, 0, sizeof(*entry)); in swrun_entry_create()
122 entry->index = idx; in swrun_entry_create()
124 INSERT_OBJECT_INT(entry, &swrun_tbl); in swrun_entry_create()
125 return (entry); in swrun_entry_create()
132 swrun_entry_delete(struct swrun_entry *entry) in swrun_entry_delete() argument
135 assert(entry != NULL); in swrun_entry_delete()
137 TAILQ_REMOVE(&swrun_tbl, entry, link); in swrun_entry_delete()
139 free(entry->name); in swrun_entry_delete()
[all …]
H A Dhostres_storage_tbl.c94 struct storage_entry *entry; member
140 struct storage_entry *entry; in storage_entry_create() local
185 if ((entry = malloc(sizeof(*entry))) == NULL) { in storage_entry_create()
189 memset(entry, 0, sizeof(*entry)); in storage_entry_create()
191 entry->index = map->hrIndex; in storage_entry_create()
193 if ((entry->descr = strdup(map->a_name)) == NULL) { in storage_entry_create()
194 free(entry); in storage_entry_create()
198 map->entry = entry; in storage_entry_create()
200 INSERT_OBJECT_INT(entry, &storage_tbl); in storage_entry_create()
202 return (entry); in storage_entry_create()
[all …]
H A Dhostres_fs_tbl.c94 struct fs_entry *entry; member
152 struct fs_entry *entry; in fs_entry_create() local
190 map->entry = NULL; in fs_entry_create()
198 if ((entry = malloc(sizeof(*entry))) == NULL) { in fs_entry_create()
203 if ((entry->mountPoint = strdup(name)) == NULL) { in fs_entry_create()
205 free(entry); in fs_entry_create()
209 entry->index = map->hrIndex; in fs_entry_create()
210 map->entry = entry; in fs_entry_create()
212 INSERT_OBJECT_INT(entry, &fs_tbl); in fs_entry_create()
213 return (entry); in fs_entry_create()
[all …]
H A Dhostres_swinstalled_tbl.c93 struct swins_entry *entry; member
126 struct swins_entry *entry; in swins_entry_create() local
171 if ((entry = malloc(sizeof(*entry))) == NULL) { in swins_entry_create()
175 memset(entry, 0, sizeof(*entry)); in swins_entry_create()
177 if ((entry->name = strdup(map->name)) == NULL) { in swins_entry_create()
179 free(entry); in swins_entry_create()
183 entry->index = map->index; in swins_entry_create()
184 map->entry = entry; in swins_entry_create()
186 INSERT_OBJECT_INT(entry, &swins_tbl); in swins_entry_create()
188 return (entry); in swins_entry_create()
[all …]
/freebsd/sys/dev/iommu/
H A Diommu_gas.c31 #define RB_AUGMENT_CHECK(entry) iommu_gas_augment_entry(entry) argument
110 iommu_gas_free_entry(struct iommu_map_entry *entry) in iommu_gas_free_entry() argument
115 n = vm_page_free_pages_toq(&entry->pgtbl_free, false); in iommu_gas_free_entry()
119 domain = entry->domain; in iommu_gas_free_entry()
122 uma_zfree(iommu_map_entry_zone, entry); in iommu_gas_free_entry()
155 iommu_gas_augment_entry(struct iommu_map_entry *entry) in iommu_gas_augment_entry() argument
161 bound = entry->start; in iommu_gas_augment_entry()
162 if ((child = RB_LEFT(entry, rb_entry)) != NULL) { in iommu_gas_augment_entry()
166 delta = bound - entry->first; in iommu_gas_augment_entry()
167 entry->first = bound; in iommu_gas_augment_entry()
[all …]
/freebsd/lib/libmt/
H A Dmtlib.c60 struct mt_status_entry *entry; in mt_start_element() local
85 entry = malloc(sizeof(*entry)); in mt_start_element()
86 if (entry == NULL) { in mt_start_element()
90 sizeof(*entry)); in mt_start_element()
93 bzero(entry, sizeof(*entry)); in mt_start_element()
94 STAILQ_INIT(&entry->nv_list); in mt_start_element()
95 STAILQ_INIT(&entry->child_entries); in mt_start_element()
96 entry->entry_name = strdup(name); in mt_start_element()
97 mtinfo->cur_entry[mtinfo->level] = entry; in mt_start_element()
99 STAILQ_INSERT_TAIL(&mtinfo->entries, entry, links); in mt_start_element()
[all …]
/freebsd/sys/dev/drm2/ttm/
H A Dttm_execbuf_util.c36 struct ttm_validate_buffer *entry; in ttm_eu_backoff_reservation_locked() local
38 list_for_each_entry(entry, list, head) { in ttm_eu_backoff_reservation_locked()
39 struct ttm_buffer_object *bo = entry->bo; in ttm_eu_backoff_reservation_locked()
40 if (!entry->reserved) in ttm_eu_backoff_reservation_locked()
43 if (entry->removed) { in ttm_eu_backoff_reservation_locked()
45 entry->removed = false; in ttm_eu_backoff_reservation_locked()
48 entry->reserved = false; in ttm_eu_backoff_reservation_locked()
56 struct ttm_validate_buffer *entry; in ttm_eu_del_from_lru_locked() local
58 list_for_each_entry(entry, list, head) { in ttm_eu_del_from_lru_locked()
59 struct ttm_buffer_object *bo = entry->bo; in ttm_eu_del_from_lru_locked()
[all …]
/freebsd/sys/fs/ext2fs/
H A Dext2_extattr.c159 ext2_extattr_check(struct ext2fs_extattr_entry *entry, char *end) in ext2_extattr_check() argument
163 while (!EXT2_IS_LAST_ENTRY(entry)) { in ext2_extattr_check()
164 next = EXT2_EXTATTR_NEXT(entry); in ext2_extattr_check()
168 entry = next; in ext2_extattr_check()
197 struct ext2fs_extattr_entry *entry; in ext2_extattr_inode_list() local
231 for (entry = EXT2_IFIRST(header); !EXT2_IS_LAST_ENTRY(entry); in ext2_extattr_inode_list()
232 entry = EXT2_EXTATTR_NEXT(entry)) { in ext2_extattr_inode_list()
233 if (ext2_extattr_attrnamespace_to_bsd(entry->e_name_index) != in ext2_extattr_inode_list()
237 name_len = entry->e_name_len; in ext2_extattr_inode_list()
238 attr_name = ext2_extattr_name_to_bsd(entry->e_name_index, in ext2_extattr_inode_list()
[all …]
/freebsd/sys/dev/drm2/
H A Ddrm_scatter.c42 void drm_sg_cleanup(struct drm_sg_mem * entry) in drm_sg_cleanup() argument
44 if (entry == NULL) in drm_sg_cleanup()
47 if (entry->vaddr != NULL) in drm_sg_cleanup()
48 kmem_free(entry->vaddr, IDX_TO_OFF(entry->pages)); in drm_sg_cleanup()
50 free(entry->busaddr, DRM_MEM_SGLISTS); in drm_sg_cleanup()
51 free(entry, DRM_MEM_DRIVER); in drm_sg_cleanup()
56 struct drm_sg_mem *entry; in drm_sg_alloc() local
68 entry = malloc(sizeof(*entry), DRM_MEM_DRIVER, M_NOWAIT | M_ZERO); in drm_sg_alloc()
69 if (!entry) in drm_sg_alloc()
75 entry->pages = atop(size); in drm_sg_alloc()
[all …]
/freebsd/sys/contrib/openzfs/module/os/linux/spl/
H A Dspl-tsd.c101 tsd_hash_entry_t *entry; in tsd_hash_search() local
109 entry = list_entry(node, tsd_hash_entry_t, he_list); in tsd_hash_search()
110 if ((entry->he_key == key) && (entry->he_pid == pid)) { in tsd_hash_search()
112 return (entry); in tsd_hash_search()
130 tsd_hash_entry_t *entry; in tsd_hash_dtor() local
133 entry = hlist_entry(work->first, tsd_hash_entry_t, he_list); in tsd_hash_dtor()
134 hlist_del(&entry->he_list); in tsd_hash_dtor()
136 if (entry->he_dtor && entry->he_pid != DTOR_PID) in tsd_hash_dtor()
137 entry->he_dtor(entry->he_value); in tsd_hash_dtor()
139 kmem_free(entry, sizeof (tsd_hash_entry_t)); in tsd_hash_dtor()
[all …]
/freebsd/tests/sys/fs/fusefs/
H A Dlookup.cc76 SET_OUT_HEADER_LEN(out, entry); in TEST_F()
77 out.body.entry.nodeid = ino; in TEST_F()
78 out.body.entry.attr_valid = UINT64_MAX; in TEST_F()
79 out.body.entry.attr.ino = ino; // Must match nodeid in TEST_F()
80 out.body.entry.attr.mode = S_IFREG | 0644; in TEST_F()
81 out.body.entry.attr.size = 1; in TEST_F()
82 out.body.entry.attr.blocks = 2; in TEST_F()
83 out.body.entry.attr.atime = 3; in TEST_F()
84 out.body.entry.attr.mtime = 4; in TEST_F()
85 out.body.entry.attr.ctime = 5; in TEST_F()
[all …]

12345678910>>...84