Home
last modified time | relevance | path

Searched refs:handle (Results 1 – 25 of 2145) sorted by relevance

12345678910>>...86

/external/selinux/libsemanage/src/
Ddatabase.c9 static int assert_init(semanage_handle_t * handle, dbase_config_t * dconfig) in assert_init() argument
14 ERR(handle, in assert_init()
24 static int enter_ro(semanage_handle_t * handle, dbase_config_t * dconfig) in enter_ro() argument
27 if (assert_init(handle, dconfig) < 0) in enter_ro()
30 if (!handle->is_in_transaction && in enter_ro()
31 handle->conf->store_type == SEMANAGE_CON_DIRECT) { in enter_ro()
33 if (semanage_get_active_lock(handle) < 0) { in enter_ro()
34 ERR(handle, "could not get the active lock"); in enter_ro()
39 if (dconfig->dtable->cache(handle, dconfig->dbase) < 0) in enter_ro()
45 ERR(handle, "could not enter read-only section"); in enter_ro()
[all …]
Dhandle.h47 semanage_handle_t * handle, const char *fmt, ...);
113 dbase_config_t * semanage_user_base_dbase_local(semanage_handle_t * handle) in semanage_user_base_dbase_local() argument
115 return &handle->dbase[DBASE_LOCAL_USERS_BASE]; in semanage_user_base_dbase_local()
119 dbase_config_t * semanage_user_extra_dbase_local(semanage_handle_t * handle) in semanage_user_extra_dbase_local() argument
121 return &handle->dbase[DBASE_LOCAL_USERS_EXTRA]; in semanage_user_extra_dbase_local()
125 dbase_config_t * semanage_user_dbase_local(semanage_handle_t * handle) in semanage_user_dbase_local() argument
127 return &handle->dbase[DBASE_LOCAL_USERS]; in semanage_user_dbase_local()
131 dbase_config_t * semanage_port_dbase_local(semanage_handle_t * handle) in semanage_port_dbase_local() argument
133 return &handle->dbase[DBASE_LOCAL_PORTS]; in semanage_port_dbase_local()
137 dbase_config_t * semanage_iface_dbase_local(semanage_handle_t * handle) in semanage_iface_dbase_local() argument
[all …]
Dfcontexts_local.c18 int semanage_fcontext_modify_local(semanage_handle_t * handle, in semanage_fcontext_modify_local() argument
23 dbase_config_t *dconfig = semanage_fcontext_dbase_local(handle); in semanage_fcontext_modify_local()
24 return dbase_modify(handle, dconfig, key, data); in semanage_fcontext_modify_local()
27 int semanage_fcontext_del_local(semanage_handle_t * handle, in semanage_fcontext_del_local() argument
31 dbase_config_t *dconfig = semanage_fcontext_dbase_local(handle); in semanage_fcontext_del_local()
32 return dbase_del(handle, dconfig, key); in semanage_fcontext_del_local()
35 int semanage_fcontext_query_local(semanage_handle_t * handle, in semanage_fcontext_query_local() argument
40 dbase_config_t *dconfig = semanage_fcontext_dbase_local(handle); in semanage_fcontext_query_local()
41 return dbase_query(handle, dconfig, key, response); in semanage_fcontext_query_local()
44 int semanage_fcontext_exists_local(semanage_handle_t * handle, in semanage_fcontext_exists_local() argument
[all …]
Dpolicy_components.c15 static int clear_obsolete(semanage_handle_t * handle, in clear_obsolete() argument
31 if (rtable->key_extract(handle, records[i], &key) < 0) in clear_obsolete()
34 if (dst_dtable->exists(handle, dst->dbase, key, &exists) < 0) in clear_obsolete()
38 if (src_dtable->del(handle, src->dbase, key) < 0) in clear_obsolete()
59 static int load_records(semanage_handle_t * handle, in load_records() argument
77 if (rtable->key_extract(handle, records[i], &rkey) < 0) in load_records()
81 dtable->set(handle, dbase, rkey, records[i]) < 0) in load_records()
85 dtable->modify(handle, dbase, rkey, records[i]) < 0) in load_records()
109 int semanage_base_merge_components(semanage_handle_t * handle) in semanage_base_merge_components() argument
120 {semanage_user_base_dbase_local(handle), in semanage_base_merge_components()
[all …]
Dseusers_local.c21 static char *semanage_user_roles(semanage_handle_t * handle, const char *sename) { in semanage_user_roles() argument
29 if (semanage_user_key_create(handle, sename, &key) >= 0) { in semanage_user_roles()
30 if (semanage_user_query(handle, key, &user) >= 0) { in semanage_user_roles()
31 if (semanage_user_get_roles(handle, in semanage_user_roles()
54 static int semanage_seuser_audit(semanage_handle_t * handle, in semanage_seuser_audit() argument
74 roles = semanage_user_roles(handle, sename); in semanage_seuser_audit()
79 proles = semanage_user_roles(handle, psename); in semanage_seuser_audit()
118 int semanage_seuser_modify_local(semanage_handle_t * handle, in semanage_seuser_modify_local() argument
123 void *callback = (void *) handle->msg_callback; in semanage_seuser_modify_local()
124 dbase_config_t *dconfig = semanage_seuser_dbase_local(handle); in semanage_seuser_modify_local()
[all …]
Ddatabase_policydb.c54 static int dbase_policydb_set_serial(semanage_handle_t * handle, in dbase_policydb_set_serial() argument
58 int cache_serial = handle->funcs->get_serial(handle); in dbase_policydb_set_serial()
60 ERR(handle, "could not update cache serial"); in dbase_policydb_set_serial()
68 static int dbase_policydb_needs_resync(semanage_handle_t * handle, in dbase_policydb_needs_resync() argument
77 cache_serial = handle->funcs->get_serial(handle); in dbase_policydb_needs_resync()
89 static int dbase_policydb_cache(semanage_handle_t * handle, in dbase_policydb_cache() argument
102 if (!dbase_policydb_needs_resync(handle, dbase)) in dbase_policydb_cache()
105 fname = dbase->path[handle->is_in_transaction]; in dbase_policydb_cache()
108 ERR(handle, "could not create policydb object"); in dbase_policydb_cache()
116 ERR(handle, "could not open %s for reading: %s", in dbase_policydb_cache()
[all …]
Duser_record.c33 int semanage_user_key_create(semanage_handle_t * handle, in semanage_user_key_create() argument
37 return sepol_user_key_create(handle->sepolh, name, key); in semanage_user_key_create()
42 int semanage_user_key_extract(semanage_handle_t * handle, in hidden_def()
47 return semanage_user_base_key_extract(handle, user->base, key); in hidden_def()
102 int semanage_user_set_name(semanage_handle_t * handle, in hidden_def()
110 if (semanage_user_base_set_name(handle, user->base, name) < 0) in hidden_def()
113 if (semanage_user_extra_set_name(handle, user->extra, name) < 0) in hidden_def()
121 ERR(handle, "out of memory"); in hidden_def()
124 ERR(handle, "could not set user name to %s", name); in hidden_def()
138 int semanage_user_set_prefix(semanage_handle_t * handle, in semanage_user_set_prefix() argument
[all …]
Dusers_local.c18 int semanage_user_modify_local(semanage_handle_t * handle, in semanage_user_modify_local() argument
23 dbase_config_t *dconfig = semanage_user_dbase_local(handle); in semanage_user_modify_local()
24 return dbase_modify(handle, dconfig, key, data); in semanage_user_modify_local()
27 static int lookup_seuser(semanage_handle_t * handle, const semanage_user_key_t *k) { in lookup_seuser() argument
35 if (semanage_user_query(handle, k, &user) < 0) in lookup_seuser()
38 semanage_seuser_list_local(handle, in lookup_seuser()
45 ERR(handle, "%s is being used by %s login record", in lookup_seuser()
59 int semanage_user_del_local(semanage_handle_t * handle, in semanage_user_del_local() argument
62 if (lookup_seuser(handle, key)) in semanage_user_del_local()
65 dbase_config_t *dconfig = semanage_user_dbase_local(handle); in semanage_user_del_local()
[all …]
Dinterfaces_local.c13 int semanage_iface_modify_local(semanage_handle_t * handle, in semanage_iface_modify_local() argument
18 dbase_config_t *dconfig = semanage_iface_dbase_local(handle); in semanage_iface_modify_local()
19 return dbase_modify(handle, dconfig, key, data); in semanage_iface_modify_local()
22 int semanage_iface_del_local(semanage_handle_t * handle, in semanage_iface_del_local() argument
26 dbase_config_t *dconfig = semanage_iface_dbase_local(handle); in semanage_iface_del_local()
27 return dbase_del(handle, dconfig, key); in semanage_iface_del_local()
30 int semanage_iface_query_local(semanage_handle_t * handle, in semanage_iface_query_local() argument
35 dbase_config_t *dconfig = semanage_iface_dbase_local(handle); in semanage_iface_query_local()
36 return dbase_query(handle, dconfig, key, response); in semanage_iface_query_local()
39 int semanage_iface_exists_local(semanage_handle_t * handle, in semanage_iface_exists_local() argument
[all …]
Dbooleans_local.c13 int semanage_bool_modify_local(semanage_handle_t * handle, in semanage_bool_modify_local() argument
18 dbase_config_t *dconfig = semanage_bool_dbase_local(handle); in semanage_bool_modify_local()
19 return dbase_modify(handle, dconfig, key, data); in semanage_bool_modify_local()
22 int semanage_bool_del_local(semanage_handle_t * handle, in semanage_bool_del_local() argument
26 dbase_config_t *dconfig = semanage_bool_dbase_local(handle); in semanage_bool_del_local()
27 return dbase_del(handle, dconfig, key); in semanage_bool_del_local()
30 int semanage_bool_query_local(semanage_handle_t * handle, in semanage_bool_query_local() argument
35 dbase_config_t *dconfig = semanage_bool_dbase_local(handle); in semanage_bool_query_local()
36 return dbase_query(handle, dconfig, key, response); in semanage_bool_query_local()
39 int semanage_bool_exists_local(semanage_handle_t * handle, in semanage_bool_exists_local() argument
[all …]
/external/e2fsprogs/lib/ext2fs/
Dextent.c162 void ext2fs_extent_free(ext2_extent_handle_t handle) in ext2fs_extent_free() argument
166 if (!handle) in ext2fs_extent_free()
169 if (handle->path) { in ext2fs_extent_free()
170 for (i=1; i <= handle->max_depth; i++) { in ext2fs_extent_free()
171 if (handle->path[i].buf) in ext2fs_extent_free()
172 ext2fs_free_mem(&handle->path[i].buf); in ext2fs_extent_free()
174 ext2fs_free_mem(&handle->path); in ext2fs_extent_free()
176 ext2fs_free_mem(&handle); in ext2fs_extent_free()
189 struct ext2_extent_handle *handle; in ext2fs_extent_open2() local
200 retval = ext2fs_get_mem(sizeof(struct ext2_extent_handle), &handle); in ext2fs_extent_open2()
[all …]
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/
DFilesTest.java165 FileHandle handle = Gdx.files.classpath("com/badlogic/gdx/utils/arial-15.png"); in testClasspath()
166 if (!handle.exists()) fail(); in testClasspath()
167 if (handle.isDirectory()) fail(); in testClasspath()
169 handle.delete(); in testClasspath()
174 handle.list(); in testClasspath()
179 handle.read().close(); in testClasspath()
189 handle.read().close(); in testClasspath()
190 if (handle.readBytes().length != handle.length()) fail(); in testClasspath()
194 FileHandle handle = Gdx.files.internal("data/badlogic.jpg"); in testInternal() local
195 if (!handle.exists()) fail("Couldn't find internal file"); in testInternal()
[all …]
/external/libpcap/
Dpcap-linux.c383 static void destroy_ring(pcap_t *handle);
384 static int create_ring(pcap_t *handle, int *status);
385 static int prepare_tpacket_socket(pcap_t *handle);
421 static int enter_rfmon_mode(pcap_t *handle, int sock_fd,
425 static int iface_ethtool_get_ts_info(pcap_t *handle, char *ebuf);
428 static int iface_get_offload(pcap_t *handle);
433 static int fix_program(pcap_t *handle, struct sock_fprog *fcode,
436 static int set_kernel_filter(pcap_t *handle, struct sock_fprog *fcode);
437 static int reset_kernel_filter(pcap_t *handle);
448 pcap_t *handle; in pcap_create_interface() local
[all …]
Dpcap-bt-linux.c183 bt_activate(pcap_t* handle) in bt_activate() argument
185 struct pcap_bt *handlep = handle->priv; in bt_activate()
193 if (sscanf(handle->opt.source, BT_IFACE"%d", &dev_id) != 1) in bt_activate()
195 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, in bt_activate()
197 handle->opt.source); in bt_activate()
202 handle->bufsize = handle->snapshot+BT_CTRL_SIZE+sizeof(pcap_bluetooth_h4_header); in bt_activate()
203 handle->offset = BT_CTRL_SIZE; in bt_activate()
204 handle->linktype = DLT_BLUETOOTH_HCI_H4_WITH_PHDR; in bt_activate()
206 handle->read_op = bt_read_linux; in bt_activate()
207 handle->inject_op = bt_inject_linux; in bt_activate()
[all …]
Dpcap-bt-monitor-linux.c67 bt_monitor_read(pcap_t *handle, int max_packets _U_, pcap_handler callback, u_char *user) in bt_monitor_read() argument
77 bthdr = (pcap_bluetooth_linux_monitor_header*) &handle->buffer[handle->offset]; in bt_monitor_read()
81 iv[1].iov_base = &handle->buffer[handle->offset + sizeof(pcap_bluetooth_linux_monitor_header)]; in bt_monitor_read()
82 iv[1].iov_len = handle->snapshot; in bt_monitor_read()
88 msg.msg_control = handle->buffer; in bt_monitor_read()
89 msg.msg_controllen = handle->offset; in bt_monitor_read()
92 ret = recvmsg(handle->fd, &msg, 0); in bt_monitor_read()
93 if (handle->break_loop) in bt_monitor_read()
95 handle->break_loop = 0; in bt_monitor_read()
101 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, in bt_monitor_read()
[all …]
Dpcap-can-linux.c144 can_activate(pcap_t* handle) in can_activate() argument
146 struct pcap_can *handlep = handle->priv; in can_activate()
151 handle->bufsize = 24; in can_activate()
152 handle->offset = 8; in can_activate()
153 handle->linktype = DLT_CAN_SOCKETCAN; in can_activate()
154 handle->read_op = can_read_linux; in can_activate()
155 handle->inject_op = can_inject_linux; in can_activate()
156 handle->setfilter_op = can_setfilter_linux; in can_activate()
157 handle->setdirection_op = can_setdirection_linux; in can_activate()
158 handle->set_datalink_op = NULL; in can_activate()
[all …]
Dpcap-netfilter-linux.c84 static int nfqueue_send_verdict(const pcap_t *handle, u_int16_t group_id, u_int32_t id, u_int32_t v…
87 netfilter_read_linux(pcap_t *handle, int max_packets, pcap_handler callback, u_char *user) in netfilter_read_linux() argument
89 struct pcap_netfilter *handlep = handle->priv; in netfilter_read_linux()
96 len = recv(handle->fd, handle->buffer, handle->bufsize, 0); in netfilter_read_linux()
97 if (handle->break_loop) { in netfilter_read_linux()
98 handle->break_loop = 0; in netfilter_read_linux()
104 …snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Can't receive packet %d:%s", errno, pcap_strerror(errn… in netfilter_read_linux()
108 buf = handle->buffer; in netfilter_read_linux()
115 …snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Message truncated: (got: %d) (nlmsg_len: %u)", len, nl… in netfilter_read_linux()
133 if (handle->linktype != DLT_NFLOG) { in netfilter_read_linux()
[all …]
Dpcap-usb-linux.c211 int usb_mmap(pcap_t* handle) in usb_mmap() argument
213 struct pcap_usb_linux *handlep = handle->priv; in usb_mmap()
214 int len = ioctl(handle->fd, MON_IOCQ_RING_SIZE); in usb_mmap()
220 MAP_SHARED, handle->fd, 0); in usb_mmap()
340 usb_activate(pcap_t* handle) in usb_activate() argument
342 struct pcap_usb_linux *handlep = handle->priv; in usb_activate()
346 handle->bufsize = handle->snapshot; in usb_activate()
347 handle->offset = 0; in usb_activate()
348 handle->linktype = DLT_USB_LINUX; in usb_activate()
350 handle->inject_op = usb_inject_linux; in usb_activate()
[all …]
Dpcap-dbus.c54 dbus_read(pcap_t *handle, int max_packets, pcap_handler callback, u_char *user) in dbus_read() argument
56 struct pcap_dbus *handlep = handle->priv; in dbus_read()
71 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Connection closed"); in dbus_read()
75 if (handle->break_loop) { in dbus_read()
76 handle->break_loop = 0; in dbus_read()
84 snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Disconnected"); in dbus_read()
93 if (handle->fcode.bf_insns == NULL || in dbus_read()
94 bpf_filter(handle->fcode.bf_insns, (u_char *)raw_msg, pkth.len, pkth.caplen)) { in dbus_read()
106 dbus_write(pcap_t *handle, const void *buf, size_t size) in dbus_write() argument
109 struct pcap_dbus *handlep = handle->priv; in dbus_write()
[all …]
/external/drm_gralloc/
Dgralloc_drm.cpp157 struct gralloc_drm_handle_t *handle = gralloc_drm_handle(_handle); in validate_handle() local
159 if (!handle) in validate_handle()
163 …ALOGE("data_owner=%d gralloc_pid=%d data=%p\n", handle->data_owner, gralloc_drm_get_pid(), handle-… in validate_handle()
164 if (unlikely(handle->data_owner != gralloc_drm_pid)) { in validate_handle()
171 ALOGE("handle: name=%d pfd=%d\n", handle->name, in validate_handle()
172 handle->prime_fd); in validate_handle()
174 if (handle->name || handle->prime_fd >= 0) in validate_handle()
175 bo = drm->drv->alloc(drm->drv, handle); in validate_handle()
181 bo->handle = handle; in validate_handle()
185 handle->data_owner = gralloc_drm_get_pid(); in validate_handle()
[all …]
/external/webrtc/webrtc/modules/audio_processing/utility/
Ddelay_estimator_wrapper.h20 void WebRtc_FreeDelayEstimatorFarend(void* handle);
43 int WebRtc_InitDelayEstimatorFarend(void* handle);
49 void WebRtc_SoftResetDelayEstimatorFarend(void* handle, int delay_shift);
64 int WebRtc_AddFarSpectrumFix(void* handle,
70 int WebRtc_AddFarSpectrumFloat(void* handle,
75 void WebRtc_FreeDelayEstimator(void* handle);
119 int WebRtc_InitDelayEstimator(void* handle);
128 int WebRtc_SoftResetDelayEstimator(void* handle, int delay_shift);
142 int WebRtc_set_history_size(void* handle, int history_size);
147 int WebRtc_history_size(const void* handle);
[all …]
/external/iptables/include/libiptc/
Dlibip6tc.h24 int ip6tc_is_chain(const char *chain, struct xtc_handle *const handle);
33 const char *ip6tc_first_chain(struct xtc_handle *handle);
34 const char *ip6tc_next_chain(struct xtc_handle *handle);
38 struct xtc_handle *handle);
42 struct xtc_handle *handle);
46 struct xtc_handle *handle);
49 int ip6tc_builtin(const char *chain, struct xtc_handle *const handle);
54 struct xtc_handle *handle);
64 struct xtc_handle *handle);
70 struct xtc_handle *handle);
[all …]
Dlibiptc.h28 int iptc_is_chain(const char *chain, struct xtc_handle *const handle);
37 const char *iptc_first_chain(struct xtc_handle *handle);
38 const char *iptc_next_chain(struct xtc_handle *handle);
42 struct xtc_handle *handle);
46 struct xtc_handle *handle);
50 struct xtc_handle *handle);
53 int iptc_builtin(const char *chain, struct xtc_handle *const handle);
58 struct xtc_handle *handle);
68 struct xtc_handle *handle);
74 struct xtc_handle *handle);
[all …]
/external/iproute2/include/libiptc/
Dlibiptc.h28 int iptc_is_chain(const char *chain, struct xtc_handle *const handle);
37 const char *iptc_first_chain(struct xtc_handle *handle);
38 const char *iptc_next_chain(struct xtc_handle *handle);
42 struct xtc_handle *handle);
46 struct xtc_handle *handle);
50 struct xtc_handle *handle);
53 int iptc_builtin(const char *chain, struct xtc_handle *const handle);
58 struct xtc_handle *handle);
68 struct xtc_handle *handle);
74 struct xtc_handle *handle);
[all …]
Dlibip6tc.h24 int ip6tc_is_chain(const char *chain, struct xtc_handle *const handle);
33 const char *ip6tc_first_chain(struct xtc_handle *handle);
34 const char *ip6tc_next_chain(struct xtc_handle *handle);
38 struct xtc_handle *handle);
42 struct xtc_handle *handle);
46 struct xtc_handle *handle);
49 int ip6tc_builtin(const char *chain, struct xtc_handle *const handle);
54 struct xtc_handle *handle);
64 struct xtc_handle *handle);
70 struct xtc_handle *handle);
[all …]

12345678910>>...86