Lines Matching defs:info
909 smb_netuserinfo_t info;
912 smb_user_netinfo_init(user, &info);
913 rc = smb_netuserinfo_encode(&info, buf, buflen, nbytes);
914 smb_user_netinfo_fini(&info);
920 smb_user_netinfo_init(smb_user_t *user, smb_netuserinfo_t *info)
933 info->ui_session_id = session->s_kid;
934 info->ui_native_os = session->native_os;
935 info->ui_ipaddr = session->ipaddr;
936 info->ui_numopens = session->s_file_cnt;
937 info->ui_smb_uid = user->u_uid;
938 info->ui_logon_time = user->u_logon_time;
939 info->ui_flags = user->u_flags;
940 info->ui_posix_uid = crgetuid(user->u_cred);
942 info->ui_domain_len = user->u_domain_len;
943 info->ui_domain = smb_mem_strdup(user->u_domain);
945 info->ui_account_len = user->u_name_len;
946 info->ui_account = smb_mem_strdup(user->u_name);
950 info->ui_workstation_len = strlen(buf) + 1;
951 info->ui_workstation = smb_mem_strdup(buf);
956 smb_user_netinfo_fini(smb_netuserinfo_t *info)
958 if (info == NULL)
961 if (info->ui_domain)
962 smb_mem_free(info->ui_domain);
963 if (info->ui_account)
964 smb_mem_free(info->ui_account);
965 if (info->ui_workstation)
966 smb_mem_free(info->ui_workstation);
968 bzero(info, sizeof (smb_netuserinfo_t));