lib{efi,avl,share,tpool,zfs_core,zfsbootenv,zutil}: -fvisibility=hidden

No symbols affected in libavl
No symbols affected by libtpool, but pre-ANSI declarations got purged
No symbols affected by libzfs_core
No symbols affected by libzfs_bootenv

libefi got cleaned, gained efi_debug documentation in efi_partition.h,
and removes one undocumented and unused symbol from libzfs_core:
  D default_vtoc_map

libnvpair saw removal of these symbols:
  D nv_alloc_nosleep_def
  D nv_alloc_sleep
  D nv_alloc_sleep_def
  D nv_fixed_ops_def
  D nvlist_hashtable_init_size
  D nvpair_max_recursion

libshare saw removal of these symbols from libzfs:
  T libshare_nfs_init
  T libshare_smb_init
  T register_fstype
  B smb_shares

libzutil saw removal of these internal symbols from libzfs_core:
  T label_paths
  T slice_cache_compare
  T zpool_find_import_blkid
  T zpool_open_func
  T zutil_alloc
  T zutil_strdup

Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #12191
This commit is contained in:
наб 2021-06-03 23:50:07 +02:00 committed by Brian Behlendorf
parent d406a695c6
commit 327c904615
24 changed files with 2493 additions and 2579 deletions

View File

