From 0ba4b04078b2304c80765ec9f47b0dee5f89590c Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Mon, 4 Oct 2021 08:04:11 +0200 Subject: [PATCH] Added empty wrapped libnsl.so.1 --- CMakeLists.txt | 1 + src/library_list.h | 1 + src/wrapped/generated/functions_list.txt | 1 + src/wrapped/generated/wrappednsldefs.h | 8 ++ src/wrapped/generated/wrappednsltypes.h | 17 +++ src/wrapped/generated/wrappednslundefs.h | 8 ++ src/wrapped/wrappednsl.c | 18 ++++ src/wrapped/wrappednsl_private.h | 132 +++++++++++++++++++++++ 8 files changed, 186 insertions(+) create mode 100644 src/wrapped/generated/wrappednsldefs.h create mode 100644 src/wrapped/generated/wrappednsltypes.h create mode 100644 src/wrapped/generated/wrappednslundefs.h create mode 100755 src/wrapped/wrappednsl.c create mode 100755 src/wrapped/wrappednsl_private.h diff --git a/CMakeLists.txt b/CMakeLists.txt index 7f571a4e0..87fbecdea 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -292,6 +292,7 @@ set(WRAPPEDS "${BOX64_ROOT}/src/wrapped/wrappedlibz.c" "${BOX64_ROOT}/src/wrapped/wrappedlzma.c" "${BOX64_ROOT}/src/wrapped/wrappedmpg123.c" + "${BOX64_ROOT}/src/wrapped/wrappednsl.c" "${BOX64_ROOT}/src/wrapped/wrappednspr4.c" "${BOX64_ROOT}/src/wrapped/wrappednss3.c" "${BOX64_ROOT}/src/wrapped/wrappednssutil3.c" diff --git a/src/library_list.h b/src/library_list.h index 72cd16de0..bc3d910c5 100755 --- a/src/library_list.h +++ b/src/library_list.h @@ -170,6 +170,7 @@ GO("libnspr4.so", nspr4) GO("libplds4.so", plds4) GO("libplc4.so", plc4) GO("libssl3.so", ssl3) +GO("libnsl.so.1", nsl) GO("libselinux.so.1", selinux) GO("libsecret-1.so.0", secret1) diff --git a/src/wrapped/generated/functions_list.txt b/src/wrapped/generated/functions_list.txt index 49755fd6f..19168bd13 100644 --- a/src/wrapped/generated/functions_list.txt +++ b/src/wrapped/generated/functions_list.txt @@ -2936,6 +2936,7 @@ wrappedmpg123: - mpg123_replace_reader_handle - mpg123_replace_reader_handle_32 - mpg123_replace_reader_handle_64 +wrappednsl: wrappednspr4: wrappednss3: - vFp: diff --git a/src/wrapped/generated/wrappednsldefs.h b/src/wrapped/generated/wrappednsldefs.h new file mode 100644 index 000000000..b0254339a --- /dev/null +++ b/src/wrapped/generated/wrappednsldefs.h @@ -0,0 +1,8 @@ +/******************************************************************* + * File automatically generated by rebuild_wrappers.py (v2.1.0.16) * + *******************************************************************/ +#ifndef __wrappednslDEFS_H_ +#define __wrappednslDEFS_H_ + + +#endif // __wrappednslDEFS_H_ diff --git a/src/wrapped/generated/wrappednsltypes.h b/src/wrapped/generated/wrappednsltypes.h new file mode 100644 index 000000000..3a2726608 --- /dev/null +++ b/src/wrapped/generated/wrappednsltypes.h @@ -0,0 +1,17 @@ +/******************************************************************* + * File automatically generated by rebuild_wrappers.py (v2.1.0.16) * + *******************************************************************/ +#ifndef __wrappednslTYPES_H_ +#define __wrappednslTYPES_H_ + +#ifndef LIBNAME +#error You should only #include this file inside a wrapped*.c file +#endif +#ifndef ADDED_FUNCTIONS +#define ADDED_FUNCTIONS() +#endif + + +#define SUPER() ADDED_FUNCTIONS() + +#endif // __wrappednslTYPES_H_ diff --git a/src/wrapped/generated/wrappednslundefs.h b/src/wrapped/generated/wrappednslundefs.h new file mode 100644 index 000000000..23ae96998 --- /dev/null +++ b/src/wrapped/generated/wrappednslundefs.h @@ -0,0 +1,8 @@ +/******************************************************************* + * File automatically generated by rebuild_wrappers.py (v2.1.0.16) * + *******************************************************************/ +#ifndef __wrappednslUNDEFS_H_ +#define __wrappednslUNDEFS_H_ + + +#endif // __wrappednslUNDEFS_H_ diff --git a/src/wrapped/wrappednsl.c b/src/wrapped/wrappednsl.c new file mode 100755 index 000000000..fd2c28770 --- /dev/null +++ b/src/wrapped/wrappednsl.c @@ -0,0 +1,18 @@ +#include +#include +#include +#define _GNU_SOURCE /* See feature_test_macros(7) */ +#include + +#include "wrappedlibs.h" + +#include "wrapper.h" +#include "bridge.h" +#include "librarian/library_private.h" +#include "x64emu.h" + +const char* nslName = "libnsl.so.1"; +#define LIBNAME nsl + +#include "wrappedlib_init.h" + diff --git a/src/wrapped/wrappednsl_private.h b/src/wrapped/wrappednsl_private.h new file mode 100755 index 000000000..f0c538bc7 --- /dev/null +++ b/src/wrapped/wrappednsl_private.h @@ -0,0 +1,132 @@ +#if !(defined(GO) && defined(GOM) && defined(GO2) && defined(DATA)) +#error Meh.... +#endif + +//GO(__create_ib_request, +//GO(__do_niscall3, +//GO(__follow_path, +//GO(__free_fdresult, +//GO(nis_add, +//GO(nis_add_entry, +//GO(nis_addmember, +//GO(__nisbind_connect, +//GO(__nisbind_create, +//GO(__nisbind_destroy, +//GO(__nisbind_next, +//GO(nis_checkpoint, +//GO(nis_clone_directory, +//GO(nis_clone_object, +//GO(nis_clone_result, +//GO(nis_creategroup, +//GO(__nis_default_access, +//GO(__nis_default_group, +//GO(__nis_default_owner, +//GO(__nis_default_ttl, +//GO(nis_destroygroup, +//GO(nis_destroy_object, +//GO(nis_dir_cmp, +//GO(nis_domain_of, +//GO(nis_domain_of_r, +//GO(__nis_finddirectory, +//GO(nis_first_entry, +//GO(nis_free_directory, +//GO(nis_freenames, +//GO(nis_free_object, +//GO(nis_free_request, +//GO(nis_freeresult, +//GO(nis_freeservlist, +//GO(nis_freetags, +//GO(nis_getnames, +//GO(nis_getservlist, +//GO(__nis_hash, +//GO(nis_ismember, +//GO(nis_leaf_of, +//GO(nis_leaf_of_r, +//GO(nis_lerror, +//GO(nis_list, +//GO(nis_local_directory, +//GO(nis_local_group, +//GO(nis_local_host, +//GO(nis_local_principal, +//GO(nis_lookup, +//GO(nis_mkdir, +//GO(nis_modify, +//GO(nis_modify_entry, +//GO(nis_name_of, +//GO(nis_name_of_r, +//GO(nis_next_entry, +//GO(nis_perror, +//GO(nis_ping, +//GO(nis_print_directory, +//GO(nis_print_entry, +//GO(nis_print_group, +//GO(nis_print_group_entry, +//GO(nis_print_link, +//GO(nis_print_object, +//GO(nis_print_result, +//GO(nis_print_rights, +//GO(nis_print_table, +//GO(nis_read_obj, +//GO(nis_remove, +//GO(nis_remove_entry, +//GO(nis_removemember, +//GO(nis_rmdir, +//GO(nis_servstate, +//GO(nis_sperrno, +//GO(nis_sperror, +//GO(nis_sperror_r, +//GO(nis_stats, +//GO(nis_verifygroup, +//GO(nis_write_obj, +//GO(_nsl_default_nss, +//GO(__prepare_niscall, +//GO(readColdStartFile, +//GO(writeColdStartFile, +//GO(xdr_cback_data, +//GO(xdr_domainname, +//GO(_xdr_ib_request, +//GO(xdr_keydat, +//GO(xdr_mapname, +//GO(_xdr_nis_result, +//GO(xdr_obj_p, +//GO(xdr_peername, +//GO(xdr_valdat, +//GO(xdr_ypall, +//GO(xdr_ypbind_binding, +//GO(xdr_ypbind_resp, +//GO(xdr_ypbind_resptype, +//GO(xdr_ypbind_setdom, +//GO(xdr_yp_buf, +//GO(xdr_ypdelete_args, +//GO(xdr_ypmaplist, +//GO(xdr_ypmap_parms, +//GO(xdr_yppushresp_xfr, +//GO(xdr_yppush_status, +//GO(xdr_ypreq_key, +//GO(xdr_ypreq_nokey, +//GO(xdr_ypreq_xfr, +//GO(xdr_ypresp_all, +//GO(xdr_ypresp_key_val, +//GO(xdr_ypresp_maplist, +//GO(xdr_ypresp_master, +//GO(xdr_ypresp_order, +//GO(xdr_ypresp_val, +//GO(xdr_ypresp_xfr, +//GO(xdr_ypstat, +//GO(xdr_ypupdate_args, +//GO(xdr_ypxfrstat, +//GO(yp_all, +//GO(yp_bind, +//GO(ypbinderr_string, +//GO(__yp_check, +//GO(yperr_string, +//GO(yp_first, +//GO(yp_get_default_domain, +//GO(yp_maplist, +//GO(yp_master, +//GO(yp_match, +//GO(yp_next, +//GO(yp_order, +//GO(ypprot_err, +//GO(yp_unbind, +//GO(yp_update, \ No newline at end of file