Lines Matching defs:libshare
84 #include <libshare.h>
509 * Make sure things will work if libshare isn't installed by using
532 * Find the libshare.so.1 entry points that we use here and save the
542 void *libshare;
553 "/usr/lib/%s/libshare.so.1", isa);
555 if ((libshare = dlopen(path, RTLD_LAZY | RTLD_GLOBAL)) != NULL) {
556 _sa_init = (sa_handle_t (*)(int))dlsym(libshare, "sa_init");
557 _sa_fini = (void (*)(sa_handle_t))dlsym(libshare, "sa_fini");
559 dlsym(libshare, "sa_find_share");
560 _sa_enable_share = (int (*)(sa_share_t, char *))dlsym(libshare,
562 _sa_disable_share = (int (*)(sa_share_t, char *))dlsym(libshare,
564 _sa_errorstr = (char *(*)(int))dlsym(libshare, "sa_errorstr");
566 dlsym(libshare, "sa_parse_legacy_options");
568 dlsym(libshare, "sa_needs_refresh");
570 dlsym(libshare, "sa_get_zfs_handle");
573 char *, char *))dlsym(libshare, "sa_zfs_process_share");
575 dlsym(libshare, "sa_update_sharetab_ts");
589 (void) dlclose(libshare);
602 * Initialize the libshare API if it hasn't already been initialized.
605 * direct map to the libshare sa_init(service) interface.
646 * Uninitialize the libshare API if it hasn't already been
728 * on "libshare" to the dirty work for us.
868 * Mountpoint could get trashed if libshare calls getmntany
874 /* make sure libshare initialized */