Lines Matching defs:libshare
82 #include <libshare.h>
498 * Make sure things will work if libshare isn't installed by using
519 * Find the libshare.so.1 entry points that we use here and save the
528 void *libshare;
539 "/usr/lib/%s/libshare.so.1", isa);
541 if ((libshare = dlopen(path, RTLD_LAZY | RTLD_GLOBAL)) != NULL) {
542 _sa_init = (sa_handle_t (*)(int))dlsym(libshare, "sa_init");
543 _sa_fini = (void (*)(sa_handle_t))dlsym(libshare, "sa_fini");
545 dlsym(libshare, "sa_find_share");
546 _sa_enable_share = (int (*)(sa_share_t, char *))dlsym(libshare,
548 _sa_disable_share = (int (*)(sa_share_t, char *))dlsym(libshare,
550 _sa_errorstr = (char *(*)(int))dlsym(libshare, "sa_errorstr");
552 dlsym(libshare, "sa_parse_legacy_options");
554 dlsym(libshare, "sa_needs_refresh");
556 dlsym(libshare, "sa_get_zfs_handle");
559 char *, char *))dlsym(libshare, "sa_zfs_process_share");
561 dlsym(libshare, "sa_update_sharetab_ts");
575 (void) dlclose(libshare);
587 * Initialize the libshare API if it hasn't already been initialized.
590 * direct map to the libshare sa_init(service) interface.
629 * Uninitialize the libshare API if it hasn't already been
703 * on "libshare" to the dirty work for us.
826 * Mountpoint could get trashed if libshare calls getmntany
832 /* make sure libshare initialized */