Home
last modified time | relevance | path

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

12345678910>>...83

/trueos/contrib/libarchive/libarchive/
HDarchive_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_hardlink); 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_symlink); in archive_entry_clear()
164 archive_mstring_clean(&entry->ae_uname); in archive_entry_clear()
165 archive_entry_copy_mac_metadata(entry, NULL, 0); in archive_entry_clear()
[all …]
HDarchive_entry_stat.c40 archive_entry_stat(struct archive_entry *entry) in archive_entry_stat() argument
43 if (entry->stat == NULL) { in archive_entry_stat()
44 entry->stat = calloc(1, sizeof(*st)); in archive_entry_stat()
45 if (entry->stat == NULL) in archive_entry_stat()
47 entry->stat_valid = 0; in archive_entry_stat()
58 if (entry->stat_valid) in archive_entry_stat()
59 return (entry->stat); in archive_entry_stat()
61 st = entry->stat; in archive_entry_stat()
66 st->st_atime = archive_entry_atime(entry); in archive_entry_stat()
68 st->st_birthtime = archive_entry_birthtime(entry); in archive_entry_stat()
[all …]
/trueos/contrib/libarchive/libarchive/test/
HDtest_link_resolver.c30 struct archive_entry *entry, *e2; in test_linkify_tar() local
39 assert(NULL != (entry = archive_entry_new())); in test_linkify_tar()
40 archive_entry_set_pathname(entry, "test1"); in test_linkify_tar()
41 archive_entry_set_ino(entry, 1); in test_linkify_tar()
42 archive_entry_set_dev(entry, 2); in test_linkify_tar()
43 archive_entry_set_nlink(entry, 1); in test_linkify_tar()
44 archive_entry_set_size(entry, 10); in test_linkify_tar()
45 archive_entry_linkify(resolver, &entry, &e2); in test_linkify_tar()
49 assertEqualInt(10, archive_entry_size(entry)); in test_linkify_tar()
50 assertEqualString("test1", archive_entry_pathname(entry)); in test_linkify_tar()
[all …]
HDtest_pax_filename_encoding.c53 struct archive_entry *entry; in test_pax_filename_encoding_1() local
70 assertEqualInt(ARCHIVE_WARN, archive_read_next_header(a, &entry)); in test_pax_filename_encoding_1()
71 assertEqualString(filename, archive_entry_pathname(entry)); in test_pax_filename_encoding_1()
78 assertEqualInt(ARCHIVE_OK, archive_read_next_header(a, &entry)); in test_pax_filename_encoding_1()
79 assertEqualString(filename, archive_entry_pathname(entry)); in test_pax_filename_encoding_1()
93 struct archive_entry *entry; in test_pax_filename_encoding_2() local
123 assert((entry = archive_entry_new()) != NULL); in test_pax_filename_encoding_2()
125 archive_entry_copy_pathname(entry, filename); in test_pax_filename_encoding_2()
126 archive_entry_copy_gname(entry, filename); in test_pax_filename_encoding_2()
127 archive_entry_copy_uname(entry, filename); in test_pax_filename_encoding_2()
[all …]
HDtest_write_format_tar_v7tar.c54 struct archive_entry *entry; in DEFINE_TEST() local
87 assert((entry = archive_entry_new()) != NULL); in DEFINE_TEST()
88 archive_entry_set_mtime(entry, 1, 10); in DEFINE_TEST()
89 archive_entry_set_pathname(entry, "file"); in DEFINE_TEST()
90 archive_entry_set_mode(entry, S_IFREG | 0664); in DEFINE_TEST()
91 archive_entry_set_size(entry, 10); in DEFINE_TEST()
92 archive_entry_set_uid(entry, 80); in DEFINE_TEST()
93 archive_entry_set_gid(entry, 90); in DEFINE_TEST()
94 archive_entry_set_dev(entry, 12); in DEFINE_TEST()
95 archive_entry_set_ino(entry, 89); in DEFINE_TEST()
[all …]
HDtest_zip_filename_encoding.c34 struct archive_entry *entry; in test_zip_filename_encoding_UTF8() local
58 entry = archive_entry_new2(a); in test_zip_filename_encoding_UTF8()
60 archive_entry_set_pathname(entry, "\xD0\xBF\xD1\x80\xD0\xB8"); in test_zip_filename_encoding_UTF8()
61 archive_entry_set_filetype(entry, AE_IFREG); in test_zip_filename_encoding_UTF8()
62 archive_entry_set_size(entry, 0); in test_zip_filename_encoding_UTF8()
63 assertEqualInt(ARCHIVE_OK, archive_write_header(a, entry)); in test_zip_filename_encoding_UTF8()
64 archive_entry_free(entry); in test_zip_filename_encoding_UTF8()
81 entry = archive_entry_new2(a); in test_zip_filename_encoding_UTF8()
83 archive_entry_set_pathname(entry, "\xD0\xBF\xD1\x80\xD0\xB8"); in test_zip_filename_encoding_UTF8()
84 archive_entry_set_filetype(entry, AE_IFREG); in test_zip_filename_encoding_UTF8()
[all …]
HDtest_write_format_tar_ustar.c53 struct archive_entry *entry; in DEFINE_TEST() local
92 assert((entry = archive_entry_new()) != NULL); in DEFINE_TEST()
93 archive_entry_set_mtime(entry, 1, 10); in DEFINE_TEST()
94 archive_entry_set_pathname(entry, "file"); in DEFINE_TEST()
95 archive_entry_set_mode(entry, S_IFREG | 0664); in DEFINE_TEST()
96 archive_entry_set_size(entry, 10); in DEFINE_TEST()
97 archive_entry_set_uid(entry, 80); in DEFINE_TEST()
98 archive_entry_set_gid(entry, 90); in DEFINE_TEST()
99 archive_entry_set_dev(entry, 12); in DEFINE_TEST()
100 archive_entry_set_ino(entry, 89); in DEFINE_TEST()
[all …]
HDtest_ustar_filename_encoding.c34 struct archive_entry *entry; in test_ustar_filename_encoding_UTF8_CP866() local
58 entry = archive_entry_new2(a); in test_ustar_filename_encoding_UTF8_CP866()
60 archive_entry_set_pathname(entry, "\xD0\xBF\xD1\x80\xD0\xB8"); in test_ustar_filename_encoding_UTF8_CP866()
61 archive_entry_set_filetype(entry, AE_IFREG); in test_ustar_filename_encoding_UTF8_CP866()
62 archive_entry_set_size(entry, 0); in test_ustar_filename_encoding_UTF8_CP866()
63 assertEqualInt(ARCHIVE_OK, archive_write_header(a, entry)); in test_ustar_filename_encoding_UTF8_CP866()
64 archive_entry_free(entry); in test_ustar_filename_encoding_UTF8_CP866()
76 struct archive_entry *entry; in test_ustar_filename_encoding_KOI8R_UTF8() local
100 entry = archive_entry_new2(a); in test_ustar_filename_encoding_KOI8R_UTF8()
102 archive_entry_set_pathname(entry, "\xD0\xD2\xC9"); in test_ustar_filename_encoding_KOI8R_UTF8()
[all …]
HDtest_gnutar_filename_encoding.c34 struct archive_entry *entry; in test_gnutar_filename_encoding_UTF8_CP866() local
58 entry = archive_entry_new2(a); in test_gnutar_filename_encoding_UTF8_CP866()
60 archive_entry_set_pathname(entry, "\xD0\xBF\xD1\x80\xD0\xB8"); in test_gnutar_filename_encoding_UTF8_CP866()
61 archive_entry_set_filetype(entry, AE_IFREG); in test_gnutar_filename_encoding_UTF8_CP866()
62 archive_entry_set_size(entry, 0); in test_gnutar_filename_encoding_UTF8_CP866()
63 assertEqualInt(ARCHIVE_OK, archive_write_header(a, entry)); in test_gnutar_filename_encoding_UTF8_CP866()
64 archive_entry_free(entry); in test_gnutar_filename_encoding_UTF8_CP866()
76 struct archive_entry *entry; in test_gnutar_filename_encoding_KOI8R_UTF8() local
100 entry = archive_entry_new2(a); in test_gnutar_filename_encoding_KOI8R_UTF8()
102 archive_entry_set_pathname(entry, "\xD0\xD2\xC9"); in test_gnutar_filename_encoding_KOI8R_UTF8()
[all …]
HDtest_write_format_cpio_odc.c48 struct archive_entry *entry; in DEFINE_TEST() local
67 assert((entry = archive_entry_new()) != NULL); in DEFINE_TEST()
68 archive_entry_set_mtime(entry, 1, 10); in DEFINE_TEST()
69 archive_entry_set_pathname(entry, "file"); in DEFINE_TEST()
70 archive_entry_set_mode(entry, S_IFREG | 0664); in DEFINE_TEST()
71 archive_entry_set_size(entry, 10); in DEFINE_TEST()
72 archive_entry_set_uid(entry, 80); in DEFINE_TEST()
73 archive_entry_set_gid(entry, 90); in DEFINE_TEST()
74 archive_entry_set_dev(entry, 12); in DEFINE_TEST()
75 archive_entry_set_ino(entry, 89); in DEFINE_TEST()
[all …]
HDtest_entry_strmode.c30 struct archive_entry *entry; in DEFINE_TEST() local
32 assert((entry = archive_entry_new()) != NULL); in DEFINE_TEST()
34 archive_entry_set_mode(entry, AE_IFREG | 0642); in DEFINE_TEST()
35 assertEqualString(archive_entry_strmode(entry), "-rw-r---w- "); in DEFINE_TEST()
38 archive_entry_set_mode(entry, AE_IFREG | 0644); in DEFINE_TEST()
39 archive_entry_set_hardlink(entry, "link"); in DEFINE_TEST()
40 assertEqualString(archive_entry_strmode(entry), "-rw-r--r-- "); in DEFINE_TEST()
42 archive_entry_set_mode(entry, 0640); in DEFINE_TEST()
43 archive_entry_set_hardlink(entry, "link"); in DEFINE_TEST()
44 assertEqualString(archive_entry_strmode(entry), "hrw-r----- "); in DEFINE_TEST()
[all …]
/trueos/contrib/wpa/src/ap/
HDpmksa_cache_auth.c30 void (*free_cb)(struct rsn_pmksa_cache_entry *entry, void *ctx);
38 static void _pmksa_cache_free_entry(struct rsn_pmksa_cache_entry *entry) in _pmksa_cache_free_entry() argument
40 if (entry == NULL) in _pmksa_cache_free_entry()
42 os_free(entry->identity); in _pmksa_cache_free_entry()
43 wpabuf_free(entry->cui); in _pmksa_cache_free_entry()
45 radius_free_class(&entry->radius_class); in _pmksa_cache_free_entry()
47 os_free(entry); in _pmksa_cache_free_entry()
52 struct rsn_pmksa_cache_entry *entry) in pmksa_cache_free_entry() argument
57 pmksa->free_cb(entry, pmksa->ctx); in pmksa_cache_free_entry()
58 pos = pmksa->pmkid[PMKID_HASH(entry->pmkid)]; in pmksa_cache_free_entry()
[all …]
/trueos/sys/x86/iommu/
HDintel_gas.c33 #define RB_AUGMENT(entry) dmar_gas_augment_entry(entry) argument
103 dmar_gas_free_entry(struct dmar_ctx *ctx, struct dmar_map_entry *entry) in dmar_gas_free_entry() argument
106 KASSERT(ctx == entry->ctx, in dmar_gas_free_entry()
108 entry, entry->ctx)); in dmar_gas_free_entry()
110 uma_zfree(dmar_map_entry_zone, entry); in dmar_gas_free_entry()
136 dmar_gas_augment_entry(struct dmar_map_entry *entry) in dmar_gas_augment_entry() argument
140 for (; entry != NULL; entry = RB_PARENT(entry, rb_entry)) { in dmar_gas_augment_entry()
141 l = RB_LEFT(entry, rb_entry); in dmar_gas_augment_entry()
142 r = RB_RIGHT(entry, rb_entry); in dmar_gas_augment_entry()
144 entry->free_down = entry->free_after; in dmar_gas_augment_entry()
[all …]
/trueos/usr.sbin/bsnmpd/modules/snmp_hostres/
HDhostres_swrun_tbl.c117 struct swrun_entry *entry; in swrun_entry_create() local
119 if ((entry = malloc(sizeof(*entry))) == NULL) { in swrun_entry_create()
123 memset(entry, 0, sizeof(*entry)); in swrun_entry_create()
124 entry->index = idx; in swrun_entry_create()
126 INSERT_OBJECT_INT(entry, &swrun_tbl); in swrun_entry_create()
127 return (entry); in swrun_entry_create()
134 swrun_entry_delete(struct swrun_entry *entry) in swrun_entry_delete() argument
137 assert(entry != NULL); in swrun_entry_delete()
139 TAILQ_REMOVE(&swrun_tbl, entry, link); in swrun_entry_delete()
141 free(entry->name); in swrun_entry_delete()
[all …]
HDhostres_storage_tbl.c96 struct storage_entry *entry; member
142 struct storage_entry *entry; in storage_entry_create() local
187 if ((entry = malloc(sizeof(*entry))) == NULL) { in storage_entry_create()
191 memset(entry, 0, sizeof(*entry)); in storage_entry_create()
193 entry->index = map->hrIndex; in storage_entry_create()
195 if ((entry->descr = strdup(map->a_name)) == NULL) { in storage_entry_create()
196 free(entry); in storage_entry_create()
200 map->entry = entry; in storage_entry_create()
202 INSERT_OBJECT_INT(entry, &storage_tbl); in storage_entry_create()
204 return (entry); in storage_entry_create()
[all …]
HDhostres_fs_tbl.c96 struct fs_entry *entry; member
154 struct fs_entry *entry; in fs_entry_create() local
192 map->entry = NULL; in fs_entry_create()
200 if ((entry = malloc(sizeof(*entry))) == NULL) { in fs_entry_create()
205 if ((entry->mountPoint = strdup(name)) == NULL) { in fs_entry_create()
207 free(entry); in fs_entry_create()
211 entry->index = map->hrIndex; in fs_entry_create()
212 map->entry = entry; in fs_entry_create()
214 INSERT_OBJECT_INT(entry, &fs_tbl); in fs_entry_create()
215 return (entry); in fs_entry_create()
[all …]
HDhostres_swinstalled_tbl.c95 struct swins_entry *entry; member
128 struct swins_entry *entry; in swins_entry_create() local
173 if ((entry = malloc(sizeof(*entry))) == NULL) { in swins_entry_create()
177 memset(entry, 0, sizeof(*entry)); in swins_entry_create()
179 if ((entry->name = strdup(map->name)) == NULL) { in swins_entry_create()
181 free(entry); in swins_entry_create()
185 entry->index = map->index; in swins_entry_create()
186 map->entry = entry; in swins_entry_create()
188 INSERT_OBJECT_INT(entry, &swins_tbl); in swins_entry_create()
190 return (entry); in swins_entry_create()
[all …]
/trueos/cddl/contrib/dtracetoolkit/Examples/
HDj_events_example.txt15 311379 AttachCurrentThread-entry 1
17 311379 CallIntMethod-entry 1
19 311379 CallStaticBooleanMethod-entry 1
21 311379 CallStaticObjectMethod-entry 1
23 311379 CallStaticObjectMethodV-entry 1
25 311379 CallStaticVoidMethod-entry 1
27 311379 CreateJavaVM-entry 1
29 311379 DestroyJavaVM-entry 1
31 311379 DetachCurrentThread-entry 1
33 311379 ExceptionCheck-entry 1
[all …]
/trueos/lib/libmt/
HDmtlib.c63 struct mt_status_entry *entry; in mt_start_element() local
88 entry = malloc(sizeof(*entry)); in mt_start_element()
89 if (entry == NULL) { in mt_start_element()
93 sizeof(*entry)); in mt_start_element()
96 bzero(entry, sizeof(*entry)); in mt_start_element()
97 STAILQ_INIT(&entry->nv_list); in mt_start_element()
98 STAILQ_INIT(&entry->child_entries); in mt_start_element()
99 entry->entry_name = strdup(name); in mt_start_element()
100 mtinfo->cur_entry[mtinfo->level] = entry; in mt_start_element()
102 STAILQ_INSERT_TAIL(&mtinfo->entries, entry, links); in mt_start_element()
[all …]
/trueos/contrib/wpa/src/rsn_supp/
HDpmksa_cache.c27 void (*free_cb)(struct rsn_pmksa_cache_entry *entry, void *ctx,
36 static void _pmksa_cache_free_entry(struct rsn_pmksa_cache_entry *entry) in _pmksa_cache_free_entry() argument
38 os_free(entry); in _pmksa_cache_free_entry()
43 struct rsn_pmksa_cache_entry *entry, in pmksa_cache_free_entry() argument
46 wpa_sm_remove_pmkid(pmksa->sm, entry->aa, entry->pmkid); in pmksa_cache_free_entry()
48 pmksa->free_cb(entry, pmksa->ctx, reason); in pmksa_cache_free_entry()
49 _pmksa_cache_free_entry(entry); in pmksa_cache_free_entry()
60 struct rsn_pmksa_cache_entry *entry = pmksa->pmksa; in pmksa_cache_expire() local
61 pmksa->pmksa = entry->next; in pmksa_cache_expire()
63 MACSTR, MAC2STR(entry->aa)); in pmksa_cache_expire()
[all …]
/trueos/sys/dev/drm2/ttm/
HDttm_execbuf_util.c38 struct ttm_validate_buffer *entry; in ttm_eu_backoff_reservation_locked() local
40 list_for_each_entry(entry, list, head) { in ttm_eu_backoff_reservation_locked()
41 struct ttm_buffer_object *bo = entry->bo; in ttm_eu_backoff_reservation_locked()
42 if (!entry->reserved) in ttm_eu_backoff_reservation_locked()
45 if (entry->removed) { in ttm_eu_backoff_reservation_locked()
47 entry->removed = false; in ttm_eu_backoff_reservation_locked()
50 entry->reserved = false; in ttm_eu_backoff_reservation_locked()
58 struct ttm_validate_buffer *entry; in ttm_eu_del_from_lru_locked() local
60 list_for_each_entry(entry, list, head) { in ttm_eu_del_from_lru_locked()
61 struct ttm_buffer_object *bo = entry->bo; in ttm_eu_del_from_lru_locked()
[all …]
/trueos/sys/vm/
HDvm_map.c133 static void vm_map_entry_deallocate(vm_map_entry_t entry, boolean_t system_map);
134 static void vm_map_entry_dispose(vm_map_t map, vm_map_entry_t entry);
135 static void vm_map_entry_unwire(vm_map_t map, vm_map_entry_t entry);
143 static void vm_map_wire_entry_failure(vm_map_t map, vm_map_entry_t entry,
145 void _vm_map_clip_end(vm_map_t map, vm_map_entry_t entry, vm_offset_t end);
146 void _vm_map_clip_start(vm_map_t map, vm_map_entry_t entry, vm_offset_t start);
467 vm_map_entry_t entry, next; in vm_map_process_deferred() local
471 entry = td->td_map_def_user; in vm_map_process_deferred()
473 while (entry != NULL) { in vm_map_process_deferred()
474 next = entry->next; in vm_map_process_deferred()
[all …]
/trueos/sys/dev/drm2/
HDdrm_scatter.c44 void drm_sg_cleanup(struct drm_sg_mem * entry) in drm_sg_cleanup() argument
46 if (entry == NULL) in drm_sg_cleanup()
49 if (entry->vaddr != 0) in drm_sg_cleanup()
50 kmem_free(kernel_arena, entry->vaddr, IDX_TO_OFF(entry->pages)); in drm_sg_cleanup()
52 free(entry->busaddr, DRM_MEM_SGLISTS); in drm_sg_cleanup()
53 free(entry, DRM_MEM_DRIVER); in drm_sg_cleanup()
58 struct drm_sg_mem *entry; in drm_sg_alloc() local
70 entry = malloc(sizeof(*entry), DRM_MEM_DRIVER, M_NOWAIT | M_ZERO); in drm_sg_alloc()
71 if (!entry) in drm_sg_alloc()
77 entry->pages = OFF_TO_IDX(size); in drm_sg_alloc()
[all …]
/trueos/sys/compat/mach/ipc/
HDipc_right.c111 #define OBJECT_CLEAR(entry, name) do { \ argument
113 (entry)->ie_object = IO_NULL; \
116 #define OBJECT_CLEAR(entry, name) (entry)->ie_object = IO_NULL argument
138 ipc_entry_t entry; in ipc_right_lookup() local
146 if ((entry = ipc_entry_lookup(space, name)) == IE_NULL) in ipc_right_lookup()
153 *entryp = entry; in ipc_right_lookup()
178 ipc_entry_t entry; in ipc_right_reverse() local
198 entry = ipc_entry_lookup(space, name); in ipc_right_reverse()
200 assert(entry != IE_NULL); in ipc_right_reverse()
201 assert(entry->ie_bits & MACH_PORT_TYPE_RECEIVE); in ipc_right_reverse()
[all …]
/trueos/sys/dev/drm/
HDdrm_scatter.c39 struct drm_sg_mem *entry; in drm_sg_alloc() local
48 entry = malloc(sizeof(*entry), DRM_MEM_DRIVER, M_WAITOK | M_ZERO); in drm_sg_alloc()
51 entry->pages = OFF_TO_IDX(size); in drm_sg_alloc()
52 entry->busaddr = malloc(entry->pages * sizeof(*entry->busaddr), in drm_sg_alloc()
55 entry->vaddr = kmem_alloc_attr(kernel_arena, size, M_WAITOK | M_ZERO, in drm_sg_alloc()
57 if (entry->vaddr == 0) { in drm_sg_alloc()
58 drm_sg_cleanup(entry); in drm_sg_alloc()
62 for(pindex = 0; pindex < entry->pages; pindex++) { in drm_sg_alloc()
63 entry->busaddr[pindex] = in drm_sg_alloc()
64 vtophys(entry->vaddr + IDX_TO_OFF(pindex)); in drm_sg_alloc()
[all …]

12345678910>>...83