diff options
author | Bradley Nicholes <bnicholes@apache.org> | 2002-01-08 21:39:42 +0000 |
---|---|---|
committer | Bradley Nicholes <bnicholes@apache.org> | 2002-01-08 21:39:42 +0000 |
commit | fa0a0a1633753349677ff22895c47828db49a11e (patch) | |
tree | 1932d1a4ff202fa0c1fd3b21f82d87e700297437 /build | |
parent | fa91e246813cf85a912417d9f6387042de6b5ac7 (diff) | |
download | apr-fa0a0a1633753349677ff22895c47828db49a11e.tar.gz |
Fixed the export list generation for NetWare to make sure that only real APIs
are being exported
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62724 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build')
-rw-r--r-- | build/make_nw_export.awk | 62 | ||||
-rw-r--r-- | build/nw_export.inc | 68 | ||||
-rwxr-xr-x | build/prebuildNW.bat | 23 |
3 files changed, 92 insertions, 61 deletions
diff --git a/build/make_nw_export.awk b/build/make_nw_export.awk index 922489bf5..1e270de2a 100644 --- a/build/make_nw_export.awk +++ b/build/make_nw_export.awk @@ -2,71 +2,15 @@ # based on Ryan Bloom's make_export.pl # List of functions that we don't support, yet?? -/apr_##name##_set_inherit/{next} -/apr_##name##_unset_inherit/{next} -/apr_compare_groups/{next} -/apr_compare_users/{next} -/apr_find_pool/{next} -/apr_generate_random_bytes/{next} -/apr_lock_create_np/{next} -/apr_md5_set_xlate/{next} -/apr_mmap_create/{next} -/apr_mmap_delete/{next} -/apr_mmap_dup/{next} -/apr_mmap_offset/{next} -/apr_pool_create\(/{next} -/apr_pool_free_blocks_num_bytes/{next} -/apr_pool_join/{next} -/apr_pool_lock/{next} -/apr_pool_num_bytes/{next} -/apr_pool_sub_make/{next} -/apr_proc_mutex_child_init/{next} -/apr_proc_mutex_create/{next} -/apr_proc_mutex_create_np/{next} -/apr_proc_mutex_destroy/{next} -/apr_proc_mutex_lock/{next} -/apr_proc_mutex_trylock/{next} -/apr_proc_mutex_unlock/{next} -/apr_proc_other_child_check/{next} -/apr_proc_other_child_read/{next} -/apr_proc_other_child_register/{next} -/apr_proc_other_child_unregister/{next} -/apr_sendfile/{next} -/apr_shm_avail/{next} -/apr_shm_calloc/{next} -/apr_shm_destroy/{next} -/apr_shm_free/{next} -/apr_shm_init/{next} -/apr_shm_malloc/{next} -/apr_shm_name_get/{next} -/apr_shm_name_set/{next} -/apr_shm_open/{next} -/apr_signal/{next} -/apr_signal_thread/{next} -/apr_socket_from_file/{next} -/apr_xlate_close/{next} -/apr_xlate_conv_buffer/{next} -/apr_xlate_conv_byte/{next} -/apr_xlate_conv_char/{next} -/apr_xlate_get_sb/{next} -/apr_xlate_open/{next} -/apr_brigade_consume/{next} -/apr_bucket_mmap_create/{next} -/apr_bucket_mmap_make/{next} -/apr_bucket_type_mmap/{next} -/apr_md4_set_xlate/{next} -/apr_os_proc_mutex_get/{next} -/apr_os_proc_mutex_put/{next} -/proc_mutex/{next} +#/apr_##name##_set_inherit/{next} +#/apr_##name##_unset_inherit/{next} function add_symbol (sym_name) { if (count) { found++ } -# for (i = 0; i < count; i++) { -# line = line "\t" -# } + gsub (/ /, "", sym_name) line = line sym_name ",\n" if (count == 0) { diff --git a/build/nw_export.inc b/build/nw_export.inc new file mode 100644 index 000000000..6a446ac4f --- /dev/null +++ b/build/nw_export.inc @@ -0,0 +1,68 @@ +/* Must include apr.h first so that we can undefine + the standard prototypes macros after it messes with + them. */ +#include "apr.h" + +#undef APR_DECLARE +#undef APR_DECLARE_NONSTD +#undef APR_DECLARE_HOOK +#undef APR_POOL_DECLARE_ACCESSOR +#undef APR_DECLARE_DATA + +/* Preprocess all of the standard APR headers. */ +#include "apr_compat.h" +#include "apr_dso.h" +#include "apr_errno.h" +#include "apr_file_info.h" +#include "apr_fnmatch.h" +#include "apr_general.h" +#include "apr_getopt.h" +#include "apr_hash.h" +#include "apr_inherit.h" +#include "apr_lib.h" +#include "apr_lock.h" +#include "apr_md5.h" +#include "apr_mmap.h" +#include "apr_network_io.h" +#include "apr_pools.h" +#include "apr_portable.h" +#include "apr_proc_mutex.h" +#include "apr_ring.h" +/*#include "apr_shmem.h"*/ +#include "apr_signal.h" +#include "apr_strings.h" +#include "apr_tables.h" +#include "apr_thread_cond.h" +#include "apr_thread_mutex.h" +#include "apr_thread_proc.h" +#include "apr_thread_rwlock.h" +#include "apr_time.h" +#include "apr_user.h" +#include "apr_uuid.h" +#include "apr_version.h" +#include "apr_want.h" +#include "apr_xlate.h" + +/* Must include apu.h first so that we can undefine + the standard prototypes macros after it messes with + them. */ +#include "apu.h" + +#undef APU_DECLARE +#undef APU_DECLARE_NONSTD +#undef APU_DECLARE_DATA + +/* Preprocess all of the standard APR headers. */ +#include "apr_base64.h" +#include "apr_buckets.h" +#include "apr_date.h" +#include "apr_dbm.h" +#include "apr_hooks.h" +#include "apr_md4.h" +#include "apr_optional.h" +#include "apr_optional_hooks.h" +#include "apr_sdbm.h" +#include "apr_sha1.h" +#include "apr_uri.h" +#include "apr_xml.h" +#include "apr_compat.h" diff --git a/build/prebuildNW.bat b/build/prebuildNW.bat index 39297a35a..e45047bd2 100755 --- a/build/prebuildNW.bat +++ b/build/prebuildNW.bat @@ -1,4 +1,19 @@ @echo off + +if not "%NovellNDK%" == "" goto CheckNDK +set NovellNDK=\novell\ndk\libc +@echo Could not find the NovellNDK environment variable +@echo Setting NovellNDK = %NovellNDK% +@echo --------------------- + +:CheckNDK +if exist %NovellNDK%\include\netware.h goto NDKOK +@echo The path to the NDK "%NovellNDK%" is invalid. +@echo Please set then NovellNDK environment variable to the location of the NDK +@echo --------------------- +goto Done + +:NDKOK @echo # As part of the pre-build process, the utility GenURI.NLM @echo # (Gen URI Delims) must be built, copied to a NetWare server @echo # and run using the following command: @@ -23,5 +38,9 @@ copy ..\..\pcre\config.hw ..\..\pcre\config.h copy ..\..\pcre\pcre.hw ..\..\pcre\pcre.h @echo Generating the import list... -awk -f make_nw_export.awk ..\include\*.h |sort > ..\aprlib.imp -awk -f make_nw_export.awk ..\..\apr-util\include\*.h |sort >> ..\aprlib.imp +set MWCIncludes=..\include;..\include\arch\netware;..\include\arch\unix;..\..\apr-util\include;+%NovellNDK% +mwccnlm -P nw_export.inc -d NETWARE -EP +awk -f make_nw_export.awk nw_export.i |sort >..\aprlib.imp + +:Done +pause |