Lines Matching refs:ct_fd
76 ctx->ct_fd = -1; in smb_ctx_init()
604 ctx->ct_fd = fd; in smb_ctx_gethandle()
620 if (ctx->ct_fd != -1) { in smb_ctx_lookup()
621 close(ctx->ct_fd); in smb_ctx_lookup()
622 ctx->ct_fd = -1; in smb_ctx_lookup()
634 if (ioctl(ctx->ct_fd, SMBIOC_LOOKUP, &rq) == -1) { in smb_ctx_lookup()
654 if (ctx->ct_fd != -1) { in smb_ctx_login()
655 close(ctx->ct_fd); in smb_ctx_login()
656 ctx->ct_fd = -1; in smb_ctx_login()
663 if (ioctl(ctx->ct_fd, SMBIOC_OPENSESSION, ssn) == -1) { in smb_ctx_login()
670 if (ioctl(ctx->ct_fd, SMBIOC_OPENSHARE, sh) == -1) { in smb_ctx_login()
684 if (ctx->ct_fd == -1) in smb_ctx_setflags()
689 if (ioctl(ctx->ct_fd, SMBIOC_SETFLAGS, &fl) == -1) in smb_ctx_setflags()