Browse Source

faux: Ld version script

Serj Kalichev 3 years ago
parent
commit
04eb4347c4
2 changed files with 328 additions and 0 deletions
  1. 4 0
      faux/Makefile.am
  2. 324 0
      faux/faux.map

+ 4 - 0
faux/Makefile.am

@@ -4,6 +4,10 @@ libfaux_la_LIBADD = $(PTHREAD_LIBS)
 libfaux_la_CFLAGS = $(PTHREAD_CFLAGS)
 libfaux_la_LDFLAGS = $(AM_LDFLAGS) $(VERSION_INFO)
 
+if HAVE_LD_VERSION_SCRIPT
+libfaux_la_LDFLAGS += -Wl,--version-script=faux/faux.map
+endif
+
 if TESTC
 libfaux_la_CFLAGS += -DTESTC
 endif

+ 324 - 0
faux/faux.map

@@ -0,0 +1,324 @@
+
+FAUX_2.0 {
+	global:
+
+		faux_argv_new;
+		faux_argv_free;
+		faux_argv_set_quotes;
+		faux_argv_iter;
+		faux_argv_each;
+		faux_argv_parse;
+		faux_argv_is_continuable;
+
+		faux_async_new;
+		faux_async_free;
+		faux_async_fd;
+		faux_async_set_read_cb;
+		faux_async_set_read_limits;
+		faux_async_set_stall_cb;
+		faux_async_set_write_overflow;
+		faux_async_set_read_overflow;
+		faux_async_write;
+		faux_async_out;
+		faux_async_in;
+
+		faux_conv_atol;
+		faux_conv_atoul;
+		faux_conv_atoll;
+		faux_conv_atoull;
+		faux_conv_atoi;
+		faux_conv_atoui;
+		faux_conv_atos;
+		faux_conv_atous;
+		faux_conv_atoc;
+		faux_conv_atouc;
+		faux_conv_str2bool;
+		faux_conv_bool2str;
+
+		faux_ctype_isdigit;
+		faux_ctype_isspace;
+		faux_ctype_tolower;
+		faux_ctype_toupper;
+
+		faux_eloop_new;
+		faux_eloop_free;
+		faux_eloop_loop;
+		faux_eloop_add_fd;
+		faux_eloop_del_fd;
+		faux_eloop_add_signal;
+		faux_eloop_del_signal;
+		faux_eloop_add_sched_once;
+		faux_eloop_add_sched_once_delayed;
+		faux_eloop_add_sched_periodic;
+		faux_eloop_add_sched_periodic_delayed;
+		faux_eloop_del_sched;
+		faux_eloop_del_sched_by_id;
+		faux_eloop_include_fd_event;
+		faux_eloop_exclude_fd_event;
+
+		faux_error_new;
+		faux_error_free;
+		faux_error_reset;
+		faux_error_len;
+		faux_error;
+		faux_error_add;
+		faux_error_sprintf;
+		faux_error_iter;
+		faux_error_iterr;
+		faux_error_each;
+		faux_error_eachr;
+		faux_error_fshow;
+		faux_error_show;
+
+		faux_free;
+		faux_malloc;
+		faux_bzero;
+		faux_zmalloc;
+
+		faux_write;
+		faux_read;
+		faux_write_block;
+		faux_read_block;
+		faux_read_whole_file;
+
+		faux_filesize;
+		faux_isdir;
+		faux_isfile;
+		faux_rm;
+		faux_expand_tilde;
+
+		faux_file_fdopen;
+		faux_file_open;
+		faux_file_close;
+		faux_file_fileno;
+		faux_file_eof;
+
+		faux_file_getline_raw;
+		faux_file_getline;
+		faux_file_write;
+		faux_file_write_block;
+		faux_file_read;
+		faux_file_read_block;
+
+		faux_pair_name;
+		faux_pair_value;
+		faux_ini_new;
+		faux_ini_free;
+		faux_ini_set;
+		faux_ini_unset;
+		faux_ini_is_empty;
+		faux_ini_find_pair;
+		faux_ini_find;
+		faux_ini_iter;
+		faux_ini_each;
+		faux_ini_parse_str;
+		faux_ini_parse_file;
+		faux_ini_write_str;
+		faux_ini_write_file;
+		faux_ini_extract_subini;
+
+		faux_list_prev_node;
+		faux_list_next_node;
+		faux_list_data;
+		faux_list_each_node;
+		faux_list_eachr_node;
+		faux_list_each;
+		faux_list_eachr;
+		faux_list_new;
+		faux_list_free;
+		faux_list_head;
+		faux_list_tail;
+		faux_list_len;
+		faux_list_is_empty;
+		faux_list_add;
+		faux_list_add_find;
+		faux_list_takeaway;
+		faux_list_del;
+		faux_list_kdel;
+		faux_list_del_all;
+		faux_list_match_node;
+		faux_list_kmatch_node;
+		faux_list_match;
+		faux_list_kmatch;
+		faux_list_find_node;
+		faux_list_kfind_node;
+		faux_list_find;
+		faux_list_kfind;
+
+		faux_log_facility_id;
+		faux_log_facility_str;
+
+		faux_hdr_set_cmd;
+		faux_hdr_cmd;
+		faux_hdr_set_status;
+		faux_hdr_status;
+		faux_hdr_set_req_id;
+		faux_hdr_req_id;
+		faux_hdr_set_param_num;
+		faux_hdr_param_num;
+		faux_hdr_set_len;
+		faux_hdr_len;
+		faux_hdr_set_magic;
+		faux_hdr_magic;
+		faux_hdr_set_major;
+		faux_hdr_major;
+		faux_hdr_set_minor;
+		faux_hdr_minor;
+		faux_phdr_set_type;
+		faux_phdr_get_type;
+		faux_phdr_set_len;
+		faux_phdr_get_len;
+		faux_msg_new;
+		faux_msg_free;
+		faux_msg_set_cmd;
+		faux_msg_get_cmd;
+		faux_msg_set_status;
+		faux_msg_get_status;
+		faux_msg_set_req_id;
+		faux_msg_get_req_id;
+		faux_msg_get_param_num;
+		faux_msg_get_len;
+		faux_msg_get_magic;
+		faux_msg_get_major;
+		faux_msg_get_minor;
+		faux_msg_add_param;
+		faux_msg_init_param_iter;
+		faux_msg_get_param_each;
+		faux_msg_get_param_by_index;
+		faux_msg_get_param_by_type;
+		faux_msg_send;
+		faux_msg_recv;
+		faux_msg_iov;
+		faux_msg_serialize;
+		faux_msg_deserialize_parts;
+		faux_msg_deserialize;
+		faux_msg_debug;
+
+
+		faux_send;
+		faux_send_block;
+		faux_sendv;
+		faux_sendv_block;
+		faux_recv;
+		faux_recv_block;
+		faux_recvv;
+		faux_recvv_block;
+		faux_net_new;
+		faux_net_free;
+		faux_net_set_fd;
+		faux_net_unset_fd;
+		faux_net_get_fd;
+		faux_net_set_send_timeout;
+		faux_net_set_recv_timeout;
+		faux_net_set_timeout;
+		faux_net_set_isbreak_func;
+		faux_net_sigmask_empty;
+		faux_net_sigmask_fill;
+		faux_net_sigmask_add;
+		faux_net_sigmask_del;
+		faux_net_send;
+		faux_net_sendv;
+		faux_net_recv;
+		faux_net_recvv;
+		faux_pollfd_new;
+		faux_pollfd_free;
+		faux_pollfd_vector;
+		faux_pollfd_len;
+		faux_pollfd_item;
+		faux_pollfd_find;
+		faux_pollfd_add;
+		faux_pollfd_del_by_fd;
+		faux_pollfd_del_by_index;
+		faux_pollfd_init_iterator;
+		faux_pollfd_each;
+		faux_pollfd_each_active;
+
+		faux_ev_new;
+		faux_ev_free;
+		faux_ev_is_busy;
+		faux_ev_set_free_data_cb;
+		faux_ev_set_time;
+		faux_ev_time;
+		faux_ev_set_periodic;
+		faux_ev_is_periodic;
+		faux_ev_time_left;
+		faux_ev_id;
+		faux_ev_data;
+		faux_sched_new;
+		faux_sched_free;
+		faux_sched_add;
+		faux_sched_once;
+		faux_sched_once_delayed;
+		faux_sched_periodic;
+		faux_sched_periodic_delayed;
+		faux_sched_next_interval;
+		faux_sched_del_all;
+		faux_sched_pop;
+		faux_sched_del;
+		faux_sched_del_by_id;
+		faux_sched_del_by_data;
+		faux_sched_get_by_id;
+		faux_sched_get_by_data;
+
+		faux_str_free;
+		faux_str_dupn;
+		faux_str_dup;
+		faux_str_catn;
+		faux_str_cat;
+		faux_str_mcat;
+		faux_str_vsprintf;
+		faux_str_sprintf;
+		faux_str_tolower;
+		faux_str_toupper;
+		faux_str_casecmpn;
+		faux_str_casecmp;
+		faux_str_casestr;
+		faux_str_charsn;
+		faux_str_chars;
+		faux_str_is_empty;
+		faux_str_c_esc;
+		faux_str_c_bin;
+		faux_str_nextword;
+		faux_str_suffix;
+		faux_str_decode;
+		faux_str_ndecode;
+		faux_str_encode;
+		faux_str_equal_part;
+
+		faux_sysdb_getpwnam;
+		faux_sysdb_getpwuid;
+		faux_sysdb_uid_by_name;
+		faux_sysdb_name_by_uid;
+		faux_sysdb_getgrnam;
+		faux_sysdb_getgrgid;
+		faux_sysdb_gid_by_name;
+		faux_sysdb_name_by_gid;
+
+		faux_testc_file_deploy;
+		faux_testc_file_deploy_str;
+		faux_testc_tmpfile_deploy;
+		faux_testc_tmpfile_deploy_str;
+		faux_testc_file_cmp;
+
+		faux_timespec_cmp;
+		faux_timespec_diff;
+		faux_timespec_sum;
+		faux_timespec_now;
+		faux_timespec_now_monotonic;
+		faux_timespec_before_now;
+		faux_timespec_to_nsec;
+		faux_nsec_to_timespec;
+
+		faux_vec_new;
+		faux_vec_free;
+		faux_vec_len;
+		faux_vec_item_size;
+		faux_vec_item;
+		faux_vec_data;
+		faux_vec_add;
+		faux_vec_del;
+		faux_vec_find_fn;
+		faux_vec_find;
+
+	local: *;
+};