/freebsd-11-stable/contrib/netbsd-tests/libexec/ld.elf_so/ |
H A D | h_df_1_noopen.c | 38 void *handle; local 40 handle = dlopen("libpthread.so", RTLD_NOLOAD); 41 if (handle == NULL)
|
H A D | t_dlerror-cleared.c | 47 void *handle; local 54 handle = dlopen("libnonexistent.so", RTLD_LAZY); 55 ATF_CHECK(handle == NULL); 56 handle = dlopen("libm.so", RTLD_NOW); 57 ATF_CHECK(handle);
|
H A D | t_dlvsym.c | 45 void *handle; local 53 handle = dlopen("libh_helper_symver_dso.so", RTLD_LAZY); 56 ATF_CHECK(handle != NULL); 58 sym = dlvsym(handle, "testfunc", "V_1"); 65 dlclose(handle); 77 void *handle; local 85 handle = dlopen("libh_helper_symver_dso.so", RTLD_LAZY); 88 ATF_CHECK(handle != NULL); 90 sym = dlvsym(handle, "testfunc", "V_3"); 97 dlclose(handle); 110 void *handle; local 140 void *handle; local 170 void *handle; local [all...] |
/freebsd-11-stable/tools/regression/tls/ttls3/ |
H A D | tls-test.c | 34 void *handle; local 38 handle = dlopen("libtls-test.so.1", RTLD_NOW); 39 if (!handle) { 46 __gl_tls_test = dlsym(handle, "__gl_tls_test"); 50 dlclose(handle); 56 dlclose(handle);
|
/freebsd-11-stable/contrib/openpam/lib/libpam/ |
H A D | openpam_dlfunc.h | 39 dlfunc(void *handle, const char *symbol) argument 42 return ((dlfunc_t)dlsym(handle, symbol));
|
/freebsd-11-stable/contrib/netbsd-tests/lib/csu/ |
H A D | h_initfini3.cxx | 12 void *handle; local 15 handle = dlopen("h_initfini3_dso.so", RTLD_NOW | RTLD_LOCAL); 16 if (handle == NULL) 19 dlclose(handle);
|
/freebsd-11-stable/lib/libc/nameser/ |
H A D | ns_parse.c | 77 int ns_msg_getflag(ns_msg handle, int flag) { argument 78 return(((handle)._flags & _ns_flagdata[flag].mask) >> _ns_flagdata[flag].shift); 106 ns_initparse(const u_char *msg, int msglen, ns_msg *handle) { argument 110 handle->_msg = msg; 111 handle->_eom = eom; 114 NS_GET16(handle->_id, msg); 117 NS_GET16(handle->_flags, msg); 121 NS_GET16(handle->_counts[i], msg); 124 if (handle->_counts[i] == 0) 125 handle 142 ns_parserr(ns_msg *handle, ns_sect section, int rrnum, ns_rr *rr) argument 205 ns_parserr2(ns_msg *handle, ns_sect section, int rrnum, ns_rr2 *rr) argument [all...] |
/freebsd-11-stable/sys/dev/drm2/ |
H A D | drm_memory.c | 41 #define vunmap(handle) 56 void drm_free_agp(DRM_AGP_MEM * handle, int pages) argument 61 if (!agpdev || !handle) 64 agp_free_memory(agpdev, handle); 69 int drm_bind_agp(DRM_AGP_MEM * handle, unsigned int start) argument 74 if (!agpdev || !handle) 77 return -agp_bind_memory(agpdev, handle, start * PAGE_SIZE); 81 int drm_unbind_agp(DRM_AGP_MEM * handle) argument 86 if (!agpdev || !handle) 89 return -agp_unbind_memory(agpdev, handle); [all...] |
/freebsd-11-stable/crypto/heimdal/lib/gssapi/krb5/ |
H A D | copy_ccache.c | 74 gsskrb5_cred handle; local 81 handle = calloc(1, sizeof(*handle)); 82 if (handle == NULL) { 87 HEIMDAL_MUTEX_init(&handle->cred_id_mutex); 89 handle->usage = 0; 94 handle->usage |= GSS_C_INITIATE; 97 &handle->principal); 99 free(handle); 108 handle [all...] |
H A D | add_cred.c | 51 gsskrb5_cred cred, handle; local 54 handle = NULL; 99 handle = calloc(1, sizeof(*handle)); 100 if (handle == NULL) { 106 handle->usage = cred_usage; 107 handle->lifetime = cred->lifetime; 108 handle->principal = NULL; 109 handle->keytab = NULL; 110 handle [all...] |
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/ |
H A D | tst.ret2.c | 47 handle(int sig) function 56 (void) signal(SIGUSR1, handle);
|
/freebsd-11-stable/contrib/libpcap/ |
H A D | pcap-dbus.c | 54 dbus_read(pcap_t *handle, int max_packets _U_, pcap_handler callback, u_char *user) argument 56 struct pcap_dbus *handlep = handle->priv; 69 /* XXX handle->opt.timeout = timeout_ms; */ 71 pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Connection closed"); 75 if (handle->break_loop) { 76 handle->break_loop = 0; 84 pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Disconnected"); 90 /* pkth.caplen = min (payload_len, handle->snapshot); */ 93 if (handle->fcode.bf_insns == NULL || 94 bpf_filter(handle 106 dbus_write(pcap_t *handle, const void *buf, size_t size) argument 128 dbus_stats(pcap_t *handle, struct pcap_stat *stats) argument 139 dbus_cleanup(pcap_t *handle) argument 171 dbus_activate(pcap_t *handle) argument [all...] |
H A D | pcap-bt-linux.c | 185 bt_activate(pcap_t* handle) argument 187 struct pcap_bt *handlep = handle->priv; 195 if (sscanf(handle->opt.device, BT_IFACE"%d", &dev_id) != 1) 197 pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, 199 handle->opt.device); 211 if (handle->snapshot <= 0 || handle->snapshot > MAXIMUM_SNAPLEN) 212 handle->snapshot = MAXIMUM_SNAPLEN; 215 handle->bufsize = BT_CTRL_SIZE+sizeof(pcap_bluetooth_h4_header)+handle 311 bt_read_linux(pcap_t *handle, int max_packets _U_, pcap_handler callback, u_char *user) argument 381 bt_inject_linux(pcap_t *handle, const void *buf _U_, size_t size _U_) argument 390 bt_stats_linux(pcap_t *handle, struct pcap_stat *stats) argument [all...] |
H A D | pcap-netfilter-linux.c | 85 static int nfqueue_send_verdict(const pcap_t *handle, uint16_t group_id, u_int32_t id, u_int32_t verdict); 89 netfilter_read_linux(pcap_t *handle, int max_packets, pcap_handler callback, u_char *user) argument 91 struct pcap_netfilter *handlep = handle->priv; 99 if (handle->break_loop) { 105 handle->break_loop = 0; 108 len = handle->cc; 116 * to set handle->break_loop (we ignore it on other 120 len = recv(handle->fd, handle->buffer, handle 284 netfilter_set_datalink(pcap_t *handle, int dlt) argument 291 netfilter_stats_linux(pcap_t *handle, struct pcap_stat *stats) argument 302 netfilter_inject_linux(pcap_t *handle, const void *buf _U_, size_t size _U_) argument 316 netfilter_send_config_msg(const pcap_t *handle, uint16_t msg_type, int ack, u_int8_t family, u_int16_t res_id, const struct my_nfattr *mynfa) argument 398 nflog_send_config_msg(const pcap_t *handle, uint8_t family, u_int16_t group_id, const struct my_nfattr *mynfa) argument 404 nflog_send_config_cmd(const pcap_t *handle, uint16_t group_id, u_int8_t cmd, u_int8_t family) argument 419 nflog_send_config_mode(const pcap_t *handle, uint16_t group_id, u_int8_t copy_mode, u_int32_t copy_range) argument 435 nfqueue_send_verdict(const pcap_t *handle, uint16_t group_id, u_int32_t id, u_int32_t verdict) argument 451 nfqueue_send_config_msg(const pcap_t *handle, uint8_t family, u_int16_t group_id, const struct my_nfattr *mynfa) argument 457 nfqueue_send_config_cmd(const pcap_t *handle, uint16_t group_id, u_int8_t cmd, u_int16_t pf) argument 473 nfqueue_send_config_mode(const pcap_t *handle, uint16_t group_id, u_int8_t copy_mode, u_int32_t copy_range) argument 489 netfilter_activate(pcap_t* handle) argument [all...] |
H A D | pcap-bt-monitor-linux.c | 86 bt_monitor_read(pcap_t *handle, int max_packets _U_, pcap_handler callback, u_char *user) argument 97 pktd = (u_char *)handle->buffer + BT_CONTROL_SIZE; 103 iv[1].iov_len = handle->snapshot; 109 msg.msg_control = handle->buffer; 113 ret = recvmsg(handle->fd, &msg, 0); 114 if (handle->break_loop) 116 handle->break_loop = 0; 122 pcap_fmt_errmsg_for_errno(handle->errbuf, PCAP_ERRBUF_SIZE, 141 if (handle->fcode.bf_insns == NULL || 142 bpf_filter(handle 150 bt_monitor_inject(pcap_t *handle, const void *buf _U_, size_t size _U_) argument 175 bt_monitor_activate(pcap_t* handle) argument [all...] |
H A D | pcap-rdmasniff.c | 66 rdmasniff_stats(pcap_t *handle, struct pcap_stat *stat) argument 68 struct pcap_rdmasniff *priv = handle->priv; 78 rdmasniff_cleanup(pcap_t *handle) argument 80 struct pcap_rdmasniff *priv = handle->priv; 91 pcap_cleanup_live_common(handle); 95 rdmasniff_post_recv(pcap_t *handle, uint64_t wr_id) argument 97 struct pcap_rdmasniff *priv = handle->priv; 102 sg_entry.addr = (uintptr_t) handle->buffer + RDMASNIFF_RECEIVE_SIZE * wr_id; 114 rdmasniff_read(pcap_t *handle, int max_packets, pcap_handler callback, u_char *user) argument 116 struct pcap_rdmasniff *priv = handle 180 pcap_t *handle = sp->pd; local 189 rdmasniff_activate(pcap_t *handle) argument [all...] |
H A D | pcap-linux.c | 393 static void destroy_ring(pcap_t *handle); 394 static int create_ring(pcap_t *handle, int *status); 395 static int prepare_tpacket_socket(pcap_t *handle); 471 static int enter_rfmon_mode(pcap_t *handle, int sock_fd, 475 static int iface_ethtool_get_ts_info(const char *device, pcap_t *handle, 479 static int iface_get_offload(pcap_t *handle); 484 static int fix_program(pcap_t *handle, struct sock_fprog *fcode, 486 static int fix_offset(pcap_t *handle, struct bpf_insn *p); 487 static int set_kernel_filter(pcap_t *handle, struct sock_fprog *fcode); 488 static int reset_kernel_filter(pcap_t *handle); 499 pcap_t *handle; local 592 get_mac80211_phydev(pcap_t *handle, const char *device, char *phydev_path, size_t phydev_max_pathlen) argument 667 nl80211_init(pcap_t *handle, struct nl80211_state *state, const char *device) argument 721 add_mon_if(pcap_t *handle, int sock_fd, struct nl80211_state *state, const char *device, const char *mondevice) argument 832 del_mon_if(pcap_t *handle, int sock_fd, struct nl80211_state *state, const char *device, const char *mondevice) argument 886 enter_rfmon_mode_mac80211(pcap_t *handle, int sock_fd, const char *device) argument 1049 pcap_protocol(pcap_t *handle) argument 1061 pcap_can_set_rfmon_linux(pcap_t *handle) argument 1517 pcap_activate_linux(pcap_t *handle) argument 1714 pcap_read_linux(pcap_t *handle, int max_packets _U_, pcap_handler callback, u_char *user) argument 1724 pcap_set_datalink_linux(pcap_t *handle, int dlt) argument 1736 linux_check_direction(const pcap_t *handle, const struct sockaddr_ll *sll) argument 1788 pcap_read_packet(pcap_t *handle, pcap_handler callback, u_char *userdata) argument 2176 pcap_inject_linux(pcap_t *handle, const void *buf, size_t size) argument 2228 pcap_stats_linux(pcap_t *handle, struct pcap_stat *stats) argument 2890 pcap_setfilter_linux_common(pcap_t *handle, struct bpf_program *filter, int is_mmapped) argument 3062 pcap_setfilter_linux(pcap_t *handle, struct bpf_program *filter) argument 3073 pcap_setdirection_linux(pcap_t *handle, pcap_direction_t d) argument 3155 map_arphrd_to_dlt(pcap_t *handle, int sock_fd, int arptype, const char *device, int cooked_ok) argument 3592 set_dlt_list_cooked(pcap_t *handle, int sock_fd) argument 3637 activate_new(pcap_t *handle) argument 4041 activate_mmap(pcap_t *handle, int *status) argument 4141 init_tpacket(pcap_t *handle, int version, const char *version_str) argument 4238 prepare_tpacket_socket(pcap_t *handle) argument 4360 create_ring(pcap_t *handle, int *status) argument 4854 destroy_ring(pcap_t *handle) argument 4895 pcap_t *handle = sp->pd; local 4918 pcap_getnonblock_mmap(pcap_t *handle) argument 4927 pcap_setnonblock_mmap(pcap_t *handle, int nonblock) argument 4964 pcap_get_ring_frame_status(pcap_t *handle, int offset) argument 4999 pcap_wait_for_frames_mmap(pcap_t *handle) argument 5083 pcap_handle_packet_mmap( pcap_t *handle, pcap_handler callback, u_char *user, unsigned char *frame, unsigned int tp_len, unsigned int tp_mac, unsigned int tp_snaplen, unsigned int tp_sec, unsigned int tp_usec, int tp_vlan_tci_valid, __u16 tp_vlan_tci, __u16 tp_vlan_tpid) argument 5305 pcap_read_linux_mmap_v1(pcap_t *handle, int max_packets, pcap_handler callback, u_char *user) argument 5389 pcap_read_linux_mmap_v1_64(pcap_t *handle, int max_packets, pcap_handler callback, u_char *user) argument 5474 pcap_read_linux_mmap_v2(pcap_t *handle, int max_packets, pcap_handler callback, u_char *user) argument 5560 pcap_read_linux_mmap_v3(pcap_t *handle, int max_packets, pcap_handler callback, u_char *user) argument 5686 pcap_setfilter_linux_mmap(pcap_t *handle, struct bpf_program *filter) argument 5904 enter_rfmon_mode_wext(pcap_t *handle, int sock_fd, const char *device) argument 6520 enter_rfmon_mode(pcap_t *handle, int sock_fd, const char *device) argument 6568 iface_set_all_ts_types(pcap_t *handle) argument 6583 iface_ethtool_get_ts_info(const char *device, pcap_t *handle, char *ebuf) argument 6695 iface_ethtool_get_ts_info(const char *device, pcap_t *handle, char *ebuf _U_) argument 6743 iface_ethtool_flag_ioctl(pcap_t *handle, int cmd, const char *cmdname, int eperm_ok) argument 6789 iface_get_offload(pcap_t *handle) argument 6874 activate_old(pcap_t *handle) argument 7174 fix_program(pcap_t *handle, struct sock_fprog *fcode, int is_mmapped) argument 7276 fix_offset(pcap_t *handle, struct bpf_insn *p) argument 7355 set_kernel_filter(pcap_t *handle, struct sock_fprog *fcode) argument 7482 reset_kernel_filter(pcap_t *handle) argument [all...] |
/freebsd-11-stable/contrib/netbsd-tests/lib/libpthread/dlopen/ |
H A D | t_dlopen.c | 54 void *handle; local 56 handle = dlopen(DSO, RTLD_NOW | RTLD_LOCAL); 57 ATF_REQUIRE_MSG(handle != NULL, "dlopen fails: %s", dlerror()); 59 testf_dso_null = dlsym(handle, "testf_dso_null"); 64 ATF_REQUIRE(dlclose(handle) == 0); 78 void *handle; local 84 handle = dlopen(DSO, RTLD_NOW | RTLD_LOCAL); 85 ATF_REQUIRE_MSG(handle != NULL, "dlopen fails: %s", dlerror()); 87 testf_dso_null = dlsym(handle, "testf_dso_null"); 94 ATF_REQUIRE(dlclose(handle) 110 void *handle; local 142 void *handle; local [all...] |
/freebsd-11-stable/contrib/less/ |
H A D | lglob.h | 47 #define GLOB_FIRST_FAILED(handle) ((handle) != 0) 48 #define GLOB_NEXT_NAME(handle,fndp) _dos_findnext(fndp) 49 #define GLOB_NAME_DONE(handle) 51 #define DECL_GLOB_NAME(fnd,drive,dir,fname,ext,handle) \ 57 int handle; 62 #define GLOB_FIRST_FAILED(handle) ((handle) == -1) 63 #define GLOB_NEXT_NAME(handle,fndp) _findnext(handle, fnd [all...] |
/freebsd-11-stable/lib/libgpio/ |
H A D | gpio.c | 73 gpio_close(gpio_handle_t handle) argument 75 close(handle); 79 gpio_pin_list(gpio_handle_t handle, gpio_config_t **pcfgs) argument 85 if (ioctl(handle, GPIOMAXPIN, &maxpins) < 0) 97 gpio_pin_config(handle, &cfgs[i]); 105 gpio_pin_config(gpio_handle_t handle, gpio_config_t *cfg) argument 112 if (ioctl(handle, GPIOGETCONFIG, &gppin) < 0) 122 gpio_pin_set_name(gpio_handle_t handle, gpio_pin_t pin, char *name) argument 131 if (ioctl(handle, GPIOSETNAME, &gppin) < 0) 138 gpio_pin_set_flags(gpio_handle_t handle, gpio_config_ argument 153 gpio_pin_get(gpio_handle_t handle, gpio_pin_t pin) argument 166 gpio_pin_set(gpio_handle_t handle, gpio_pin_t pin, gpio_value_t value) argument 182 gpio_pin_toggle(gpio_handle_t handle, gpio_pin_t pin) argument 195 gpio_pin_low(gpio_handle_t handle, gpio_pin_t pin) argument 201 gpio_pin_high(gpio_handle_t handle, gpio_pin_t pin) argument 207 gpio_pin_set_flag(gpio_handle_t handle, gpio_pin_t pin, uint32_t flag) argument 221 gpio_pin_input(gpio_handle_t handle, gpio_pin_t pin) argument 227 gpio_pin_output(gpio_handle_t handle, gpio_pin_t pin) argument 233 gpio_pin_opendrain(gpio_handle_t handle, gpio_pin_t pin) argument 239 gpio_pin_pushpull(gpio_handle_t handle, gpio_pin_t pin) argument 245 gpio_pin_tristate(gpio_handle_t handle, gpio_pin_t pin) argument 251 gpio_pin_pullup(gpio_handle_t handle, gpio_pin_t pin) argument 257 gpio_pin_pulldown(gpio_handle_t handle, gpio_pin_t pin) argument 263 gpio_pin_invin(gpio_handle_t handle, gpio_pin_t pin) argument 269 gpio_pin_invout(gpio_handle_t handle, gpio_pin_t pin) argument 275 gpio_pin_pulsate(gpio_handle_t handle, gpio_pin_t pin) argument [all...] |
/freebsd-11-stable/contrib/wpa/src/ap/ |
H A D | vlan_util.c | 27 struct nl_sock *handle = NULL; local 46 handle = nl_socket_alloc(); 47 if (!handle) { 52 err = nl_connect(handle, NETLINK_ROUTE); 59 err = rtnl_link_get_kernel(handle, 0, if_name, &rlink); 70 err = rtnl_link_get_kernel(handle, 0, vlan_if_name, &rlink); 104 err = rtnl_link_add(handle, rlink, NLM_F_CREATE); 118 if (handle) 119 nl_socket_free(handle); 127 struct nl_sock *handle local [all...] |
/freebsd-11-stable/contrib/apr-util/test/ |
H A D | testdbd.c | 34 static void test_statement(abts_case *tc, apr_dbd_t* handle, argument 40 rv = apr_dbd_query(driver, handle, &nrows, sql); 45 static void create_table(abts_case *tc, apr_dbd_t* handle, argument 53 test_statement(tc, handle, driver, sql); 56 static void drop_table(abts_case *tc, apr_dbd_t* handle, argument 60 test_statement(tc, handle, driver, sql); 63 static void delete_rows(abts_case *tc, apr_dbd_t* handle, argument 67 test_statement(tc, handle, driver, sql); 71 static void insert_data(abts_case *tc, apr_dbd_t* handle, argument 83 rv = apr_dbd_query(driver, handle, 89 select_rows(abts_case *tc, apr_dbd_t* handle, const apr_dbd_driver_t* driver, int count) argument 139 test_escape(abts_case *tc, apr_dbd_t *handle, const apr_dbd_driver_t *driver) argument 147 test_dbd_generic(abts_case *tc, apr_dbd_t* handle, const apr_dbd_driver_t* driver) argument 180 apr_dbd_t* handle = NULL; local 208 apr_dbd_t* handle = NULL; local [all...] |
/freebsd-11-stable/contrib/ntp/include/ |
H A D | timepps-SCO.h | 204 * create PPS handle from file descriptor 210 pps_handle_t *handle /* returned handle */ 219 if (!handle) { 228 *handle = malloc(sizeof(pps_unit_t)); 229 if (!(*handle)) { 234 memset(*handle, 0, sizeof(pps_unit_t)); 235 (*handle)->filedes = filedes; 236 (*handle)->params.api_version = PPS_API_VERS_1; 237 (*handle) 267 time_pps_setparams( pps_handle_t handle, const pps_params_t *params ) argument 330 time_pps_getparams( pps_handle_t handle, pps_params_t *params ) argument 358 time_pps_getcap( pps_handle_t handle, int *mode ) argument 385 time_pps_fetch( pps_handle_t handle, const int tsformat, pps_info_t *ppsinfo, const struct timespec *timeout ) argument 482 time_pps_kcbind( pps_handle_t handle, const int kernel_consumer, const int edge, const int tsformat ) argument [all...] |
/freebsd-11-stable/contrib/gdb/gdb/tui/ |
H A D | tui-wingeneral.c | 52 && data_item_win_ptr->handle != (WINDOW *) NULL) 53 wrefresh (data_item_win_ptr->handle); 62 if (win_info->handle != (WINDOW *) NULL) 63 wrefresh (win_info->handle); 85 if (win_info && win_info->handle) 90 win = win_info->handle; 111 if (win_info != NULL && win_info->generic.handle != (WINDOW *) NULL) 114 wrefresh (win_info->generic.handle); 125 && win_info->generic.handle != (WINDOW *) NULL) 128 wrefresh (win_info->generic.handle); 151 WINDOW *handle; local [all...] |
/freebsd-11-stable/sys/contrib/vchiq/interface/vchi/message_drivers/ |
H A D | message.h | 109 void *handle; member in struct:rx_bulk_slotinfo_t 166 // handle to this instance of message driver (as returned by ->open) 171 int32_t (*suspending)( VCHI_MDRIVER_HANDLE_T *handle ); 172 int32_t (*resumed)( VCHI_MDRIVER_HANDLE_T *handle ); 173 int32_t (*power_control)( VCHI_MDRIVER_HANDLE_T *handle, MESSAGE_TX_CHANNEL_T, int32_t enable ); 174 int32_t (*add_msg_rx_slot)( VCHI_MDRIVER_HANDLE_T *handle, RX_MSG_SLOTINFO_T *slot ); // rx message 175 int32_t (*add_bulk_rx)( VCHI_MDRIVER_HANDLE_T *handle, void *data, uint32_t len, RX_BULK_SLOTINFO_T *slot ); // rx data (bulk) 176 int32_t (*send)( VCHI_MDRIVER_HANDLE_T *handle, MESSAGE_TX_CHANNEL_T channel, const void *data, uint32_t len, VCHI_MSG_FLAGS_T flags, void *send_handle ); // tx (message & bulk) 177 void (*next_event)( VCHI_MDRIVER_HANDLE_T *handle, MESSAGE_EVENT_T *event ); // get the next event from message_driver 178 int32_t (*enable)( VCHI_MDRIVER_HANDLE_T *handle ); [all...] |