| /freebsd/sys/contrib/openzfs/lib/libzfs/ |
| H A D | libzfs_mnttab.c | 51 mnttab_node_alloc(libzfs_handle_t *hdl, const char *special, in mnttab_node_alloc() argument 54 mnttab_node_t *mtn = zfs_alloc(hdl, sizeof (mnttab_node_t)); in mnttab_node_alloc() 55 mtn->mtn_mt.mnt_special = zfs_strdup(hdl, special); in mnttab_node_alloc() 56 mtn->mtn_mt.mnt_mountp = zfs_strdup(hdl, mountp); in mnttab_node_alloc() 58 mtn->mtn_mt.mnt_mntopts = zfs_strdup(hdl, mntopts); in mnttab_node_alloc() 63 mnttab_node_free(libzfs_handle_t *hdl, mnttab_node_t *mtn) in mnttab_node_free() argument 65 (void) hdl; in mnttab_node_free() 85 mnttab_drop(libzfs_handle_t *hdl) in mnttab_drop() argument 89 while ((mtn = avl_destroy_nodes(&hdl->zh_mnttab, &cookie)) != NULL) in mnttab_drop() 90 mnttab_node_free(hdl, mtn); in mnttab_drop() [all …]
|
| H A D | libzfs_util.c | 75 libzfs_errno(libzfs_handle_t *hdl) in libzfs_errno() argument 77 return (hdl->libzfs_error); in libzfs_errno() 81 libzfs_error_action(libzfs_handle_t *hdl) in libzfs_error_action() argument 83 return (hdl->libzfs_action); in libzfs_error_action() 87 libzfs_error_description(libzfs_handle_t *hdl) in libzfs_error_description() argument 89 if (hdl->libzfs_desc[0] != '\0') in libzfs_error_description() 90 return (hdl->libzfs_desc); in libzfs_error_description() 92 switch (hdl->libzfs_error) { in libzfs_error_description() 333 assert(hdl->libzfs_error == 0); in libzfs_error_description() 339 zfs_error_aux(libzfs_handle_t *hdl, const char *fmt, ...) in zfs_error_aux() argument [all …]
|
| H A D | libzfs_config.c | 69 namespace_clear(libzfs_handle_t *hdl) in namespace_clear() argument 74 while ((cn = avl_destroy_nodes(&hdl->libzfs_ns_avl, &cookie)) != NULL) { in namespace_clear() 80 avl_destroy(&hdl->libzfs_ns_avl); in namespace_clear() 87 namespace_reload(libzfs_handle_t *hdl) in namespace_reload() argument 95 if (hdl->libzfs_ns_gen == 0) { in namespace_reload() 96 avl_create(&hdl->libzfs_ns_avl, config_node_compare, in namespace_reload() 100 zcmd_alloc_dst_nvlist(hdl, &zc, 0); in namespace_reload() 103 zc.zc_cookie = hdl->libzfs_ns_gen; in namespace_reload() 104 if (zfs_ioctl(hdl, ZFS_IOC_POOL_CONFIGS, &zc) != 0) { in namespace_reload() 114 zcmd_expand_dst_nvlist(hdl, &zc); in namespace_reload() [all …]
|
| H A D | libzfs_pool.c | 80 libzfs_handle_t *hdl = zhp->zpool_hdl; in zpool_get_all_props() local 88 zcmd_write_src_nvlist(hdl, &zc, innvl); in zpool_get_all_props() 92 zcmd_alloc_dst_nvlist(hdl, &zc, 0); in zpool_get_all_props() 94 while (zfs_ioctl(hdl, ZFS_IOC_POOL_GET_PROPS, &zc) != 0) { in zpool_get_all_props() 96 zcmd_expand_dst_nvlist(hdl, &zc); in zpool_get_all_props() 103 if (zcmd_read_dst_nvlist(hdl, &zc, &zhp->zpool_props) != 0) { in zpool_get_all_props() 588 zpool_valid_proplist(libzfs_handle_t *hdl, const char *poolname, in zpool_valid_proplist() argument 603 (void) no_memory(hdl); in zpool_valid_proplist() 615 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, "'%s' " in zpool_valid_proplist() 617 (void) zfs_error(hdl, EZFS_PROPREADONLY, in zpool_valid_proplist() [all …]
|
| H A D | libzfs_dataset.c | 109 zfs_validate_name(libzfs_handle_t *hdl, const char *path, int type, in zfs_validate_name() argument 116 if (hdl != NULL) in zfs_validate_name() 117 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_validate_name() 123 if (hdl != NULL) in zfs_validate_name() 124 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_validate_name() 130 if (hdl != NULL) in zfs_validate_name() 131 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_validate_name() 137 if (hdl != NULL) in zfs_validate_name() 138 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_validate_name() 144 if (hdl != NULL) in zfs_validate_name() [all …]
|
| H A D | libzfs_sendrecv.c | 76 static int guid_to_name_redact_snaps(libzfs_handle_t *hdl, const char *parent, 452 get_snap_guid(libzfs_handle_t *hdl, const char *fs, const char *snap) in get_snap_guid() argument 461 zfs_handle_t *zhp = zfs_open(hdl, name, ZFS_TYPE_SNAPSHOT); in get_snap_guid() 475 get_snap_txg(libzfs_handle_t *hdl, const char *fs, const char *snap) in get_snap_txg() argument 484 if (zfs_dataset_exists(hdl, name, ZFS_TYPE_SNAPSHOT)) { in get_snap_txg() 485 zfs_handle_t *zhp = zfs_open(hdl, name, ZFS_TYPE_SNAPSHOT); in get_snap_txg() 702 gather_nvlist(libzfs_handle_t *hdl, const char *fsname, const char *fromsnap, in gather_nvlist() argument 713 zhp = zfs_open(hdl, fsname, ZFS_TYPE_FILESYSTEM | ZFS_TYPE_VOLUME); in gather_nvlist() 793 libzfs_handle_t *hdl = zhp->zfs_hdl; in zfs_send_space() local 796 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_send_space() [all …]
|
| H A D | libzfs_crypto.c | 108 zfs_prop_parse_keylocation(libzfs_handle_t *restrict hdl, const char *str, in zfs_prop_parse_keylocation() argument 121 if (regexec(&hdl->libzfs_urire, str, ARRAY_SIZE(pmatch), in zfs_prop_parse_keylocation() 126 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_prop_parse_keylocation() 138 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_prop_parse_keylocation() 148 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, "Invalid keylocation")); in zfs_prop_parse_keylocation() 204 validate_key(libzfs_handle_t *hdl, zfs_keyformat_t keyformat, in validate_key() argument 211 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in validate_key() 218 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in validate_key() 227 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in validate_key() 234 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in validate_key() [all …]
|
| /freebsd/sys/contrib/openzfs/cmd/zed/agents/ |
| H A D | fmd_api.c | 100 fmd_hdl_register(fmd_hdl_t *hdl, int version, const fmd_hdl_info_t *mip) in fmd_hdl_register() argument 103 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_hdl_register() 117 fmd_hdl_debug(hdl, "register module"); in fmd_hdl_register() 123 fmd_hdl_unregister(fmd_hdl_t *hdl) in fmd_hdl_unregister() argument 125 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_hdl_unregister() 130 fmd_hdl_debug(hdl, "%s: %llu", msp->ms_accepted.fmds_name, in fmd_hdl_unregister() 133 fmd_hdl_debug(hdl, "%s: %llu", msp->ms_caseopen.fmds_name, in fmd_hdl_unregister() 135 fmd_hdl_debug(hdl, "%s: %llu", msp->ms_casesolved.fmds_name, in fmd_hdl_unregister() 137 fmd_hdl_debug(hdl, "%s: %llu", msp->ms_caseclosed.fmds_name, in fmd_hdl_unregister() 146 fmd_hdl_debug(hdl, "%s: %llu", in fmd_hdl_unregister() [all …]
|
| H A D | zfs_diagnosis.c | 133 static void zfs_purge_cases(fmd_hdl_t *hdl); 148 zfs_case_unserialize(fmd_hdl_t *hdl, fmd_case_t *cp) in zfs_case_unserialize() argument 152 zcp = fmd_hdl_zalloc(hdl, sizeof (zfs_case_t), FMD_SLEEP); in zfs_case_unserialize() 155 fmd_buf_read(hdl, cp, CASE_DATA, &zcp->zc_data, in zfs_case_unserialize() 159 fmd_hdl_free(hdl, zcp, sizeof (zfs_case_t)); in zfs_case_unserialize() 170 zcp->zc_remove_timer = fmd_timer_install(hdl, zcp, in zfs_case_unserialize() 176 fmd_case_setspecific(hdl, cp, zcp); in zfs_case_unserialize() 185 zfs_other_serd_cases(fmd_hdl_t *hdl, const zfs_case_data_t *zfs_case) in zfs_other_serd_cases() argument 200 fmd_serd_gc(hdl); in zfs_other_serd_cases() 201 zfs_purge_cases(hdl); in zfs_other_serd_cases() [all …]
|
| H A D | zfs_retire.c | 63 zfs_retire_clear_data(fmd_hdl_t *hdl, zfs_retire_data_t *zdp) in zfs_retire_clear_data() argument 69 fmd_hdl_free(hdl, zrp, sizeof (zfs_retire_repaired_t)); in zfs_retire_clear_data() 276 is_draid_fdomain_failure(fmd_hdl_t *hdl, libzfs_handle_t *zhdl, in is_draid_fdomain_failure() argument 307 nfaults_map = fmd_hdl_alloc(hdl, in is_draid_fdomain_failure() 344 fmd_hdl_free(hdl, nfaults_map, children * sizeof (*nfaults_map)); in is_draid_fdomain_failure() 347 fmd_hdl_debug(hdl, "vdev %llu belongs to draid fdomain failure", in is_draid_fdomain_failure() 359 replace_with_spare(fmd_hdl_t *hdl, zpool_handle_t *zhp, nvlist_t *vdev) in replace_with_spare() argument 385 replacement = fmd_nvl_alloc(hdl, FMD_SLEEP); in replace_with_spare() 417 fmd_hdl_debug(hdl, "zpool_vdev_replace '%s' with spare '%s'", in replace_with_spare() 440 zfs_vdev_repair(fmd_hdl_t *hdl, nvlist_t *nvl) in zfs_vdev_repair() argument [all …]
|
| /freebsd/crypto/krb5/src/kdc/ |
| H A D | kdc_audit.c | 51 audit_module_handle *hp, hdl; in free_handles() local 57 hdl = *hp; in free_handles() 58 if (hdl->vt.close != NULL) in free_handles() 59 hdl->vt.close(hdl->auctx); in free_handles() 60 free(hdl); in free_handles() 76 audit_module_handle *list = NULL, hdl = NULL; in load_audit_modules() local 95 hdl = k5alloc(sizeof(*hdl), &ret); in load_audit_modules() 96 if (hdl == NULL) in load_audit_modules() 98 ret = (*mod)(context, 1, 1, (krb5_plugin_vtable)&hdl->vt); in load_audit_modules() 100 free(hdl); in load_audit_modules() [all …]
|
| /freebsd/sys/contrib/openzfs/module/zfs/ |
| H A D | sa.c | 135 static int sa_build_index(sa_handle_t *hdl, sa_buf_type_t buftype); 142 static int sa_modify_attrs(sa_handle_t *hdl, sa_attr_type_t newattr, 221 sa_handle_t *hdl = buf; in sa_cache_constructor() local 223 mutex_init(&hdl->sa_lock, NULL, MUTEX_DEFAULT, NULL); in sa_cache_constructor() 231 sa_handle_t *hdl = buf; in sa_cache_destructor() local 232 mutex_destroy(&hdl->sa_lock); in sa_cache_destructor() 301 sa_get_spill(sa_handle_t *hdl) in sa_get_spill() argument 304 if (hdl->sa_spill == NULL) { in sa_get_spill() 305 if ((rc = dmu_spill_hold_existing(hdl->sa_bonus, NULL, in sa_get_spill() 306 &hdl->sa_spill)) == 0) in sa_get_spill() [all …]
|
| H A D | zfs_znode.c | 88 zfs_release_sa_handle(sa_handle_t *hdl, dmu_buf_t *db, const void *tag) in zfs_release_sa_handle() argument 90 sa_handle_destroy(hdl); in zfs_release_sa_handle() 99 zfs_obj_to_pobj(objset_t *osp, sa_handle_t *hdl, sa_attr_type_t *sa_table, in zfs_obj_to_pobj() argument 119 if ((error = sa_bulk_lookup(hdl, bulk, count)) != 0) in zfs_obj_to_pobj() 155 zfs_obj_to_stats_impl(sa_handle_t *hdl, sa_attr_type_t *sa_table, in zfs_obj_to_stats_impl() argument 170 return (sa_bulk_lookup(hdl, bulk, count)); in zfs_obj_to_stats_impl() 174 zfs_obj_to_path_impl(objset_t *osp, uint64_t obj, sa_handle_t *hdl, in zfs_obj_to_path_impl() argument 186 sa_hdl = hdl; in zfs_obj_to_path_impl() 237 if (sa_hdl != hdl) { in zfs_obj_to_path_impl() 249 if (sa_hdl != NULL && sa_hdl != hdl) { in zfs_obj_to_path_impl() [all …]
|
| /freebsd/sys/contrib/openzfs/lib/libzutil/ |
| H A D | zutil_import.c | 76 libpc_error_description(libpc_handle_t *hdl) in libpc_error_description() argument 78 if (hdl->lpc_desc[0] != '\0') in libpc_error_description() 79 return (hdl->lpc_desc); in libpc_error_description() 81 switch (hdl->lpc_error) { in libpc_error_description() 94 assert(hdl->lpc_error == 0); in libpc_error_description() 100 zutil_error_aux(libpc_handle_t *hdl, const char *fmt, ...) in zutil_error_aux() argument 106 (void) vsnprintf(hdl->lpc_desc, sizeof (hdl->lpc_desc), fmt, ap); in zutil_error_aux() 107 hdl->lpc_desc_active = B_TRUE; in zutil_error_aux() 113 zutil_verror(libpc_handle_t *hdl, lpc_error_t error, const char *fmt, in zutil_verror() argument 119 hdl->lpc_error = error; in zutil_verror() [all …]
|
| /freebsd/usr.sbin/bluetooth/ath3kfw/ |
| H A D | ath3k_hw.c | 50 ath3k_load_fwfile(struct libusb_device_handle *hdl, in ath3k_load_fwfile() argument 66 ret = libusb_control_transfer(hdl, in ath3k_load_fwfile() 92 ret = libusb_bulk_transfer(hdl, in ath3k_load_fwfile() 112 ath3k_get_state(struct libusb_device_handle *hdl, unsigned char *state) in ath3k_get_state() argument 116 ret = libusb_control_transfer(hdl, in ath3k_get_state() 137 ath3k_get_version(struct libusb_device_handle *hdl, in ath3k_get_version() argument 142 ret = libusb_control_transfer(hdl, in ath3k_get_version() 165 ath3k_load_patch(libusb_device_handle *hdl, const char *fw_path) in ath3k_load_patch() argument 174 ret = ath3k_get_state(hdl, &fw_state); in ath3k_load_patch() 186 ret = ath3k_get_version(hdl, &fw_ver); in ath3k_load_patch() [all …]
|
| /freebsd/usr.sbin/bluetooth/iwmbtfw/ |
| H A D | main.c | 234 iwmbt_identify(libusb_device_handle *hdl, enum iwmbt_device device) in iwmbt_identify() argument 243 r = iwmbt_bt_reset(hdl); in iwmbt_identify() 251 r = iwmbt_read_version_tlv(hdl, data, &datalen); in iwmbt_identify() 294 iwmbt_init_firmware(libusb_device_handle *hdl, const char *firmware_path, in iwmbt_init_firmware() argument 367 ret = iwmbt_load_rsa_header(hdl, &fw); in iwmbt_init_firmware() 369 ret = iwmbt_load_ecdsa_header(hdl, &fw); in iwmbt_init_firmware() 374 ret = iwmbt_load_fwfile(hdl, &fw, boot_param, header_len); in iwmbt_init_firmware() 384 iwmbt_init_ddc(libusb_device_handle *hdl, const char *ddc_path) in iwmbt_init_ddc() argument 398 ret = iwmbt_load_ddc(hdl, &ddc); in iwmbt_init_ddc() 449 handle_7260(libusb_device_handle *hdl, char *firmware_dir) in handle_7260() argument [all …]
|
| H A D | iwmbt_hw.h | 96 extern int iwmbt_patch_fwfile(struct libusb_device_handle *hdl, 98 extern int iwmbt_load_rsa_header(struct libusb_device_handle *hdl, 100 extern int iwmbt_load_ecdsa_header(struct libusb_device_handle *hdl, 102 extern int iwmbt_load_fwfile(struct libusb_device_handle *hdl, 104 extern int iwmbt_bt_reset(struct libusb_device_handle *hdl); 105 extern int iwmbt_enter_manufacturer(struct libusb_device_handle *hdl); 106 extern int iwmbt_exit_manufacturer(struct libusb_device_handle *hdl, 108 extern int iwmbt_get_version(struct libusb_device_handle *hdl, 110 extern int iwmbt_read_version_tlv(struct libusb_device_handle *hdl, 112 extern int iwmbt_get_version_tlv(struct libusb_device_handle *hdl, [all …]
|
| H A D | iwmbt_hw.c | 53 iwmbt_send_fragment(struct libusb_device_handle *hdl, in iwmbt_send_fragment() argument 66 ret = libusb_bulk_transfer(hdl, in iwmbt_send_fragment() 80 ret = libusb_bulk_transfer(hdl, in iwmbt_send_fragment() 97 iwmbt_hci_command(struct libusb_device_handle *hdl, struct iwmbt_hci_cmd *cmd, in iwmbt_hci_command() argument 103 ret = libusb_control_transfer(hdl, in iwmbt_hci_command() 124 ret = libusb_interrupt_transfer(hdl, in iwmbt_hci_command() 162 iwmbt_patch_fwfile(struct libusb_device_handle *hdl, in iwmbt_patch_fwfile() argument 222 ret = libusb_control_transfer(hdl, in iwmbt_patch_fwfile() 276 ret = libusb_interrupt_transfer(hdl, in iwmbt_patch_fwfile() 307 ret = iwmbt_send_fragment(hdl, \ [all …]
|
| /freebsd/sys/contrib/openzfs/lib/libzfs/os/freebsd/ |
| H A D | libzfs_compat.c | 244 zpool_relabel_disk(libzfs_handle_t *hdl, const char *path, const char *msg) in zpool_relabel_disk() argument 246 (void) hdl, (void) path, (void) msg; in zpool_relabel_disk() 251 zpool_label_disk(libzfs_handle_t *hdl, zpool_handle_t *zhp, const char *name) in zpool_label_disk() argument 253 (void) hdl, (void) zhp, (void) name; in zpool_label_disk() 265 zfs_destroy_snaps_nvl_os(libzfs_handle_t *hdl, nvlist_t *snaps) in zfs_destroy_snaps_nvl_os() argument 267 (void) hdl, (void) snaps; in zfs_destroy_snaps_nvl_os() 277 libzfs_handle_t *hdl = zhp->zfs_hdl; in zfs_jail() local 292 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_jail() 294 return (zfs_error(hdl, EZFS_BADTYPE, errbuf)); in zfs_jail() 296 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_jail() [all …]
|
| /freebsd/libexec/rtld-elf/tests/ |
| H A D | dlopen_test.c | 16 void *hdl, *sym; in ATF_TC_BODY() local 18 hdl = dlopen("libthr.so", RTLD_NOW); in ATF_TC_BODY() 19 ATF_REQUIRE(hdl != NULL); in ATF_TC_BODY() 21 sym = dlsym(hdl, "pthread_create"); in ATF_TC_BODY() 24 dlclose(hdl); in ATF_TC_BODY() 26 sym = dlsym(hdl, "pthread_create"); in ATF_TC_BODY() 33 void *hdl; in ATF_TC_BODY() local 39 hdl = dlopen("libthr.so", RTLD_NOW | RTLD_GLOBAL); in ATF_TC_BODY() 40 ATF_REQUIRE(hdl != NULL); in ATF_TC_BODY() 42 dlclose(hdl); in ATF_TC_BODY()
|
| /freebsd/sys/dev/irdma/ |
| H A D | icrdma.c | 128 struct irdma_handler *hdl; in irdma_find_handler() local 132 list_for_each_entry(hdl, &irdma_handlers, list) { in irdma_find_handler() 133 if (!hdl->iwdev->rf->peer_info) in irdma_find_handler() 135 if (hdl->iwdev->rf->peer_info->dev == p_dev->dev) { in irdma_find_handler() 137 return hdl; in irdma_find_handler() 152 struct irdma_handler *hdl; in peer_to_iwdev() local 154 hdl = irdma_find_handler(peer); in peer_to_iwdev() 155 if (!hdl) { in peer_to_iwdev() 160 return hdl->iwdev; in peer_to_iwdev() 582 struct irdma_handler *hdl; in irdma_probe() local [all …]
|
| /freebsd/sys/contrib/openzfs/lib/libzfs/os/linux/ |
| H A D | libzfs_util_os.c | 214 zfs_destroy_snaps_nvl_os(libzfs_handle_t *hdl, nvlist_t *snaps) in zfs_destroy_snaps_nvl_os() argument 216 (void) hdl, (void) snaps; in zfs_destroy_snaps_nvl_os() 252 libzfs_handle_t *hdl = zhp->zfs_hdl; in zfs_userns() local 270 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_userns() 272 return (zfs_error(hdl, EZFS_BADTYPE, errbuf)); in zfs_userns() 274 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_userns() 276 return (zfs_error(hdl, EZFS_BADTYPE, errbuf)); in zfs_userns() 278 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_userns() 280 return (zfs_error(hdl, EZFS_BADTYPE, errbuf)); in zfs_userns() 282 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, in zfs_userns() [all …]
|
| H A D | libzfs_pool_os.c | 61 zpool_relabel_disk(libzfs_handle_t *hdl, const char *path, const char *msg) in zpool_relabel_disk() argument 66 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, "cannot " in zpool_relabel_disk() 68 return (zfs_error(hdl, EZFS_OPENFAILED, msg)); in zpool_relabel_disk() 84 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, "cannot " in zpool_relabel_disk() 86 return (zfs_error(hdl, EZFS_NOCAP, msg)); in zpool_relabel_disk() 212 zpool_label_disk(libzfs_handle_t *hdl, zpool_handle_t *zhp, const char *name) in zpool_label_disk() argument 247 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, "cannot " in zpool_label_disk() 249 return (zfs_error(hdl, EZFS_OPENFAILED, errbuf)); in zpool_label_disk() 258 (void) no_memory(hdl); in zpool_label_disk() 261 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, "cannot " in zpool_label_disk() [all …]
|
| /freebsd/contrib/ncurses/ncurses/tinfo/ |
| H A D | lib_win32con.c | 164 IsConsoleHandle(HANDLE hdl) in IsConsoleHandle() argument 169 T((T_CALLED("lib_win32con::IsConsoleHandle(HANDLE=%p"), hdl)); in IsConsoleHandle() 173 if (!GetConsoleMode(hdl, &dwFlag)) { in IsConsoleHandle() 192 HANDLE hdl = INVALID_HANDLE_VALUE; in _nc_console_test() local 194 hdl = _nc_console_handle(fd); in _nc_console_test() 195 code = (int) IsConsoleHandle(hdl); in _nc_console_test() 199 #define OutHandle() ((WINCONSOLE.isTermInfoConsole || WINCONSOLE.progMode) ? WINCONSOLE.hdl : WINCO… 204 if (WINCONSOLE.lastOut != WINCONSOLE.hdl) { in _nc_console_selectActiveHandle() 205 WINCONSOLE.lastOut = WINCONSOLE.hdl; in _nc_console_selectActiveHandle() 213 HANDLE hdl = _nc_console_handle(fd); in _nc_console_fd2handle() local [all …]
|
| /freebsd/sys/contrib/openzfs/lib/libzfsbootenv/ |
| H A D | lzbe_device.c | 31 libzfs_handle_t *hdl; in lzbe_set_boot_device() local 41 if ((hdl = libzfs_init()) == NULL) in lzbe_set_boot_device() 44 zphdl = zpool_open(hdl, pool); in lzbe_set_boot_device() 46 libzfs_fini(hdl); in lzbe_set_boot_device() 103 fprintf(stderr, "%s\n", libzfs_error_description(hdl)); in lzbe_set_boot_device() 107 libzfs_fini(hdl); in lzbe_set_boot_device() 117 libzfs_handle_t *hdl; in lzbe_get_boot_device() local 126 if ((hdl = libzfs_init()) == NULL) in lzbe_get_boot_device() 129 zphdl = zpool_open(hdl, pool); in lzbe_get_boot_device() 131 libzfs_fini(hdl); in lzbe_get_boot_device() [all …]
|