Lines Matching defs:shdl

2597 srvsvc_get_mntpnt(libshare_handle_t *shdl, const char *path, char **mntpntp)
2610 rc = sa_get_mntpnt_for_path(shdl, path, mntpnt, MAXPATHLEN,
2627 libshare_handle_t *shdl;
2634 if ((shdl = sa_open()) == NULL)
2637 if ((rc = srvsvc_get_mntpnt(shdl, path, &mntpnt)) != SA_OK) {
2638 sa_close(shdl);
2642 if (sa_share_read(shdl, mntpnt, sharename, &share) != SA_OK) {
2645 sa_close(shdl);
2660 if ((rc = sa_share_validate(shdl, share, valflags, errbuf,
2664 if ((rc = sa_share_write(shdl, share, B_TRUE, B_TRUE)) != SA_OK)
2667 if (!sa_sharing_prop_enabled(shdl, mntpnt, sharename, SA_PROT_SMB))
2668 rc = sa_sharing_set_prop(shdl, mntpnt, sharename,
2673 sa_close(shdl);
2687 libshare_handle_t *shdl;
2692 if ((shdl = sa_open()) == NULL)
2695 if ((rc = srvsvc_get_mntpnt(shdl, path, &mntpnt)) != SA_OK) {
2696 sa_close(shdl);
2700 rc = sa_share_read(shdl, mntpnt, sharename, &share);
2703 sa_close(shdl);
2709 rc = sa_share_remove(shdl, sharename, mntpnt, B_TRUE);
2711 rc = sa_share_write(shdl, share, B_TRUE, B_TRUE);
2715 sa_close(shdl);
2726 libshare_handle_t *shdl;
2733 if ((shdl = sa_open()) == NULL)
2736 if ((rc = srvsvc_get_mntpnt(shdl, si->shr_path, &mntpnt)) != SA_OK) {
2737 sa_close(shdl);
2741 rc = sa_share_read(shdl, mntpnt, si->shr_name, &share);
2743 sa_close(shdl);
2766 sa_close(shdl);
2783 sa_close(shdl);
2792 if ((rc = sa_share_write(shdl, share, B_TRUE,
2796 sa_close(shdl);
2804 rc = sa_share_remove(shdl, si->shr_name,
2811 sa_close(shdl);
2835 libshare_handle_t *shdl;
2838 if ((shdl = sa_open()) == NULL)
2841 if ((rc = srvsvc_get_mntpnt(shdl, si->shr_path, &mntpnt)) != SA_OK) {
2842 sa_close(shdl);
2846 rc = sa_share_read(shdl, mntpnt, si->shr_name, &share);
2848 sa_close(shdl);
2856 sa_close(shdl);
2883 rc = sa_share_validate(shdl, share, valflags, errbuf,
2886 rc = sa_share_write(shdl, share, B_TRUE, B_TRUE);
2892 sa_close(shdl);