@ -24,7 +24,7 @@
*/ */
#ifndef _LIBNVPAIR_H #ifndef _LIBNVPAIR_H
#define _LIBNVPAIR_H #define _LIBNVPAIR_H extern __attribute__((visibility("default")))
#include <sys/nvpair.h> #include <sys/nvpair.h>
#include <stdlib.h> #include <stdlib.h>
@ -42,13 +42,13 @@ extern "C" {
* are all imported from <sys/nvpair.h> included above. * are all imported from <sys/nvpair.h> included above.
*/ */
extern int nvpair_value_match(nvpair_t *, int, char *, char **); _LIBNVPAIR_H int nvpair_value_match(nvpair_t *, int, char *, char **);
extern int nvpair_value_match_regex(nvpair_t *, int, char *, regex_t *, _LIBNVPAIR_H int nvpair_value_match_regex(nvpair_t *, int, char *, regex_t *,
char **); char **);
extern void nvlist_print(FILE *, nvlist_t *); _LIBNVPAIR_H void nvlist_print(FILE *, nvlist_t *);
int nvlist_print_json(FILE *, nvlist_t *); _LIBNVPAIR_H int nvlist_print_json(FILE *, nvlist_t *);
extern void dump_nvlist(nvlist_t *, int); _LIBNVPAIR_H void dump_nvlist(nvlist_t *, int);
/* /*
* Private nvlist printing interface that allows the caller some control * Private nvlist printing interface that allows the caller some control
@ -88,18 +88,18 @@ enum nvlist_indent_mode {
NVLIST_INDENT_TABBED /* Indent with tabstops */ NVLIST_INDENT_TABBED /* Indent with tabstops */
}; };
extern nvlist_prtctl_t nvlist_prtctl_alloc(void); _LIBNVPAIR_H nvlist_prtctl_t nvlist_prtctl_alloc(void);
extern void nvlist_prtctl_free(nvlist_prtctl_t); _LIBNVPAIR_H void nvlist_prtctl_free(nvlist_prtctl_t);
extern void nvlist_prt(nvlist_t *, nvlist_prtctl_t); _LIBNVPAIR_H void nvlist_prt(nvlist_t *, nvlist_prtctl_t);
/* Output stream */ /* Output stream */
extern void nvlist_prtctl_setdest(nvlist_prtctl_t, FILE *); _LIBNVPAIR_H void nvlist_prtctl_setdest(nvlist_prtctl_t, FILE *);
extern FILE *nvlist_prtctl_getdest(nvlist_prtctl_t); _LIBNVPAIR_H FILE *nvlist_prtctl_getdest(nvlist_prtctl_t);
/* Indentation mode, start indent, indent increment; default tabbed/0/1 */ /* Indentation mode, start indent, indent increment; default tabbed/0/1 */
extern void nvlist_prtctl_setindent(nvlist_prtctl_t, enum nvlist_indent_mode, _LIBNVPAIR_H void nvlist_prtctl_setindent(nvlist_prtctl_t,
int, int); enum nvlist_indent_mode, int, int);
extern void nvlist_prtctl_doindent(nvlist_prtctl_t, int); _LIBNVPAIR_H void nvlist_prtctl_doindent(nvlist_prtctl_t, int);
enum nvlist_prtctl_fmt { enum nvlist_prtctl_fmt {
NVLIST_FMT_MEMBER_NAME, /* name fmt; default "%s = " */ NVLIST_FMT_MEMBER_NAME, /* name fmt; default "%s = " */
@ -107,9 +107,10 @@ enum nvlist_prtctl_fmt {
NVLIST_FMT_BTWN_ARRAY /* between array members; default " " */ NVLIST_FMT_BTWN_ARRAY /* between array members; default " " */
}; };
extern void nvlist_prtctl_setfmt(nvlist_prtctl_t, enum nvlist_prtctl_fmt, _LIBNVPAIR_H void nvlist_prtctl_setfmt(nvlist_prtctl_t, enum nvlist_prtctl_fmt,
const char *); const char *);
extern void nvlist_prtctl_dofmt(nvlist_prtctl_t, enum nvlist_prtctl_fmt, ...); _LIBNVPAIR_H void nvlist_prtctl_dofmt(nvlist_prtctl_t, enum nvlist_prtctl_fmt,
...);
/* /*
* Function prototypes for interfaces that appoint a new rendering function * Function prototypes for interfaces that appoint a new rendering function
@ -139,7 +140,7 @@ extern void nvlist_prtctl_dofmt(nvlist_prtctl_t, enum nvlist_prtctl_fmt, ...);
*/ */
#define NVLIST_PRINTCTL_SVDECL(funcname, valtype) \ #define NVLIST_PRINTCTL_SVDECL(funcname, valtype) \
extern void funcname(nvlist_prtctl_t, \ _LIBNVPAIR_H void funcname(nvlist_prtctl_t, \
int (*)(nvlist_prtctl_t, void *, nvlist_t *, const char *, valtype), \ int (*)(nvlist_prtctl_t, void *, nvlist_t *, const char *, valtype), \
void *) void *)
@ -170,7 +171,7 @@ NVLIST_PRINTCTL_SVDECL(nvlist_prtctlop_nvlist, nvlist_t *);
* Return values as above. * Return values as above.
*/ */
#define NVLIST_PRINTCTL_AVDECL(funcname, vtype) \ #define NVLIST_PRINTCTL_AVDECL(funcname, vtype) \
extern void funcname(nvlist_prtctl_t, \ _LIBNVPAIR_H void funcname(nvlist_prtctl_t, \
int (*)(nvlist_prtctl_t, void *, nvlist_t *, const char *, vtype, uint_t), \ int (*)(nvlist_prtctl_t, void *, nvlist_t *, const char *, vtype, uint_t), \
void *) void *)

View File

@ -27,7 +27,7 @@
*/ */
#ifndef _LIBZFS_CORE_H #ifndef _LIBZFS_CORE_H
#define _LIBZFS_CORE_H #define _LIBZFS_CORE_H extern __attribute__((visibility("default")))
#include <libnvpair.h> #include <libnvpair.h>
#include <sys/param.h> #include <sys/param.h>
@ -38,41 +38,42 @@
extern "C" { extern "C" {
#endif #endif
int libzfs_core_init(void); _LIBZFS_CORE_H int libzfs_core_init(void);
void libzfs_core_fini(void); _LIBZFS_CORE_H void libzfs_core_fini(void);
/* /*
* NB: this type should be kept binary compatible with dmu_objset_type_t. * NB: this type should be kept binary-compatible with dmu_objset_type_t.
*/ */
enum lzc_dataset_type { enum lzc_dataset_type {
LZC_DATSET_TYPE_ZFS = 2, LZC_DATSET_TYPE_ZFS = 2,
LZC_DATSET_TYPE_ZVOL LZC_DATSET_TYPE_ZVOL
}; };
int lzc_snapshot(nvlist_t *, nvlist_t *, nvlist_t **); _LIBZFS_CORE_H int lzc_snapshot(nvlist_t *, nvlist_t *, nvlist_t **);
int lzc_create(const char *, enum lzc_dataset_type, nvlist_t *, uint8_t *, _LIBZFS_CORE_H int lzc_create(const char *, enum lzc_dataset_type, nvlist_t *,
uint8_t *, uint_t);
_LIBZFS_CORE_H int lzc_clone(const char *, const char *, nvlist_t *);
_LIBZFS_CORE_H int lzc_promote(const char *, char *, int);
_LIBZFS_CORE_H int lzc_destroy_snaps(nvlist_t *, boolean_t, nvlist_t **);
_LIBZFS_CORE_H int lzc_bookmark(nvlist_t *, nvlist_t **);
_LIBZFS_CORE_H int lzc_get_bookmarks(const char *, nvlist_t *, nvlist_t **);
_LIBZFS_CORE_H int lzc_get_bookmark_props(const char *, nvlist_t **);
_LIBZFS_CORE_H int lzc_destroy_bookmarks(nvlist_t *, nvlist_t **);
_LIBZFS_CORE_H int lzc_load_key(const char *, boolean_t, uint8_t *, uint_t);
_LIBZFS_CORE_H int lzc_unload_key(const char *);
_LIBZFS_CORE_H int lzc_change_key(const char *, uint64_t, nvlist_t *, uint8_t *,
uint_t); uint_t);
int lzc_clone(const char *, const char *, nvlist_t *); _LIBZFS_CORE_H int lzc_initialize(const char *, pool_initialize_func_t,
int lzc_promote(const char *, char *, int);
int lzc_destroy_snaps(nvlist_t *, boolean_t, nvlist_t **);
int lzc_bookmark(nvlist_t *, nvlist_t **);
int lzc_get_bookmarks(const char *, nvlist_t *, nvlist_t **);
int lzc_get_bookmark_props(const char *, nvlist_t **);
int lzc_destroy_bookmarks(nvlist_t *, nvlist_t **);
int lzc_load_key(const char *, boolean_t, uint8_t *, uint_t);
int lzc_unload_key(const char *);
int lzc_change_key(const char *, uint64_t, nvlist_t *, uint8_t *, uint_t);
int lzc_initialize(const char *, pool_initialize_func_t, nvlist_t *,
nvlist_t **);
int lzc_trim(const char *, pool_trim_func_t, uint64_t, boolean_t,
nvlist_t *, nvlist_t **); nvlist_t *, nvlist_t **);
int lzc_redact(const char *, const char *, nvlist_t *); _LIBZFS_CORE_H int lzc_trim(const char *, pool_trim_func_t, uint64_t, boolean_t,
nvlist_t *, nvlist_t **);
_LIBZFS_CORE_H int lzc_redact(const char *, const char *, nvlist_t *);
int lzc_snaprange_space(const char *, const char *, uint64_t *); _LIBZFS_CORE_H int lzc_snaprange_space(const char *, const char *, uint64_t *);
int lzc_hold(nvlist_t *, int, nvlist_t **); _LIBZFS_CORE_H int lzc_hold(nvlist_t *, int, nvlist_t **);
int lzc_release(nvlist_t *, nvlist_t **); _LIBZFS_CORE_H int lzc_release(nvlist_t *, nvlist_t **);
int lzc_get_holds(const char *, nvlist_t **); _LIBZFS_CORE_H int lzc_get_holds(const char *, nvlist_t **);
enum lzc_send_flags { enum lzc_send_flags {
LZC_SEND_FLAG_EMBED_DATA = 1 << 0, LZC_SEND_FLAG_EMBED_DATA = 1 << 0,
@ -82,61 +83,66 @@ enum lzc_send_flags {
LZC_SEND_FLAG_SAVED = 1 << 4, LZC_SEND_FLAG_SAVED = 1 << 4,
}; };
int lzc_send(const char *, const char *, int, enum lzc_send_flags); _LIBZFS_CORE_H int lzc_send(const char *, const char *, int,
int lzc_send_resume(const char *, const char *, int, enum lzc_send_flags);
_LIBZFS_CORE_H int lzc_send_resume(const char *, const char *, int,
enum lzc_send_flags, uint64_t, uint64_t); enum lzc_send_flags, uint64_t, uint64_t);
int lzc_send_space(const char *, const char *, enum lzc_send_flags, uint64_t *); _LIBZFS_CORE_H int lzc_send_space(const char *, const char *,
enum lzc_send_flags, uint64_t *);
struct dmu_replay_record; struct dmu_replay_record;
int lzc_send_redacted(const char *, const char *, int, enum lzc_send_flags, _LIBZFS_CORE_H int lzc_send_redacted(const char *, const char *, int,
const char *); enum lzc_send_flags, const char *);
int lzc_send_resume_redacted(const char *, const char *, int, _LIBZFS_CORE_H int lzc_send_resume_redacted(const char *, const char *, int,
enum lzc_send_flags, uint64_t, uint64_t, const char *); enum lzc_send_flags, uint64_t, uint64_t, const char *);
int lzc_receive(const char *, nvlist_t *, const char *, boolean_t, boolean_t, _LIBZFS_CORE_H int lzc_receive(const char *, nvlist_t *, const char *,
int); boolean_t, boolean_t, int);
int lzc_receive_resumable(const char *, nvlist_t *, const char *, boolean_t, _LIBZFS_CORE_H int lzc_receive_resumable(const char *, nvlist_t *, const char *,
boolean_t, int); boolean_t, boolean_t, int);
int lzc_receive_with_header(const char *, nvlist_t *, const char *, boolean_t, _LIBZFS_CORE_H int lzc_receive_with_header(const char *, nvlist_t *,
boolean_t, boolean_t, int, const struct dmu_replay_record *); const char *, boolean_t, boolean_t, boolean_t, int,
int lzc_receive_one(const char *, nvlist_t *, const char *, boolean_t, const struct dmu_replay_record *);
boolean_t, boolean_t, int, const struct dmu_replay_record *, int, _LIBZFS_CORE_H int lzc_receive_one(const char *, nvlist_t *, const char *,
boolean_t, boolean_t, boolean_t, int, const struct dmu_replay_record *, int,
uint64_t *, uint64_t *, uint64_t *, nvlist_t **); uint64_t *, uint64_t *, uint64_t *, nvlist_t **);
int lzc_receive_with_cmdprops(const char *, nvlist_t *, nvlist_t *, _LIBZFS_CORE_H int lzc_receive_with_cmdprops(const char *, nvlist_t *,
uint8_t *, uint_t, const char *, boolean_t, boolean_t, boolean_t, int, nvlist_t *, uint8_t *, uint_t, const char *, boolean_t, boolean_t,
const struct dmu_replay_record *, int, uint64_t *, uint64_t *, boolean_t, int, const struct dmu_replay_record *, int, uint64_t *,
uint64_t *, nvlist_t **); uint64_t *, uint64_t *, nvlist_t **);
int lzc_send_space(const char *, const char *, enum lzc_send_flags, uint64_t *); _LIBZFS_CORE_H int lzc_send_space(const char *, const char *,
int lzc_send_space_resume_redacted(const char *, const char *, enum lzc_send_flags, uint64_t *);
_LIBZFS_CORE_H int lzc_send_space_resume_redacted(const char *, const char *,
enum lzc_send_flags, uint64_t, uint64_t, uint64_t, const char *, enum lzc_send_flags, uint64_t, uint64_t, uint64_t, const char *,
int, uint64_t *); int, uint64_t *);
uint64_t lzc_send_progress(int); _LIBZFS_CORE_H uint64_t lzc_send_progress(int);
boolean_t lzc_exists(const char *); _LIBZFS_CORE_H boolean_t lzc_exists(const char *);
int lzc_rollback(const char *, char *, int); _LIBZFS_CORE_H int lzc_rollback(const char *, char *, int);
int lzc_rollback_to(const char *, const char *); _LIBZFS_CORE_H int lzc_rollback_to(const char *, const char *);
int lzc_rename(const char *, const char *); _LIBZFS_CORE_H int lzc_rename(const char *, const char *);
int lzc_destroy(const char *); _LIBZFS_CORE_H int lzc_destroy(const char *);
int lzc_channel_program(const char *, const char *, uint64_t, _LIBZFS_CORE_H int lzc_channel_program(const char *, const char *, uint64_t,
uint64_t, nvlist_t *, nvlist_t **);
int lzc_channel_program_nosync(const char *, const char *, uint64_t,
uint64_t, nvlist_t *, nvlist_t **); uint64_t, nvlist_t *, nvlist_t **);
_LIBZFS_CORE_H int lzc_channel_program_nosync(const char *, const char *,
uint64_t, uint64_t, nvlist_t *, nvlist_t **);
int lzc_sync(const char *, nvlist_t *, nvlist_t **); _LIBZFS_CORE_H int lzc_sync(const char *, nvlist_t *, nvlist_t **);
int lzc_reopen(const char *, boolean_t); _LIBZFS_CORE_H int lzc_reopen(const char *, boolean_t);
int lzc_pool_checkpoint(const char *); _LIBZFS_CORE_H int lzc_pool_checkpoint(const char *);
int lzc_pool_checkpoint_discard(const char *); _LIBZFS_CORE_H int lzc_pool_checkpoint_discard(const char *);
int lzc_wait(const char *, zpool_wait_activity_t, boolean_t *); _LIBZFS_CORE_H int lzc_wait(const char *, zpool_wait_activity_t, boolean_t *);
int lzc_wait_tag(const char *, zpool_wait_activity_t, uint64_t, boolean_t *); _LIBZFS_CORE_H int lzc_wait_tag(const char *, zpool_wait_activity_t, uint64_t,
int lzc_wait_fs(const char *, zfs_wait_activity_t, boolean_t *); boolean_t *);
_LIBZFS_CORE_H int lzc_wait_fs(const char *, zfs_wait_activity_t, boolean_t *);
int lzc_set_bootenv(const char *, const nvlist_t *); _LIBZFS_CORE_H int lzc_set_bootenv(const char *, const nvlist_t *);
int lzc_get_bootenv(const char *, nvlist_t **); _LIBZFS_CORE_H int lzc_get_bootenv(const char *, nvlist_t **);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif

View File

@ -14,7 +14,7 @@
*/ */
#ifndef _LIBZFSBOOTENV_H #ifndef _LIBZFSBOOTENV_H
#define _LIBZFSBOOTENV_H #define _LIBZFSBOOTENV_H extern __attribute__((visibility("default")))
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -25,14 +25,16 @@ typedef enum lzbe_flags {
lzbe_replace /* replace current nvlist */ lzbe_replace /* replace current nvlist */
} lzbe_flags_t; } lzbe_flags_t;
extern int lzbe_nvlist_get(const char *, const char *, void **); _LIBZFSBOOTENV_H int lzbe_nvlist_get(const char *, const char *, void **);
extern int lzbe_nvlist_set(const char *, const char *, void *); _LIBZFSBOOTENV_H int lzbe_nvlist_set(const char *, const char *, void *);
extern void lzbe_nvlist_free(void *); _LIBZFSBOOTENV_H void lzbe_nvlist_free(void *);
extern int lzbe_add_pair(void *, const char *, const char *, void *, size_t); _LIBZFSBOOTENV_H int lzbe_add_pair(void *, const char *, const char *, void *,
extern int lzbe_remove_pair(void *, const char *); size_t);
extern int lzbe_set_boot_device(const char *, lzbe_flags_t, const char *); _LIBZFSBOOTENV_H int lzbe_remove_pair(void *, const char *);
extern int lzbe_get_boot_device(const char *, char **); _LIBZFSBOOTENV_H int lzbe_set_boot_device(const char *, lzbe_flags_t,
extern int lzbe_bootenv_print(const char *, const char *, FILE *); const char *);
_LIBZFSBOOTENV_H int lzbe_get_boot_device(const char *, char **);
_LIBZFSBOOTENV_H int lzbe_bootenv_print(const char *, const char *, FILE *);
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@ -28,7 +28,7 @@
*/ */
#ifndef _AVL_H #ifndef _AVL_H
#define _AVL_H #define _AVL_H extern __attribute__((visibility("default")))
/* /*
* This is a private header file. Applications should not directly include * This is a private header file. Applications should not directly include
@ -160,7 +160,7 @@ typedef uintptr_t avl_index_t;
* size - the value of sizeof(struct my_type) * size - the value of sizeof(struct my_type)
* offset - the value of OFFSETOF(struct my_type, my_link) * offset - the value of OFFSETOF(struct my_type, my_link)
*/ */
extern void avl_create(avl_tree_t *tree, _AVL_H void avl_create(avl_tree_t *tree,
int (*compar) (const void *, const void *), size_t size, size_t offset); int (*compar) (const void *, const void *), size_t size, size_t offset);
@ -172,7 +172,7 @@ extern void avl_create(avl_tree_t *tree,
* node - node that has the value being looked for * node - node that has the value being looked for
* where - position for use with avl_nearest() or avl_insert(), may be NULL * where - position for use with avl_nearest() or avl_insert(), may be NULL
*/ */
extern void *avl_find(avl_tree_t *tree, const void *node, avl_index_t *where); _AVL_H void *avl_find(avl_tree_t *tree, const void *node, avl_index_t *where);
/* /*
* Insert a node into the tree. * Insert a node into the tree.
@ -180,7 +180,7 @@ extern void *avl_find(avl_tree_t *tree, const void *node, avl_index_t *where);
* node - the node to insert * node - the node to insert
* where - position as returned from avl_find() * where - position as returned from avl_find()
*/ */
extern void avl_insert(avl_tree_t *tree, void *node, avl_index_t where); _AVL_H void avl_insert(avl_tree_t *tree, void *node, avl_index_t where);
/* /*
* Insert "new_data" in "tree" in the given "direction" either after * Insert "new_data" in "tree" in the given "direction" either after
@ -193,7 +193,7 @@ extern void avl_insert(avl_tree_t *tree, void *node, avl_index_t where);
* here - existing node in "tree" * here - existing node in "tree"
* direction - either AVL_AFTER or AVL_BEFORE the data "here". * direction - either AVL_AFTER or AVL_BEFORE the data "here".
*/ */
extern void avl_insert_here(avl_tree_t *tree, void *new_data, void *here, _AVL_H void avl_insert_here(avl_tree_t *tree, void *new_data, void *here,
int direction); int direction);
@ -202,8 +202,8 @@ extern void avl_insert_here(avl_tree_t *tree, void *new_data, void *here,
* if the tree is empty. * if the tree is empty.
* *
*/ */
extern void *avl_first(avl_tree_t *tree); _AVL_H void *avl_first(avl_tree_t *tree);
extern void *avl_last(avl_tree_t *tree); _AVL_H void *avl_last(avl_tree_t *tree);
/* /*
@ -239,7 +239,7 @@ extern void *avl_last(avl_tree_t *tree);
* else * else
* less = avl_nearest(tree, where, AVL_BEFORE); * less = avl_nearest(tree, where, AVL_BEFORE);
*/ */
extern void *avl_nearest(avl_tree_t *tree, avl_index_t where, int direction); _AVL_H void *avl_nearest(avl_tree_t *tree, avl_index_t where, int direction);
/* /*
@ -249,7 +249,7 @@ extern void *avl_nearest(avl_tree_t *tree, avl_index_t where, int direction);
* *
* node - the node to add * node - the node to add
*/ */
extern void avl_add(avl_tree_t *tree, void *node); _AVL_H void avl_add(avl_tree_t *tree, void *node);
/* /*
@ -257,7 +257,7 @@ extern void avl_add(avl_tree_t *tree, void *node);
* *
* node - the node to remove * node - the node to remove
*/ */
extern void avl_remove(avl_tree_t *tree, void *node); _AVL_H void avl_remove(avl_tree_t *tree, void *node);
/* /*
* Reinsert a node only if its order has changed relative to its nearest * Reinsert a node only if its order has changed relative to its nearest
@ -266,24 +266,24 @@ extern void avl_remove(avl_tree_t *tree, void *node);
* avl_update_gt() only if you know the direction in which the order of the * avl_update_gt() only if you know the direction in which the order of the
* node may change. * node may change.
*/ */
extern boolean_t avl_update(avl_tree_t *, void *); _AVL_H boolean_t avl_update(avl_tree_t *, void *);
extern boolean_t avl_update_lt(avl_tree_t *, void *); _AVL_H boolean_t avl_update_lt(avl_tree_t *, void *);
extern boolean_t avl_update_gt(avl_tree_t *, void *); _AVL_H boolean_t avl_update_gt(avl_tree_t *, void *);
/* /*
* Swaps the contents of the two trees. * Swaps the contents of the two trees.
*/ */
extern void avl_swap(avl_tree_t *tree1, avl_tree_t *tree2); _AVL_H void avl_swap(avl_tree_t *tree1, avl_tree_t *tree2);
/* /*
* Return the number of nodes in the tree * Return the number of nodes in the tree
*/ */
extern ulong_t avl_numnodes(avl_tree_t *tree); _AVL_H ulong_t avl_numnodes(avl_tree_t *tree);
/* /*
* Return B_TRUE if there are zero nodes in the tree, B_FALSE otherwise. * Return B_TRUE if there are zero nodes in the tree, B_FALSE otherwise.
*/ */
extern boolean_t avl_is_empty(avl_tree_t *tree); _AVL_H boolean_t avl_is_empty(avl_tree_t *tree);
/* /*
* Used to destroy any remaining nodes in a tree. The cookie argument should * Used to destroy any remaining nodes in a tree. The cookie argument should
@ -306,7 +306,7 @@ extern boolean_t avl_is_empty(avl_tree_t *tree);
* free(node); * free(node);
* avl_destroy(tree); * avl_destroy(tree);
*/ */
extern void *avl_destroy_nodes(avl_tree_t *tree, void **cookie); _AVL_H void *avl_destroy_nodes(avl_tree_t *tree, void **cookie);
/* /*
@ -314,7 +314,7 @@ extern void *avl_destroy_nodes(avl_tree_t *tree, void **cookie);
* *
* tree - the empty tree to destroy * tree - the empty tree to destroy
*/ */
extern void avl_destroy(avl_tree_t *tree); _AVL_H void avl_destroy(avl_tree_t *tree);

View File

@ -25,8 +25,7 @@
*/ */
#ifndef _AVL_IMPL_H #ifndef _AVL_IMPL_H
#define _AVL_IMPL_H #define _AVL_IMPL_H extern __attribute__((visibility("default")))
/* /*
@ -155,7 +154,7 @@ struct avl_tree {
/* /*
* This will only by used via AVL_NEXT() or AVL_PREV() * This will only by used via AVL_NEXT() or AVL_PREV()
*/ */
extern void *avl_walk(struct avl_tree *, void *, int); _AVL_IMPL_H void *avl_walk(struct avl_tree *, void *, int);
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@ -24,7 +24,7 @@
*/ */
#ifndef _SYS_EFI_PARTITION_H #ifndef _SYS_EFI_PARTITION_H
#define _SYS_EFI_PARTITION_H #define _SYS_EFI_PARTITION_H extern __attribute__((visibility("default")))
#include <sys/uuid.h> #include <sys/uuid.h>
@ -363,14 +363,15 @@ struct partition64 {
#endif #endif
#ifndef _KERNEL #ifndef _KERNEL
extern int efi_alloc_and_init(int, uint32_t, struct dk_gpt **); _SYS_EFI_PARTITION_H int efi_debug;
extern int efi_alloc_and_read(int, struct dk_gpt **); _SYS_EFI_PARTITION_H int efi_alloc_and_init(int, uint32_t, struct dk_gpt **);
extern int efi_write(int, struct dk_gpt *); _SYS_EFI_PARTITION_H int efi_alloc_and_read(int, struct dk_gpt **);
extern int efi_rescan(int); _SYS_EFI_PARTITION_H int efi_write(int, struct dk_gpt *);
extern void efi_free(struct dk_gpt *); _SYS_EFI_PARTITION_H int efi_rescan(int);
extern int efi_type(int); _SYS_EFI_PARTITION_H void efi_free(struct dk_gpt *);
extern void efi_err_check(struct dk_gpt *); _SYS_EFI_PARTITION_H int efi_type(int);
extern int efi_use_whole_disk(int fd); _SYS_EFI_PARTITION_H void efi_err_check(struct dk_gpt *);
_SYS_EFI_PARTITION_H int efi_use_whole_disk(int fd);
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus

View File

@ -24,7 +24,7 @@
*/ */
#ifndef _SYS_NVPAIR_H #ifndef _SYS_NVPAIR_H
#define _SYS_NVPAIR_H #define _SYS_NVPAIR_H extern __attribute__((visibility("default")))
#include <sys/types.h> #include <sys/types.h>
#include <sys/time.h> #include <sys/time.h>
@ -135,221 +135,270 @@ struct nv_alloc_ops {
void (*nv_ao_reset)(nv_alloc_t *); void (*nv_ao_reset)(nv_alloc_t *);
}; };
extern const nv_alloc_ops_t *nv_fixed_ops; _SYS_NVPAIR_H const nv_alloc_ops_t *nv_fixed_ops;
extern nv_alloc_t *nv_alloc_nosleep; _SYS_NVPAIR_H nv_alloc_t *nv_alloc_nosleep;
#if defined(_KERNEL) #if defined(_KERNEL)
extern nv_alloc_t *nv_alloc_sleep; _SYS_NVPAIR_H nv_alloc_t *nv_alloc_sleep;
extern nv_alloc_t *nv_alloc_pushpage; _SYS_NVPAIR_H nv_alloc_t *nv_alloc_pushpage;
#endif #endif
int nv_alloc_init(nv_alloc_t *, const nv_alloc_ops_t *, /* args */ ...); _SYS_NVPAIR_H int nv_alloc_init(nv_alloc_t *, const nv_alloc_ops_t *,
void nv_alloc_reset(nv_alloc_t *); /* args */ ...);
void nv_alloc_fini(nv_alloc_t *); _SYS_NVPAIR_H void nv_alloc_reset(nv_alloc_t *);
_SYS_NVPAIR_H void nv_alloc_fini(nv_alloc_t *);
/* list management */ /* list management */
int nvlist_alloc(nvlist_t **, uint_t, int); _SYS_NVPAIR_H int nvlist_alloc(nvlist_t **, uint_t, int);
void nvlist_free(nvlist_t *); _SYS_NVPAIR_H void nvlist_free(nvlist_t *);
int nvlist_size(nvlist_t *, size_t *, int); _SYS_NVPAIR_H int nvlist_size(nvlist_t *, size_t *, int);
int nvlist_pack(nvlist_t *, char **, size_t *, int, int); _SYS_NVPAIR_H int nvlist_pack(nvlist_t *, char **, size_t *, int, int);
int nvlist_unpack(char *, size_t, nvlist_t **, int); _SYS_NVPAIR_H int nvlist_unpack(char *, size_t, nvlist_t **, int);
int nvlist_dup(nvlist_t *, nvlist_t **, int); _SYS_NVPAIR_H int nvlist_dup(nvlist_t *, nvlist_t **, int);
int nvlist_merge(nvlist_t *, nvlist_t *, int); _SYS_NVPAIR_H int nvlist_merge(nvlist_t *, nvlist_t *, int);
uint_t nvlist_nvflag(nvlist_t *); _SYS_NVPAIR_H uint_t nvlist_nvflag(nvlist_t *);
int nvlist_xalloc(nvlist_t **, uint_t, nv_alloc_t *); _SYS_NVPAIR_H int nvlist_xalloc(nvlist_t **, uint_t, nv_alloc_t *);
int nvlist_xpack(nvlist_t *, char **, size_t *, int, nv_alloc_t *); _SYS_NVPAIR_H int nvlist_xpack(nvlist_t *, char **, size_t *, int,
int nvlist_xunpack(char *, size_t, nvlist_t **, nv_alloc_t *); nv_alloc_t *);
int nvlist_xdup(nvlist_t *, nvlist_t **, nv_alloc_t *); _SYS_NVPAIR_H int nvlist_xunpack(char *, size_t, nvlist_t **, nv_alloc_t *);
nv_alloc_t *nvlist_lookup_nv_alloc(nvlist_t *); _SYS_NVPAIR_H int nvlist_xdup(nvlist_t *, nvlist_t **, nv_alloc_t *);
_SYS_NVPAIR_H nv_alloc_t *nvlist_lookup_nv_alloc(nvlist_t *);
int nvlist_add_nvpair(nvlist_t *, nvpair_t *); _SYS_NVPAIR_H int nvlist_add_nvpair(nvlist_t *, nvpair_t *);
int nvlist_add_boolean(nvlist_t *, const char *); _SYS_NVPAIR_H int nvlist_add_boolean(nvlist_t *, const char *);
int nvlist_add_boolean_value(nvlist_t *, const char *, boolean_t); _SYS_NVPAIR_H int nvlist_add_boolean_value(nvlist_t *, const char *, boolean_t);
int nvlist_add_byte(nvlist_t *, const char *, uchar_t); _SYS_NVPAIR_H int nvlist_add_byte(nvlist_t *, const char *, uchar_t);
int nvlist_add_int8(nvlist_t *, const char *, int8_t); _SYS_NVPAIR_H int nvlist_add_int8(nvlist_t *, const char *, int8_t);
int nvlist_add_uint8(nvlist_t *, const char *, uint8_t); _SYS_NVPAIR_H int nvlist_add_uint8(nvlist_t *, const char *, uint8_t);
int nvlist_add_int16(nvlist_t *, const char *, int16_t); _SYS_NVPAIR_H int nvlist_add_int16(nvlist_t *, const char *, int16_t);
int nvlist_add_uint16(nvlist_t *, const char *, uint16_t); _SYS_NVPAIR_H int nvlist_add_uint16(nvlist_t *, const char *, uint16_t);
int nvlist_add_int32(nvlist_t *, const char *, int32_t); _SYS_NVPAIR_H int nvlist_add_int32(nvlist_t *, const char *, int32_t);
int nvlist_add_uint32(nvlist_t *, const char *, uint32_t); _SYS_NVPAIR_H int nvlist_add_uint32(nvlist_t *, const char *, uint32_t);
int nvlist_add_int64(nvlist_t *, const char *, int64_t); _SYS_NVPAIR_H int nvlist_add_int64(nvlist_t *, const char *, int64_t);
int nvlist_add_uint64(nvlist_t *, const char *, uint64_t); _SYS_NVPAIR_H int nvlist_add_uint64(nvlist_t *, const char *, uint64_t);
int nvlist_add_string(nvlist_t *, const char *, const char *); _SYS_NVPAIR_H int nvlist_add_string(nvlist_t *, const char *, const char *);
int nvlist_add_nvlist(nvlist_t *, const char *, nvlist_t *); _SYS_NVPAIR_H int nvlist_add_nvlist(nvlist_t *, const char *, nvlist_t *);
int nvlist_add_boolean_array(nvlist_t *, const char *, boolean_t *, uint_t); _SYS_NVPAIR_H int nvlist_add_boolean_array(nvlist_t *, const char *,
int nvlist_add_byte_array(nvlist_t *, const char *, uchar_t *, uint_t); boolean_t *, uint_t);
int nvlist_add_int8_array(nvlist_t *, const char *, int8_t *, uint_t); _SYS_NVPAIR_H int nvlist_add_byte_array(nvlist_t *, const char *, uchar_t *,
int nvlist_add_uint8_array(nvlist_t *, const char *, uint8_t *, uint_t); uint_t);
int nvlist_add_int16_array(nvlist_t *, const char *, int16_t *, uint_t); _SYS_NVPAIR_H int nvlist_add_int8_array(nvlist_t *, const char *, int8_t *,
int nvlist_add_uint16_array(nvlist_t *, const char *, uint16_t *, uint_t); uint_t);
int nvlist_add_int32_array(nvlist_t *, const char *, int32_t *, uint_t); _SYS_NVPAIR_H int nvlist_add_uint8_array(nvlist_t *, const char *, uint8_t *,
int nvlist_add_uint32_array(nvlist_t *, const char *, uint32_t *, uint_t); uint_t);
int nvlist_add_int64_array(nvlist_t *, const char *, int64_t *, uint_t); _SYS_NVPAIR_H int nvlist_add_int16_array(nvlist_t *, const char *, int16_t *,
int nvlist_add_uint64_array(nvlist_t *, const char *, uint64_t *, uint_t); uint_t);
int nvlist_add_string_array(nvlist_t *, const char *, char *const *, uint_t); _SYS_NVPAIR_H int nvlist_add_uint16_array(nvlist_t *, const char *, uint16_t *,
int nvlist_add_nvlist_array(nvlist_t *, const char *, nvlist_t **, uint_t); uint_t);
int nvlist_add_hrtime(nvlist_t *, const char *, hrtime_t); _SYS_NVPAIR_H int nvlist_add_int32_array(nvlist_t *, const char *, int32_t *,
uint_t);
_SYS_NVPAIR_H int nvlist_add_uint32_array(nvlist_t *, const char *, uint32_t *,
uint_t);
_SYS_NVPAIR_H int nvlist_add_int64_array(nvlist_t *, const char *, int64_t *,
uint_t);
_SYS_NVPAIR_H int nvlist_add_uint64_array(nvlist_t *, const char *, uint64_t *,
uint_t);
_SYS_NVPAIR_H int nvlist_add_string_array(nvlist_t *, const char *,
char * const *, uint_t);
_SYS_NVPAIR_H int nvlist_add_nvlist_array(nvlist_t *, const char *,
nvlist_t **, uint_t);
_SYS_NVPAIR_H int nvlist_add_hrtime(nvlist_t *, const char *, hrtime_t);
#if !defined(_KERNEL) && !defined(_STANDALONE) #if !defined(_KERNEL) && !defined(_STANDALONE)
int nvlist_add_double(nvlist_t *, const char *, double); _SYS_NVPAIR_H int nvlist_add_double(nvlist_t *, const char *, double);
#endif #endif
int nvlist_remove(nvlist_t *, const char *, data_type_t); _SYS_NVPAIR_H int nvlist_remove(nvlist_t *, const char *, data_type_t);
int nvlist_remove_all(nvlist_t *, const char *); _SYS_NVPAIR_H int nvlist_remove_all(nvlist_t *, const char *);
int nvlist_remove_nvpair(nvlist_t *, nvpair_t *); _SYS_NVPAIR_H int nvlist_remove_nvpair(nvlist_t *, nvpair_t *);
int nvlist_lookup_boolean(nvlist_t *, const char *); _SYS_NVPAIR_H int nvlist_lookup_boolean(nvlist_t *, const char *);
int nvlist_lookup_boolean_value(nvlist_t *, const char *, boolean_t *); _SYS_NVPAIR_H int nvlist_lookup_boolean_value(nvlist_t *, const char *,
int nvlist_lookup_byte(nvlist_t *, const char *, uchar_t *); boolean_t *);
int nvlist_lookup_int8(nvlist_t *, const char *, int8_t *); _SYS_NVPAIR_H int nvlist_lookup_byte(nvlist_t *, const char *, uchar_t *);
int nvlist_lookup_uint8(nvlist_t *, const char *, uint8_t *); _SYS_NVPAIR_H int nvlist_lookup_int8(nvlist_t *, const char *, int8_t *);
int nvlist_lookup_int16(nvlist_t *, const char *, int16_t *); _SYS_NVPAIR_H int nvlist_lookup_uint8(nvlist_t *, const char *, uint8_t *);
int nvlist_lookup_uint16(nvlist_t *, const char *, uint16_t *); _SYS_NVPAIR_H int nvlist_lookup_int16(nvlist_t *, const char *, int16_t *);
int nvlist_lookup_int32(nvlist_t *, const char *, int32_t *); _SYS_NVPAIR_H int nvlist_lookup_uint16(nvlist_t *, const char *, uint16_t *);
int nvlist_lookup_uint32(nvlist_t *, const char *, uint32_t *); _SYS_NVPAIR_H int nvlist_lookup_int32(nvlist_t *, const char *, int32_t *);
int nvlist_lookup_int64(nvlist_t *, const char *, int64_t *); _SYS_NVPAIR_H int nvlist_lookup_uint32(nvlist_t *, const char *, uint32_t *);
int nvlist_lookup_uint64(nvlist_t *, const char *, uint64_t *); _SYS_NVPAIR_H int nvlist_lookup_int64(nvlist_t *, const char *, int64_t *);
int nvlist_lookup_string(nvlist_t *, const char *, char **); _SYS_NVPAIR_H int nvlist_lookup_uint64(nvlist_t *, const char *, uint64_t *);
int nvlist_lookup_nvlist(nvlist_t *, const char *, nvlist_t **); _SYS_NVPAIR_H int nvlist_lookup_string(nvlist_t *, const char *, char **);
int nvlist_lookup_boolean_array(nvlist_t *, const char *, _SYS_NVPAIR_H int nvlist_lookup_nvlist(nvlist_t *, const char *, nvlist_t **);
_SYS_NVPAIR_H int nvlist_lookup_boolean_array(nvlist_t *, const char *,
boolean_t **, uint_t *); boolean_t **, uint_t *);
int nvlist_lookup_byte_array(nvlist_t *, const char *, uchar_t **, uint_t *); _SYS_NVPAIR_H int nvlist_lookup_byte_array(nvlist_t *, const char *, uchar_t **,
int nvlist_lookup_int8_array(nvlist_t *, const char *, int8_t **, uint_t *); uint_t *);
int nvlist_lookup_uint8_array(nvlist_t *, const char *, uint8_t **, uint_t *); _SYS_NVPAIR_H int nvlist_lookup_int8_array(nvlist_t *, const char *, int8_t **,
int nvlist_lookup_int16_array(nvlist_t *, const char *, int16_t **, uint_t *); uint_t *);
int nvlist_lookup_uint16_array(nvlist_t *, const char *, uint16_t **, uint_t *); _SYS_NVPAIR_H int nvlist_lookup_uint8_array(nvlist_t *, const char *,
int nvlist_lookup_int32_array(nvlist_t *, const char *, int32_t **, uint_t *); uint8_t **, uint_t *);
int nvlist_lookup_uint32_array(nvlist_t *, const char *, uint32_t **, uint_t *); _SYS_NVPAIR_H int nvlist_lookup_int16_array(nvlist_t *, const char *,
int nvlist_lookup_int64_array(nvlist_t *, const char *, int64_t **, uint_t *); int16_t **, uint_t *);
int nvlist_lookup_uint64_array(nvlist_t *, const char *, uint64_t **, uint_t *); _SYS_NVPAIR_H int nvlist_lookup_uint16_array(nvlist_t *, const char *,
int nvlist_lookup_string_array(nvlist_t *, const char *, char ***, uint_t *); uint16_t **, uint_t *);
int nvlist_lookup_nvlist_array(nvlist_t *, const char *, _SYS_NVPAIR_H int nvlist_lookup_int32_array(nvlist_t *, const char *,
int32_t **, uint_t *);
_SYS_NVPAIR_H int nvlist_lookup_uint32_array(nvlist_t *, const char *,
uint32_t **, uint_t *);
_SYS_NVPAIR_H int nvlist_lookup_int64_array(nvlist_t *, const char *,
int64_t **, uint_t *);
_SYS_NVPAIR_H int nvlist_lookup_uint64_array(nvlist_t *, const char *,
uint64_t **, uint_t *);
_SYS_NVPAIR_H int nvlist_lookup_string_array(nvlist_t *, const char *,
char ***, uint_t *);
_SYS_NVPAIR_H int nvlist_lookup_nvlist_array(nvlist_t *, const char *,
nvlist_t ***, uint_t *); nvlist_t ***, uint_t *);
int nvlist_lookup_hrtime(nvlist_t *, const char *, hrtime_t *); _SYS_NVPAIR_H int nvlist_lookup_hrtime(nvlist_t *, const char *, hrtime_t *);
int nvlist_lookup_pairs(nvlist_t *, int, ...); _SYS_NVPAIR_H int nvlist_lookup_pairs(nvlist_t *, int, ...);
#if !defined(_KERNEL) && !defined(_STANDALONE) #if !defined(_KERNEL) && !defined(_STANDALONE)
int nvlist_lookup_double(nvlist_t *, const char *, double *); _SYS_NVPAIR_H int nvlist_lookup_double(nvlist_t *, const char *, double *);
#endif #endif
int nvlist_lookup_nvpair(nvlist_t *, const char *, nvpair_t **); _SYS_NVPAIR_H int nvlist_lookup_nvpair(nvlist_t *, const char *, nvpair_t **);
int nvlist_lookup_nvpair_embedded_index(nvlist_t *, const char *, nvpair_t **, _SYS_NVPAIR_H int nvlist_lookup_nvpair_embedded_index(nvlist_t *, const char *,
int *, char **); nvpair_t **, int *, char **);
boolean_t nvlist_exists(nvlist_t *, const char *); _SYS_NVPAIR_H boolean_t nvlist_exists(nvlist_t *, const char *);
boolean_t nvlist_empty(nvlist_t *); _SYS_NVPAIR_H boolean_t nvlist_empty(nvlist_t *);
/* processing nvpair */ /* processing nvpair */
nvpair_t *nvlist_next_nvpair(nvlist_t *, nvpair_t *); _SYS_NVPAIR_H nvpair_t *nvlist_next_nvpair(nvlist_t *, nvpair_t *);
nvpair_t *nvlist_prev_nvpair(nvlist_t *, nvpair_t *); _SYS_NVPAIR_H nvpair_t *nvlist_prev_nvpair(nvlist_t *, nvpair_t *);
char *nvpair_name(nvpair_t *); _SYS_NVPAIR_H char *nvpair_name(nvpair_t *);
data_type_t nvpair_type(nvpair_t *); _SYS_NVPAIR_H data_type_t nvpair_type(nvpair_t *);
int nvpair_type_is_array(nvpair_t *); _SYS_NVPAIR_H int nvpair_type_is_array(nvpair_t *);
int nvpair_value_boolean_value(nvpair_t *, boolean_t *); _SYS_NVPAIR_H int nvpair_value_boolean_value(nvpair_t *, boolean_t *);
int nvpair_value_byte(nvpair_t *, uchar_t *); _SYS_NVPAIR_H int nvpair_value_byte(nvpair_t *, uchar_t *);
int nvpair_value_int8(nvpair_t *, int8_t *); _SYS_NVPAIR_H int nvpair_value_int8(nvpair_t *, int8_t *);
int nvpair_value_uint8(nvpair_t *, uint8_t *); _SYS_NVPAIR_H int nvpair_value_uint8(nvpair_t *, uint8_t *);
int nvpair_value_int16(nvpair_t *, int16_t *); _SYS_NVPAIR_H int nvpair_value_int16(nvpair_t *, int16_t *);
int nvpair_value_uint16(nvpair_t *, uint16_t *); _SYS_NVPAIR_H int nvpair_value_uint16(nvpair_t *, uint16_t *);
int nvpair_value_int32(nvpair_t *, int32_t *); _SYS_NVPAIR_H int nvpair_value_int32(nvpair_t *, int32_t *);
int nvpair_value_uint32(nvpair_t *, uint32_t *); _SYS_NVPAIR_H int nvpair_value_uint32(nvpair_t *, uint32_t *);
int nvpair_value_int64(nvpair_t *, int64_t *); _SYS_NVPAIR_H int nvpair_value_int64(nvpair_t *, int64_t *);
int nvpair_value_uint64(nvpair_t *, uint64_t *); _SYS_NVPAIR_H int nvpair_value_uint64(nvpair_t *, uint64_t *);
int nvpair_value_string(nvpair_t *, char **); _SYS_NVPAIR_H int nvpair_value_string(nvpair_t *, char **);
int nvpair_value_nvlist(nvpair_t *, nvlist_t **); _SYS_NVPAIR_H int nvpair_value_nvlist(nvpair_t *, nvlist_t **);
int nvpair_value_boolean_array(nvpair_t *, boolean_t **, uint_t *); _SYS_NVPAIR_H int nvpair_value_boolean_array(nvpair_t *, boolean_t **,
int nvpair_value_byte_array(nvpair_t *, uchar_t **, uint_t *); uint_t *);
int nvpair_value_int8_array(nvpair_t *, int8_t **, uint_t *); _SYS_NVPAIR_H int nvpair_value_byte_array(nvpair_t *, uchar_t **, uint_t *);
int nvpair_value_uint8_array(nvpair_t *, uint8_t **, uint_t *); _SYS_NVPAIR_H int nvpair_value_int8_array(nvpair_t *, int8_t **, uint_t *);
int nvpair_value_int16_array(nvpair_t *, int16_t **, uint_t *); _SYS_NVPAIR_H int nvpair_value_uint8_array(nvpair_t *, uint8_t **, uint_t *);
int nvpair_value_uint16_array(nvpair_t *, uint16_t **, uint_t *); _SYS_NVPAIR_H int nvpair_value_int16_array(nvpair_t *, int16_t **, uint_t *);
int nvpair_value_int32_array(nvpair_t *, int32_t **, uint_t *); _SYS_NVPAIR_H int nvpair_value_uint16_array(nvpair_t *, uint16_t **, uint_t *);
int nvpair_value_uint32_array(nvpair_t *, uint32_t **, uint_t *); _SYS_NVPAIR_H int nvpair_value_int32_array(nvpair_t *, int32_t **, uint_t *);
int nvpair_value_int64_array(nvpair_t *, int64_t **, uint_t *); _SYS_NVPAIR_H int nvpair_value_uint32_array(nvpair_t *, uint32_t **, uint_t *);
int nvpair_value_uint64_array(nvpair_t *, uint64_t **, uint_t *); _SYS_NVPAIR_H int nvpair_value_int64_array(nvpair_t *, int64_t **, uint_t *);
int nvpair_value_string_array(nvpair_t *, char ***, uint_t *); _SYS_NVPAIR_H int nvpair_value_uint64_array(nvpair_t *, uint64_t **, uint_t *);
int nvpair_value_nvlist_array(nvpair_t *, nvlist_t ***, uint_t *); _SYS_NVPAIR_H int nvpair_value_string_array(nvpair_t *, char ***, uint_t *);
int nvpair_value_hrtime(nvpair_t *, hrtime_t *); _SYS_NVPAIR_H int nvpair_value_nvlist_array(nvpair_t *, nvlist_t ***, uint_t *);
_SYS_NVPAIR_H int nvpair_value_hrtime(nvpair_t *, hrtime_t *);
#if !defined(_KERNEL) && !defined(_STANDALONE) #if !defined(_KERNEL) && !defined(_STANDALONE)
int nvpair_value_double(nvpair_t *, double *); _SYS_NVPAIR_H int nvpair_value_double(nvpair_t *, double *);
#endif #endif
nvlist_t *fnvlist_alloc(void); _SYS_NVPAIR_H nvlist_t *fnvlist_alloc(void);
void fnvlist_free(nvlist_t *); _SYS_NVPAIR_H void fnvlist_free(nvlist_t *);
size_t fnvlist_size(nvlist_t *); _SYS_NVPAIR_H size_t fnvlist_size(nvlist_t *);
char *fnvlist_pack(nvlist_t *, size_t *); _SYS_NVPAIR_H char *fnvlist_pack(nvlist_t *, size_t *);
void fnvlist_pack_free(char *, size_t); _SYS_NVPAIR_H void fnvlist_pack_free(char *, size_t);
nvlist_t *fnvlist_unpack(char *, size_t); _SYS_NVPAIR_H nvlist_t *fnvlist_unpack(char *, size_t);
nvlist_t *fnvlist_dup(nvlist_t *); _SYS_NVPAIR_H nvlist_t *fnvlist_dup(nvlist_t *);
void fnvlist_merge(nvlist_t *, nvlist_t *); _SYS_NVPAIR_H void fnvlist_merge(nvlist_t *, nvlist_t *);
size_t fnvlist_num_pairs(nvlist_t *); _SYS_NVPAIR_H size_t fnvlist_num_pairs(nvlist_t *);
void fnvlist_add_boolean(nvlist_t *, const char *); _SYS_NVPAIR_H void fnvlist_add_boolean(nvlist_t *, const char *);
void fnvlist_add_boolean_value(nvlist_t *, const char *, boolean_t); _SYS_NVPAIR_H void fnvlist_add_boolean_value(nvlist_t *, const char *,
void fnvlist_add_byte(nvlist_t *, const char *, uchar_t); boolean_t);
void fnvlist_add_int8(nvlist_t *, const char *, int8_t); _SYS_NVPAIR_H void fnvlist_add_byte(nvlist_t *, const char *, uchar_t);
void fnvlist_add_uint8(nvlist_t *, const char *, uint8_t); _SYS_NVPAIR_H void fnvlist_add_int8(nvlist_t *, const char *, int8_t);
void fnvlist_add_int16(nvlist_t *, const char *, int16_t); _SYS_NVPAIR_H void fnvlist_add_uint8(nvlist_t *, const char *, uint8_t);
void fnvlist_add_uint16(nvlist_t *, const char *, uint16_t); _SYS_NVPAIR_H void fnvlist_add_int16(nvlist_t *, const char *, int16_t);
void fnvlist_add_int32(nvlist_t *, const char *, int32_t); _SYS_NVPAIR_H void fnvlist_add_uint16(nvlist_t *, const char *, uint16_t);
void fnvlist_add_uint32(nvlist_t *, const char *, uint32_t); _SYS_NVPAIR_H void fnvlist_add_int32(nvlist_t *, const char *, int32_t);
void fnvlist_add_int64(nvlist_t *, const char *, int64_t); _SYS_NVPAIR_H void fnvlist_add_uint32(nvlist_t *, const char *, uint32_t);
void fnvlist_add_uint64(nvlist_t *, const char *, uint64_t); _SYS_NVPAIR_H void fnvlist_add_int64(nvlist_t *, const char *, int64_t);
void fnvlist_add_string(nvlist_t *, const char *, const char *); _SYS_NVPAIR_H void fnvlist_add_uint64(nvlist_t *, const char *, uint64_t);
void fnvlist_add_nvlist(nvlist_t *, const char *, nvlist_t *); _SYS_NVPAIR_H void fnvlist_add_string(nvlist_t *, const char *, const char *);
void fnvlist_add_nvpair(nvlist_t *, nvpair_t *); _SYS_NVPAIR_H void fnvlist_add_nvlist(nvlist_t *, const char *, nvlist_t *);
void fnvlist_add_boolean_array(nvlist_t *, const char *, boolean_t *, uint_t); _SYS_NVPAIR_H void fnvlist_add_nvpair(nvlist_t *, nvpair_t *);
void fnvlist_add_byte_array(nvlist_t *, const char *, uchar_t *, uint_t); _SYS_NVPAIR_H void fnvlist_add_boolean_array(nvlist_t *, const char *,
void fnvlist_add_int8_array(nvlist_t *, const char *, int8_t *, uint_t); boolean_t *, uint_t);
void fnvlist_add_uint8_array(nvlist_t *, const char *, uint8_t *, uint_t); _SYS_NVPAIR_H void fnvlist_add_byte_array(nvlist_t *, const char *, uchar_t *,
void fnvlist_add_int16_array(nvlist_t *, const char *, int16_t *, uint_t); uint_t);
void fnvlist_add_uint16_array(nvlist_t *, const char *, uint16_t *, uint_t); _SYS_NVPAIR_H void fnvlist_add_int8_array(nvlist_t *, const char *, int8_t *,
void fnvlist_add_int32_array(nvlist_t *, const char *, int32_t *, uint_t); uint_t);
void fnvlist_add_uint32_array(nvlist_t *, const char *, uint32_t *, uint_t); _SYS_NVPAIR_H void fnvlist_add_uint8_array(nvlist_t *, const char *, uint8_t *,
void fnvlist_add_int64_array(nvlist_t *, const char *, int64_t *, uint_t); uint_t);
void fnvlist_add_uint64_array(nvlist_t *, const char *, uint64_t *, uint_t); _SYS_NVPAIR_H void fnvlist_add_int16_array(nvlist_t *, const char *, int16_t *,
void fnvlist_add_string_array(nvlist_t *, const char *, char * const *, uint_t); uint_t);
void fnvlist_add_nvlist_array(nvlist_t *, const char *, nvlist_t **, uint_t); _SYS_NVPAIR_H void fnvlist_add_uint16_array(nvlist_t *, const char *,
uint16_t *, uint_t);
_SYS_NVPAIR_H void fnvlist_add_int32_array(nvlist_t *, const char *, int32_t *,
uint_t);
_SYS_NVPAIR_H void fnvlist_add_uint32_array(nvlist_t *, const char *,
uint32_t *, uint_t);
_SYS_NVPAIR_H void fnvlist_add_int64_array(nvlist_t *, const char *, int64_t *,
uint_t);
_SYS_NVPAIR_H void fnvlist_add_uint64_array(nvlist_t *, const char *,
uint64_t *, uint_t);
_SYS_NVPAIR_H void fnvlist_add_string_array(nvlist_t *, const char *,
char * const *, uint_t);
_SYS_NVPAIR_H void fnvlist_add_nvlist_array(nvlist_t *, const char *,
nvlist_t **, uint_t);
void fnvlist_remove(nvlist_t *, const char *); _SYS_NVPAIR_H void fnvlist_remove(nvlist_t *, const char *);
void fnvlist_remove_nvpair(nvlist_t *, nvpair_t *); _SYS_NVPAIR_H void fnvlist_remove_nvpair(nvlist_t *, nvpair_t *);
nvpair_t *fnvlist_lookup_nvpair(nvlist_t *, const char *); _SYS_NVPAIR_H nvpair_t *fnvlist_lookup_nvpair(nvlist_t *, const char *);
boolean_t fnvlist_lookup_boolean(nvlist_t *, const char *); _SYS_NVPAIR_H boolean_t fnvlist_lookup_boolean(nvlist_t *, const char *);
boolean_t fnvlist_lookup_boolean_value(nvlist_t *, const char *); _SYS_NVPAIR_H boolean_t fnvlist_lookup_boolean_value(nvlist_t *, const char *);
uchar_t fnvlist_lookup_byte(nvlist_t *, const char *); _SYS_NVPAIR_H uchar_t fnvlist_lookup_byte(nvlist_t *, const char *);
int8_t fnvlist_lookup_int8(nvlist_t *, const char *); _SYS_NVPAIR_H int8_t fnvlist_lookup_int8(nvlist_t *, const char *);
int16_t fnvlist_lookup_int16(nvlist_t *, const char *); _SYS_NVPAIR_H int16_t fnvlist_lookup_int16(nvlist_t *, const char *);
int32_t fnvlist_lookup_int32(nvlist_t *, const char *); _SYS_NVPAIR_H int32_t fnvlist_lookup_int32(nvlist_t *, const char *);
int64_t fnvlist_lookup_int64(nvlist_t *, const char *); _SYS_NVPAIR_H int64_t fnvlist_lookup_int64(nvlist_t *, const char *);
uint8_t fnvlist_lookup_uint8(nvlist_t *, const char *); _SYS_NVPAIR_H uint8_t fnvlist_lookup_uint8(nvlist_t *, const char *);
uint16_t fnvlist_lookup_uint16(nvlist_t *, const char *); _SYS_NVPAIR_H uint16_t fnvlist_lookup_uint16(nvlist_t *, const char *);
uint32_t fnvlist_lookup_uint32(nvlist_t *, const char *); _SYS_NVPAIR_H uint32_t fnvlist_lookup_uint32(nvlist_t *, const char *);
uint64_t fnvlist_lookup_uint64(nvlist_t *, const char *); _SYS_NVPAIR_H uint64_t fnvlist_lookup_uint64(nvlist_t *, const char *);
char *fnvlist_lookup_string(nvlist_t *, const char *); _SYS_NVPAIR_H char *fnvlist_lookup_string(nvlist_t *, const char *);
nvlist_t *fnvlist_lookup_nvlist(nvlist_t *, const char *); _SYS_NVPAIR_H nvlist_t *fnvlist_lookup_nvlist(nvlist_t *, const char *);
boolean_t *fnvlist_lookup_boolean_array(nvlist_t *, const char *, uint_t *); _SYS_NVPAIR_H boolean_t *fnvlist_lookup_boolean_array(nvlist_t *, const char *,
uchar_t *fnvlist_lookup_byte_array(nvlist_t *, const char *, uint_t *); uint_t *);
int8_t *fnvlist_lookup_int8_array(nvlist_t *, const char *, uint_t *); _SYS_NVPAIR_H uchar_t *fnvlist_lookup_byte_array(nvlist_t *, const char *,
uint8_t *fnvlist_lookup_uint8_array(nvlist_t *, const char *, uint_t *); uint_t *);
int16_t *fnvlist_lookup_int16_array(nvlist_t *, const char *, uint_t *); _SYS_NVPAIR_H int8_t *fnvlist_lookup_int8_array(nvlist_t *, const char *,
uint16_t *fnvlist_lookup_uint16_array(nvlist_t *, const char *, uint_t *); uint_t *);
int32_t *fnvlist_lookup_int32_array(nvlist_t *, const char *, uint_t *); _SYS_NVPAIR_H uint8_t *fnvlist_lookup_uint8_array(nvlist_t *, const char *,
uint32_t *fnvlist_lookup_uint32_array(nvlist_t *, const char *, uint_t *); uint_t *);
int64_t *fnvlist_lookup_int64_array(nvlist_t *, const char *, uint_t *); _SYS_NVPAIR_H int16_t *fnvlist_lookup_int16_array(nvlist_t *, const char *,
uint64_t *fnvlist_lookup_uint64_array(nvlist_t *, const char *, uint_t *); uint_t *);
_SYS_NVPAIR_H uint16_t *fnvlist_lookup_uint16_array(nvlist_t *, const char *,
uint_t *);
_SYS_NVPAIR_H int32_t *fnvlist_lookup_int32_array(nvlist_t *, const char *,
uint_t *);
_SYS_NVPAIR_H uint32_t *fnvlist_lookup_uint32_array(nvlist_t *, const char *,
uint_t *);
_SYS_NVPAIR_H int64_t *fnvlist_lookup_int64_array(nvlist_t *, const char *,
uint_t *);
_SYS_NVPAIR_H uint64_t *fnvlist_lookup_uint64_array(nvlist_t *, const char *,
uint_t *);
boolean_t fnvpair_value_boolean_value(nvpair_t *nvp); _SYS_NVPAIR_H boolean_t fnvpair_value_boolean_value(nvpair_t *nvp);
uchar_t fnvpair_value_byte(nvpair_t *nvp); _SYS_NVPAIR_H uchar_t fnvpair_value_byte(nvpair_t *nvp);
int8_t fnvpair_value_int8(nvpair_t *nvp); _SYS_NVPAIR_H int8_t fnvpair_value_int8(nvpair_t *nvp);
int16_t fnvpair_value_int16(nvpair_t *nvp); _SYS_NVPAIR_H int16_t fnvpair_value_int16(nvpair_t *nvp);
int32_t fnvpair_value_int32(nvpair_t *nvp); _SYS_NVPAIR_H int32_t fnvpair_value_int32(nvpair_t *nvp);
int64_t fnvpair_value_int64(nvpair_t *nvp); _SYS_NVPAIR_H int64_t fnvpair_value_int64(nvpair_t *nvp);
uint8_t fnvpair_value_uint8(nvpair_t *nvp); _SYS_NVPAIR_H uint8_t fnvpair_value_uint8(nvpair_t *nvp);
uint16_t fnvpair_value_uint16(nvpair_t *nvp); _SYS_NVPAIR_H uint16_t fnvpair_value_uint16(nvpair_t *nvp);
uint32_t fnvpair_value_uint32(nvpair_t *nvp); _SYS_NVPAIR_H uint32_t fnvpair_value_uint32(nvpair_t *nvp);
uint64_t fnvpair_value_uint64(nvpair_t *nvp); _SYS_NVPAIR_H uint64_t fnvpair_value_uint64(nvpair_t *nvp);
char *fnvpair_value_string(nvpair_t *nvp); _SYS_NVPAIR_H char *fnvpair_value_string(nvpair_t *nvp);
nvlist_t *fnvpair_value_nvlist(nvpair_t *nvp); _SYS_NVPAIR_H nvlist_t *fnvpair_value_nvlist(nvpair_t *nvp);
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@ -25,7 +25,7 @@
*/ */
#ifndef _THREAD_POOL_H_ #ifndef _THREAD_POOL_H_
#define _THREAD_POOL_H_ #define _THREAD_POOL_H_ extern __attribute__((visibility("default")))
#include <sys/types.h> #include <sys/types.h>
#include <thread.h> #include <thread.h>
@ -37,33 +37,17 @@ extern "C" {
typedef struct tpool tpool_t; /* opaque thread pool descriptor */ typedef struct tpool tpool_t; /* opaque thread pool descriptor */
#if defined(__STDC__) _THREAD_POOL_H_ tpool_t *tpool_create(uint_t min_threads, uint_t max_threads,
extern tpool_t *tpool_create(uint_t min_threads, uint_t max_threads,
uint_t linger, pthread_attr_t *attr); uint_t linger, pthread_attr_t *attr);
extern int tpool_dispatch(tpool_t *tpool, _THREAD_POOL_H_ int tpool_dispatch(tpool_t *tpool,
void (*func)(void *), void *arg); void (*func)(void *), void *arg);
extern void tpool_destroy(tpool_t *tpool); _THREAD_POOL_H_ void tpool_destroy(tpool_t *tpool);
extern void tpool_abandon(tpool_t *tpool); _THREAD_POOL_H_ void tpool_abandon(tpool_t *tpool);
extern void tpool_wait(tpool_t *tpool); _THREAD_POOL_H_ void tpool_wait(tpool_t *tpool);
extern void tpool_suspend(tpool_t *tpool); _THREAD_POOL_H_ void tpool_suspend(tpool_t *tpool);
extern int tpool_suspended(tpool_t *tpool); _THREAD_POOL_H_ int tpool_suspended(tpool_t *tpool);
extern void tpool_resume(tpool_t *tpool); _THREAD_POOL_H_ void tpool_resume(tpool_t *tpool);
extern int tpool_member(tpool_t *tpool); _THREAD_POOL_H_ int tpool_member(tpool_t *tpool);
#else /* Non ANSI */
extern tpool_t *tpool_create();
extern int tpool_dispatch();
extern void tpool_destroy();
extern void tpool_abandon();
extern void tpool_wait();
extern void tpool_suspend();
extern int tpool_suspended();
extern void tpool_resume();
extern int tpool_member();
#endif /* __STDC__ */
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@ -4,6 +4,7 @@ VPATH = $(top_srcdir)/module/avl/
# Includes kernel code, generate warnings for large stack frames # Includes kernel code, generate warnings for large stack frames
AM_CFLAGS += $(FRAME_LARGER_THAN) AM_CFLAGS += $(FRAME_LARGER_THAN)
AM_CFLAGS += -fvisibility=hidden
noinst_LTLIBRARIES = libavl.la noinst_LTLIBRARIES = libavl.la

View File

@ -1,6 +1,7 @@
include $(top_srcdir)/config/Rules.am include $(top_srcdir)/config/Rules.am
AM_CFLAGS += $(LIBUUID_CFLAGS) $(ZLIB_CFLAGS) AM_CFLAGS += $(LIBUUID_CFLAGS) $(ZLIB_CFLAGS)
AM_CFLAGS += -fvisibility=hidden
noinst_LTLIBRARIES = libefi.la noinst_LTLIBRARIES = libefi.la

View File

@ -140,40 +140,6 @@ static struct uuid_to_ptag {
{ EFI_FREEDESKTOP_BOOT } { EFI_FREEDESKTOP_BOOT }
}; };
/*
* Default vtoc information for non-SVr4 partitions
*/
struct dk_map2 default_vtoc_map[NDKMAP] = {
{ V_ROOT, 0 }, /* a - 0 */
{ V_SWAP, V_UNMNT }, /* b - 1 */
{ V_BACKUP, V_UNMNT }, /* c - 2 */
{ V_UNASSIGNED, 0 }, /* d - 3 */
{ V_UNASSIGNED, 0 }, /* e - 4 */
{ V_UNASSIGNED, 0 }, /* f - 5 */
{ V_USR, 0 }, /* g - 6 */
{ V_UNASSIGNED, 0 }, /* h - 7 */
#if defined(_SUNOS_VTOC_16)
#if defined(i386) || defined(__amd64) || defined(__arm) || \
defined(__powerpc) || defined(__sparc) || defined(__s390__) || \
defined(__mips__) || defined(__rv64g__)
{ V_BOOT, V_UNMNT }, /* i - 8 */
{ V_ALTSCTR, 0 }, /* j - 9 */
#else
#error No VTOC format defined.
#endif /* defined(i386) */
{ V_UNASSIGNED, 0 }, /* k - 10 */
{ V_UNASSIGNED, 0 }, /* l - 11 */
{ V_UNASSIGNED, 0 }, /* m - 12 */
{ V_UNASSIGNED, 0 }, /* n - 13 */
{ V_UNASSIGNED, 0 }, /* o - 14 */
{ V_UNASSIGNED, 0 }, /* p - 15 */
#endif /* defined(_SUNOS_VTOC_16) */
};
int efi_debug = 0; int efi_debug = 0;
static int efi_read(int, struct dk_gpt *); static int efi_read(int, struct dk_gpt *);

View File

@ -7,6 +7,7 @@ VPATH = \
# Includes kernel code, generate warnings for large stack frames # Includes kernel code, generate warnings for large stack frames
# and required CFLAGS for libtirpc # and required CFLAGS for libtirpc
AM_CFLAGS += $(FRAME_LARGER_THAN) $(LIBTIRPC_CFLAGS) AM_CFLAGS += $(FRAME_LARGER_THAN) $(LIBTIRPC_CFLAGS)
AM_CFLAGS += -fvisibility=hidden
lib_LTLIBRARIES = libnvpair.la lib_LTLIBRARIES = libnvpair.la

File diff suppressed because it is too large Load Diff

View File

@ -2,6 +2,8 @@ include $(top_srcdir)/config/Rules.am
DEFAULT_INCLUDES += -I$(srcdir) DEFAULT_INCLUDES += -I$(srcdir)
AM_CFLAGS += -fvisibility=hidden
noinst_LTLIBRARIES = libshare.la noinst_LTLIBRARIES = libshare.la
USER_C = \ USER_C = \

View File

@ -119,7 +119,7 @@ nfs_fini_tmpfile(const char *exports, char *tmpfile)
return (SA_OK); return (SA_OK);
} }
__attribute__((visibility("hidden"))) int int
nfs_toggle_share(const char *lockfile, const char *exports, nfs_toggle_share(const char *lockfile, const char *exports,
const char *expdir, sa_share_impl_t impl_share, const char *expdir, sa_share_impl_t impl_share,
int(*cbk)(sa_share_impl_t impl_share, char *filename)) int(*cbk)(sa_share_impl_t impl_share, char *filename))

View File

@ -147,7 +147,7 @@ translate_opts(const char *shareopts)
* This function copies all entries from the exports file to "filename", * This function copies all entries from the exports file to "filename",
* omitting any entries for the specified mountpoint. * omitting any entries for the specified mountpoint.
*/ */
__attribute__((visibility("hidden"))) int int
nfs_copy_entries(char *filename, const char *mountpoint) nfs_copy_entries(char *filename, const char *mountpoint)
{ {
int error = SA_OK; int error = SA_OK;

View File

@ -400,7 +400,7 @@ nfs_add_entry(const char *filename, const char *sharepath,
* This function copies all entries from the exports file to "filename", * This function copies all entries from the exports file to "filename",
* omitting any entries for the specified mountpoint. * omitting any entries for the specified mountpoint.
*/ */
__attribute__((visibility("hidden"))) int int
nfs_copy_entries(char *filename, const char *mountpoint) nfs_copy_entries(char *filename, const char *mountpoint)
{ {
char *buf = NULL; char *buf = NULL;

View File

@ -25,7 +25,7 @@
* Copyright (c) 2019, 2020 by Delphix. All rights reserved. * Copyright (c) 2019, 2020 by Delphix. All rights reserved.
*/ */
#ifndef _LIBSPL_LIBSHARE_H #ifndef _LIBSPL_LIBSHARE_H
#define _LIBSPL_LIBSHARE_H #define _LIBSPL_LIBSHARE_H extern __attribute__((visibility("default")))
/* API Initialization */ /* API Initialization */
#define SA_INIT_SHARE_API 0x0001 /* init share specific interface */ #define SA_INIT_SHARE_API 0x0001 /* init share specific interface */
@ -71,16 +71,16 @@
#define SA_SHARE_EXISTS 33 /* path or file is already shared */ #define SA_SHARE_EXISTS 33 /* path or file is already shared */
/* initialization */ /* initialization */
extern char *sa_errorstr(int); _LIBSPL_LIBSHARE_H char *sa_errorstr(int);
/* share control */ /* share control */
extern int sa_enable_share(const char *, const char *, const char *, _LIBSPL_LIBSHARE_H int sa_enable_share(const char *, const char *, const char *,
char *); char *);
extern int sa_disable_share(const char *, char *); _LIBSPL_LIBSHARE_H int sa_disable_share(const char *, char *);
extern boolean_t sa_is_shared(const char *, char *); _LIBSPL_LIBSHARE_H boolean_t sa_is_shared(const char *, char *);
extern void sa_commit_shares(const char *); _LIBSPL_LIBSHARE_H void sa_commit_shares(const char *);
/* protocol specific interfaces */ /* protocol specific interfaces */
extern int sa_validate_shareopts(char *, char *); _LIBSPL_LIBSHARE_H int sa_validate_shareopts(char *, char *);
#endif /* _LIBSPL_LIBSHARE_H */ #endif /* _LIBSPL_LIBSHARE_H */

View File

@ -1,5 +1,7 @@
include $(top_srcdir)/config/Rules.am include $(top_srcdir)/config/Rules.am
AM_CFLAGS += -fvisibility=hidden
noinst_LTLIBRARIES = libtpool.la noinst_LTLIBRARIES = libtpool.la
USER_C = \ USER_C = \

View File

@ -34,8 +34,6 @@
<elf-symbol name='get_dataset_depth' type='func-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/> <elf-symbol name='get_dataset_depth' type='func-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/>
<elf-symbol name='getprop_uint64' type='func-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/> <elf-symbol name='getprop_uint64' type='func-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/>
<elf-symbol name='is_mounted' type='func-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/> <elf-symbol name='is_mounted' type='func-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/>
<elf-symbol name='libshare_nfs_init' type='func-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/>
<elf-symbol name='libshare_smb_init' type='func-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/>
<elf-symbol name='libzfs_add_handle' type='func-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/> <elf-symbol name='libzfs_add_handle' type='func-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/>
<elf-symbol name='libzfs_envvar_is_set' type='func-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/> <elf-symbol name='libzfs_envvar_is_set' type='func-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/>
<elf-symbol name='libzfs_errno' type='func-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/> <elf-symbol name='libzfs_errno' type='func-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/>
@ -59,7 +57,6 @@
<elf-symbol name='permset_namecheck' type='func-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/> <elf-symbol name='permset_namecheck' type='func-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/>
<elf-symbol name='pool_namecheck' type='func-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/> <elf-symbol name='pool_namecheck' type='func-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/>
<elf-symbol name='printf_color' type='func-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/> <elf-symbol name='printf_color' type='func-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/>
<elf-symbol name='register_fstype' type='func-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/>
<elf-symbol name='sa_commit_shares' type='func-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/> <elf-symbol name='sa_commit_shares' type='func-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/>
<elf-symbol name='sa_disable_share' type='func-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/> <elf-symbol name='sa_disable_share' type='func-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/>
<elf-symbol name='sa_enable_share' type='func-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/> <elf-symbol name='sa_enable_share' type='func-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/>
@ -350,7 +347,6 @@
<elf-symbol name='fletcher_4_superscalar4_ops' size='64' type='object-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/> <elf-symbol name='fletcher_4_superscalar4_ops' size='64' type='object-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/>
<elf-symbol name='fletcher_4_superscalar_ops' size='64' type='object-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/> <elf-symbol name='fletcher_4_superscalar_ops' size='64' type='object-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/>
<elf-symbol name='libzfs_config_ops' size='16' type='object-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/> <elf-symbol name='libzfs_config_ops' size='16' type='object-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/>
<elf-symbol name='smb_shares' size='8' type='object-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/>
<elf-symbol name='spa_feature_table' size='1904' type='object-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/> <elf-symbol name='spa_feature_table' size='1904' type='object-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/>
<elf-symbol name='zfeature_checks_disable' size='4' type='object-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/> <elf-symbol name='zfeature_checks_disable' size='4' type='object-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/>
<elf-symbol name='zfs_deleg_perm_tab' size='512' type='object-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/> <elf-symbol name='zfs_deleg_perm_tab' size='512' type='object-type' binding='global-binding' visibility='default-visibility' is-defined='yes'/>
@ -2686,13 +2682,6 @@
<parameter type-id='type-id-104'/> <parameter type-id='type-id-104'/>
<return type-id='type-id-8'/> <return type-id='type-id-8'/>
</function-decl> </function-decl>
<function-decl name='zfs_setprop_error' visibility='default' binding='global' size-in-bits='64'>
<parameter type-id='type-id-91'/>
<parameter type-id='type-id-85'/>
<parameter type-id='type-id-8'/>
<parameter type-id='type-id-17'/>
<return type-id='type-id-6'/>
</function-decl>
<function-decl name='changelist_free' visibility='default' binding='global' size-in-bits='64'> <function-decl name='changelist_free' visibility='default' binding='global' size-in-bits='64'>
<parameter type-id='type-id-231'/> <parameter type-id='type-id-231'/>
<return type-id='type-id-6'/> <return type-id='type-id-6'/>
@ -2701,6 +2690,13 @@
<parameter type-id='type-id-231'/> <parameter type-id='type-id-231'/>
<return type-id='type-id-8'/> <return type-id='type-id-8'/>
</function-decl> </function-decl>
<function-decl name='zfs_setprop_error' visibility='default' binding='global' size-in-bits='64'>
<parameter type-id='type-id-91'/>
<parameter type-id='type-id-85'/>
<parameter type-id='type-id-8'/>
<parameter type-id='type-id-17'/>
<return type-id='type-id-6'/>
</function-decl>
<function-decl name='nvlist_remove_all' visibility='default' binding='global' size-in-bits='64'> <function-decl name='nvlist_remove_all' visibility='default' binding='global' size-in-bits='64'>
<parameter type-id='type-id-104'/> <parameter type-id='type-id-104'/>
<parameter type-id='type-id-84'/> <parameter type-id='type-id-84'/>
@ -7576,6 +7572,51 @@
</function-decl> </function-decl>
</abi-instr> </abi-instr>
<abi-instr version='1.0' address-size='64' path='libshare.c' comp-dir-path='/home/nabijaczleweli/store/code/zfs/lib/libshare' language='LANG_C99'> <abi-instr version='1.0' address-size='64' path='libshare.c' comp-dir-path='/home/nabijaczleweli/store/code/zfs/lib/libshare' language='LANG_C99'>
<function-decl name='libshare_nfs_init' visibility='default' binding='global' size-in-bits='64'>
<return type-id='type-id-6'/>
</function-decl>
<function-decl name='libshare_smb_init' visibility='default' binding='global' size-in-bits='64'>
<return type-id='type-id-6'/>
</function-decl>
<function-decl name='sa_is_shared' mangled-name='sa_is_shared' visibility='default' binding='global' size-in-bits='64' elf-symbol-id='sa_is_shared'>
<parameter type-id='type-id-84' name='mountpoint'/>
<parameter type-id='type-id-17' name='protocol'/>
<return type-id='type-id-16'/>
</function-decl>
</abi-instr>
<abi-instr version='1.0' address-size='64' path='nfs.c' comp-dir-path='/home/nabijaczleweli/store/code/zfs/lib/libshare' language='LANG_C99'>
<function-decl name='mkdir' visibility='default' binding='global' size-in-bits='64'>
<parameter type-id='type-id-84'/>
<parameter type-id='type-id-5'/>
<return type-id='type-id-8'/>
</function-decl>
<function-decl name='mkostemp' mangled-name='mkostemp64' visibility='default' binding='global' size-in-bits='64'>
<parameter type-id='type-id-17'/>
<parameter type-id='type-id-8'/>
<return type-id='type-id-8'/>
</function-decl>
<function-decl name='flock' visibility='default' binding='global' size-in-bits='64'>
<parameter type-id='type-id-8'/>
<parameter type-id='type-id-8'/>
<return type-id='type-id-8'/>
</function-decl>
<function-decl name='nfs_copy_entries' visibility='default' binding='global' size-in-bits='64'>
<parameter type-id='type-id-17'/>
<parameter type-id='type-id-84'/>
<return type-id='type-id-8'/>
</function-decl>
<function-decl name='rename' visibility='default' binding='global' size-in-bits='64'>
<parameter type-id='type-id-84'/>
<parameter type-id='type-id-84'/>
<return type-id='type-id-8'/>
</function-decl>
</abi-instr>
<abi-instr version='1.0' address-size='64' path='os/linux/nfs.c' comp-dir-path='/home/nabijaczleweli/store/code/zfs/lib/libshare' language='LANG_C99'>
<function-decl name='fputs' visibility='default' binding='global' size-in-bits='64'>
<parameter type-id='type-id-84'/>
<parameter type-id='type-id-150'/>
<return type-id='type-id-8'/>
</function-decl>
<class-decl name='sa_fstype' size-in-bits='256' is-struct='yes' visibility='default' id='type-id-533'> <class-decl name='sa_fstype' size-in-bits='256' is-struct='yes' visibility='default' id='type-id-533'>
<data-member access='public' layout-offset-in-bits='0'> <data-member access='public' layout-offset-in-bits='0'>
<var-decl name='next' type-id='type-id-534' visibility='default'/> <var-decl name='next' type-id='type-id-534' visibility='default'/>
@ -7643,23 +7684,21 @@
<typedef-decl name='sa_share_ops_t' type-id='type-id-536' id='type-id-555'/> <typedef-decl name='sa_share_ops_t' type-id='type-id-536' id='type-id-555'/>
<qualified-type-def type-id='type-id-555' const='yes' id='type-id-556'/> <qualified-type-def type-id='type-id-555' const='yes' id='type-id-556'/>
<pointer-type-def type-id='type-id-556' size-in-bits='64' id='type-id-535'/> <pointer-type-def type-id='type-id-556' size-in-bits='64' id='type-id-535'/>
<typedef-decl name='sa_fstype_t' type-id='type-id-533' id='type-id-557'/> <qualified-type-def type-id='type-id-536' const='yes' id='type-id-557'/>
<pointer-type-def type-id='type-id-557' size-in-bits='64' id='type-id-558'/> <pointer-type-def type-id='type-id-557' size-in-bits='64' id='type-id-558'/>
<function-decl name='register_fstype' mangled-name='register_fstype' visibility='default' binding='global' size-in-bits='64' elf-symbol-id='register_fstype'> <function-decl name='register_fstype' visibility='default' binding='global' size-in-bits='64'>
<parameter type-id='type-id-84' name='name'/> <parameter type-id='type-id-84'/>
<parameter type-id='type-id-535' name='ops'/> <parameter type-id='type-id-558'/>
<return type-id='type-id-558'/> <return type-id='type-id-534'/>
</function-decl> </function-decl>
<function-decl name='libshare_nfs_init' visibility='default' binding='global' size-in-bits='64'> <pointer-type-def type-id='type-id-559' size-in-bits='64' id='type-id-560'/>
<return type-id='type-id-6'/> <function-decl name='nfs_toggle_share' visibility='default' binding='global' size-in-bits='64'>
</function-decl> <parameter type-id='type-id-84'/>
<function-decl name='libshare_smb_init' visibility='default' binding='global' size-in-bits='64'> <parameter type-id='type-id-84'/>
<return type-id='type-id-6'/> <parameter type-id='type-id-84'/>
</function-decl> <parameter type-id='type-id-547'/>
<function-decl name='sa_is_shared' mangled-name='sa_is_shared' visibility='default' binding='global' size-in-bits='64' elf-symbol-id='sa_is_shared'> <parameter type-id='type-id-560'/>
<parameter type-id='type-id-84' name='mountpoint'/> <return type-id='type-id-8'/>
<parameter type-id='type-id-17' name='protocol'/>
<return type-id='type-id-16'/>
</function-decl> </function-decl>
<function-type size-in-bits='64' id='type-id-554'> <function-type size-in-bits='64' id='type-id-554'>
<return type-id='type-id-8'/> <return type-id='type-id-8'/>
@ -7668,6 +7707,11 @@
<parameter type-id='type-id-84'/> <parameter type-id='type-id-84'/>
<return type-id='type-id-8'/> <return type-id='type-id-8'/>
</function-type> </function-type>
<function-type size-in-bits='64' id='type-id-559'>
<parameter type-id='type-id-547'/>
<parameter type-id='type-id-17'/>
<return type-id='type-id-8'/>
</function-type>
<function-type size-in-bits='64' id='type-id-549'> <function-type size-in-bits='64' id='type-id-549'>
<parameter type-id='type-id-548'/> <parameter type-id='type-id-548'/>
<return type-id='type-id-8'/> <return type-id='type-id-8'/>
@ -7686,93 +7730,12 @@
<return type-id='type-id-6'/> <return type-id='type-id-6'/>
</function-type> </function-type>
</abi-instr> </abi-instr>
<abi-instr version='1.0' address-size='64' path='nfs.c' comp-dir-path='/home/nabijaczleweli/store/code/zfs/lib/libshare' language='LANG_C99'>
<function-decl name='mkdir' visibility='default' binding='global' size-in-bits='64'>
<parameter type-id='type-id-84'/>
<parameter type-id='type-id-5'/>
<return type-id='type-id-8'/>
</function-decl>
<function-decl name='mkostemp' mangled-name='mkostemp64' visibility='default' binding='global' size-in-bits='64'>
<parameter type-id='type-id-17'/>
<parameter type-id='type-id-8'/>
<return type-id='type-id-8'/>
</function-decl>
<function-decl name='flock' visibility='default' binding='global' size-in-bits='64'>
<parameter type-id='type-id-8'/>
<parameter type-id='type-id-8'/>
<return type-id='type-id-8'/>
</function-decl>
<function-decl name='nfs_copy_entries' visibility='default' binding='global' size-in-bits='64'>
<parameter type-id='type-id-17'/>
<parameter type-id='type-id-84'/>
<return type-id='type-id-8'/>
</function-decl>
<function-decl name='rename' visibility='default' binding='global' size-in-bits='64'>
<parameter type-id='type-id-84'/>
<parameter type-id='type-id-84'/>
<return type-id='type-id-8'/>
</function-decl>
</abi-instr>
<abi-instr version='1.0' address-size='64' path='os/linux/nfs.c' comp-dir-path='/home/nabijaczleweli/store/code/zfs/lib/libshare' language='LANG_C99'>
<function-decl name='fputs' visibility='default' binding='global' size-in-bits='64'>
<parameter type-id='type-id-84'/>
<parameter type-id='type-id-150'/>
<return type-id='type-id-8'/>
</function-decl>
<qualified-type-def type-id='type-id-536' const='yes' id='type-id-559'/>
<pointer-type-def type-id='type-id-559' size-in-bits='64' id='type-id-560'/>
<function-decl name='register_fstype' visibility='default' binding='global' size-in-bits='64'>
<parameter type-id='type-id-84'/>
<parameter type-id='type-id-560'/>
<return type-id='type-id-534'/>
</function-decl>
<pointer-type-def type-id='type-id-561' size-in-bits='64' id='type-id-562'/>
<function-decl name='nfs_toggle_share' visibility='default' binding='global' size-in-bits='64'>
<parameter type-id='type-id-84'/>
<parameter type-id='type-id-84'/>
<parameter type-id='type-id-84'/>
<parameter type-id='type-id-547'/>
<parameter type-id='type-id-562'/>
<return type-id='type-id-8'/>
</function-decl>
<function-type size-in-bits='64' id='type-id-561'>
<parameter type-id='type-id-547'/>
<parameter type-id='type-id-17'/>
<return type-id='type-id-8'/>
</function-type>
</abi-instr>
<abi-instr version='1.0' address-size='64' path='os/linux/smb.c' comp-dir-path='/home/nabijaczleweli/store/code/zfs/lib/libshare' language='LANG_C99'> <abi-instr version='1.0' address-size='64' path='os/linux/smb.c' comp-dir-path='/home/nabijaczleweli/store/code/zfs/lib/libshare' language='LANG_C99'>
<class-decl name='smb_share_s' size-in-bits='36992' is-struct='yes' visibility='default' id='type-id-563'>
<data-member access='public' layout-offset-in-bits='0'>
<var-decl name='name' type-id='type-id-564' visibility='default'/>
</data-member>
<data-member access='public' layout-offset-in-bits='2040'>
<var-decl name='path' type-id='type-id-109' visibility='default'/>
</data-member>
<data-member access='public' layout-offset-in-bits='34808'>
<var-decl name='comment' type-id='type-id-564' visibility='default'/>
</data-member>
<data-member access='public' layout-offset-in-bits='36864'>
<var-decl name='guest_ok' type-id='type-id-16' visibility='default'/>
</data-member>
<data-member access='public' layout-offset-in-bits='36928'>
<var-decl name='next' type-id='type-id-565' visibility='default'/>
</data-member>
</class-decl>
<array-type-def dimensions='1' type-id='type-id-32' size-in-bits='2040' id='type-id-564'>
<subrange length='255' type-id='type-id-33' id='type-id-566'/>
</array-type-def>
<pointer-type-def type-id='type-id-563' size-in-bits='64' id='type-id-565'/>
<typedef-decl name='smb_share_t' type-id='type-id-563' id='type-id-567'/>
<pointer-type-def type-id='type-id-567' size-in-bits='64' id='type-id-568'/>
<var-decl name='smb_shares' type-id='type-id-568' mangled-name='smb_shares' visibility='default' elf-symbol-id='smb_shares'/>
<function-decl name='opendir' visibility='default' binding='global' size-in-bits='64'> <function-decl name='opendir' visibility='default' binding='global' size-in-bits='64'>
<parameter type-id='type-id-84'/> <parameter type-id='type-id-84'/>
<return type-id='type-id-305'/> <return type-id='type-id-305'/>
</function-decl> </function-decl>
<class-decl name='dirent' size-in-bits='2240' is-struct='yes' visibility='default' id='type-id-569'> <class-decl name='dirent' size-in-bits='2240' is-struct='yes' visibility='default' id='type-id-561'>
<data-member access='public' layout-offset-in-bits='0'> <data-member access='public' layout-offset-in-bits='0'>
<var-decl name='d_ino' type-id='type-id-307' visibility='default'/> <var-decl name='d_ino' type-id='type-id-307' visibility='default'/>
</data-member> </data-member>
@ -7789,10 +7752,10 @@
<var-decl name='d_name' type-id='type-id-12' visibility='default'/> <var-decl name='d_name' type-id='type-id-12' visibility='default'/>
</data-member> </data-member>
</class-decl> </class-decl>
<pointer-type-def type-id='type-id-569' size-in-bits='64' id='type-id-570'/> <pointer-type-def type-id='type-id-561' size-in-bits='64' id='type-id-562'/>
<function-decl name='readdir' mangled-name='readdir64' visibility='default' binding='global' size-in-bits='64'> <function-decl name='readdir' mangled-name='readdir64' visibility='default' binding='global' size-in-bits='64'>
<parameter type-id='type-id-305'/> <parameter type-id='type-id-305'/>
<return type-id='type-id-570'/> <return type-id='type-id-562'/>
</function-decl> </function-decl>
<function-decl name='fgets' visibility='default' binding='global' size-in-bits='64'> <function-decl name='fgets' visibility='default' binding='global' size-in-bits='64'>
<parameter type-id='type-id-17'/> <parameter type-id='type-id-17'/>

View File

@ -2,6 +2,8 @@ include $(top_srcdir)/config/Rules.am
pkgconfig_DATA = libzfs_core.pc pkgconfig_DATA = libzfs_core.pc
AM_CFLAGS += -fvisibility=hidden
lib_LTLIBRARIES = libzfs_core.la lib_LTLIBRARIES = libzfs_core.la
include $(top_srcdir)/config/Abigail.am include $(top_srcdir)/config/Abigail.am

File diff suppressed because it is too large Load Diff

View File

@ -2,6 +2,8 @@ include $(top_srcdir)/config/Rules.am
pkgconfig_DATA = libzfsbootenv.pc pkgconfig_DATA = libzfsbootenv.pc
AM_CFLAGS += -fvisibility=hidden
lib_LTLIBRARIES = libzfsbootenv.la lib_LTLIBRARIES = libzfsbootenv.la
include $(top_srcdir)/config/Abigail.am include $(top_srcdir)/config/Abigail.am

View File

@ -3,6 +3,7 @@ include $(top_srcdir)/config/Rules.am
# Suppress unused but set variable warnings often due to ASSERTs # Suppress unused but set variable warnings often due to ASSERTs
AM_CFLAGS += $(NO_UNUSED_BUT_SET_VARIABLE) AM_CFLAGS += $(NO_UNUSED_BUT_SET_VARIABLE)
AM_CFLAGS += $(LIBBLKID_CFLAGS) $(LIBUDEV_CFLAGS) AM_CFLAGS += $(LIBBLKID_CFLAGS) $(LIBUDEV_CFLAGS)
AM_CFLAGS += -fvisibility=hidden
DEFAULT_INCLUDES += -I$(srcdir) DEFAULT_INCLUDES += -I$(srcdir)