Lines Matching defs:tcon
957 smbioc_tcon_t *tcon = NULL;
966 tcon = malloc(sizeof (*tcon));
967 if (tcon == NULL)
969 bzero(tcon, sizeof (*tcon));
970 tcon->tc_flags = SMBLK_CREATE;
971 tcon->tc_opt = 0;
974 (void) strlcpy(tcon->tc_sh.sh_name, ctx->ct_origshare,
975 sizeof (tcon->tc_sh.sh_name));
978 tcon->tc_sh.sh_use = ctx->ct_shtype_req;
985 if (ioctl(ctx->ct_dev_fd, cmd, tcon) == -1) {
993 DPRINT("ret. sh_type: \"%d\"", tcon->tc_sh.sh_type);
995 ctx->ct_shtype_req != tcon->tc_sh.sh_type) {
1002 if (tcon != NULL)
1003 free(tcon);