- From bcec904653be0222be13a25f442bbc846fbd5dc7 Mon Sep 17 00:00:00 2001
- From: Roland Mainz <roland.mainz@nrubsig.org>
- Date: Wed, 3 Sep 2025 11:23:44 +0200
- Subject: [PATCH 1/5] build.vc19,sys: Replace
- |__security_push_cookie()|+|__security_pop_cookie()| hack with libcntpr.lib
- Replace |__security_push_cookie()|+|__security_pop_cookie()| hack with
- libcntpr.lib.
- Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
- ---
- build.vc19/nfs41_driver/nfs41_driver.vcxproj | 12 ++++++------
- sys/copysup.c | 13 -------------
- 2 files changed, 6 insertions(+), 19 deletions(-)
- diff --git a/build.vc19/nfs41_driver/nfs41_driver.vcxproj b/build.vc19/nfs41_driver/nfs41_driver.vcxproj
- index cc365c5..0a461e5 100644
- --- a/build.vc19/nfs41_driver/nfs41_driver.vcxproj
- +++ b/build.vc19/nfs41_driver/nfs41_driver.vcxproj
- @@ -118,7 +118,7 @@
- <WholeProgramOptimization>false</WholeProgramOptimization>
- </ClCompile>
- <Link>
- - <AdditionalDependencies>$(DDK_LIB_PATH)\ntoskrnl.lib;$(DDK_LIB_PATH)\hal.lib;$(DDK_LIB_PATH)\BufferOverflowfastfailK.lib;$(DDK_LIB_PATH)\ksecdd.lib;$(DDK_LIB_PATH)\rxce.lib;$(DDK_LIB_PATH)\rdbsslib.lib</AdditionalDependencies>
- + <AdditionalDependencies>$(DDK_LIB_PATH)\ntoskrnl.lib;$(DDK_LIB_PATH)\hal.lib;$(DDK_LIB_PATH)\BufferOverflowfastfailK.lib;$(DDK_LIB_PATH)\ksecdd.lib;$(DDK_LIB_PATH)\rxce.lib;$(DDK_LIB_PATH)\rdbsslib.lib;$(DDK_LIB_PATH)\libcntpr.lib</AdditionalDependencies>
- </Link>
- </ItemDefinitionGroup>
- <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">
- @@ -134,7 +134,7 @@
- <WholeProgramOptimization>true</WholeProgramOptimization>
- </ClCompile>
- <Link>
- - <AdditionalDependencies>$(DDK_LIB_PATH)\ntoskrnl.lib;$(DDK_LIB_PATH)\hal.lib;$(DDK_LIB_PATH)\BufferOverflowfastfailK.lib;$(DDK_LIB_PATH)\ksecdd.lib;$(DDK_LIB_PATH)\rxce.lib;$(DDK_LIB_PATH)\rdbsslib.lib</AdditionalDependencies>
- + <AdditionalDependencies>$(DDK_LIB_PATH)\ntoskrnl.lib;$(DDK_LIB_PATH)\hal.lib;$(DDK_LIB_PATH)\BufferOverflowfastfailK.lib;$(DDK_LIB_PATH)\ksecdd.lib;$(DDK_LIB_PATH)\rxce.lib;$(DDK_LIB_PATH)\rdbsslib.lib;$(DDK_LIB_PATH)\libcntpr.lib</AdditionalDependencies>
- <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
- </Link>
- </ItemDefinitionGroup>
- @@ -151,7 +151,7 @@
- <WholeProgramOptimization>false</WholeProgramOptimization>
- </ClCompile>
- <Link>
- - <AdditionalDependencies>$(DDK_LIB_PATH)\ntoskrnl.lib;$(DDK_LIB_PATH)\hal.lib;$(DDK_LIB_PATH)\BufferOverflowfastfailK.lib;$(DDK_LIB_PATH)\ksecdd.lib;$(DDK_LIB_PATH)\rxce.lib;$(DDK_LIB_PATH)\rdbsslib.lib</AdditionalDependencies>
- + <AdditionalDependencies>$(DDK_LIB_PATH)\ntoskrnl.lib;$(DDK_LIB_PATH)\hal.lib;$(DDK_LIB_PATH)\BufferOverflowfastfailK.lib;$(DDK_LIB_PATH)\ksecdd.lib;$(DDK_LIB_PATH)\rxce.lib;$(DDK_LIB_PATH)\rdbsslib.lib;$(DDK_LIB_PATH)\libcntpr.lib</AdditionalDependencies>
- </Link>
- <DriverSign>
- <FileDigestAlgorithm>sha256</FileDigestAlgorithm>
- @@ -170,7 +170,7 @@
- <WholeProgramOptimization>true</WholeProgramOptimization>
- </ClCompile>
- <Link>
- - <AdditionalDependencies>$(DDK_LIB_PATH)\ntoskrnl.lib;$(DDK_LIB_PATH)\hal.lib;$(DDK_LIB_PATH)\BufferOverflowfastfailK.lib;$(DDK_LIB_PATH)\ksecdd.lib;$(DDK_LIB_PATH)\rxce.lib;$(DDK_LIB_PATH)\rdbsslib.lib</AdditionalDependencies>
- + <AdditionalDependencies>$(DDK_LIB_PATH)\ntoskrnl.lib;$(DDK_LIB_PATH)\hal.lib;$(DDK_LIB_PATH)\BufferOverflowfastfailK.lib;$(DDK_LIB_PATH)\ksecdd.lib;$(DDK_LIB_PATH)\rxce.lib;$(DDK_LIB_PATH)\rdbsslib.lib;$(DDK_LIB_PATH)\libcntpr.lib</AdditionalDependencies>
- <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
- </Link>
- <DriverSign>
- @@ -190,7 +190,7 @@
- <WholeProgramOptimization>false</WholeProgramOptimization>
- </ClCompile>
- <Link>
- - <AdditionalDependencies>$(DDK_LIB_PATH)\ntoskrnl.lib;$(DDK_LIB_PATH)\hal.lib;$(DDK_LIB_PATH)\BufferOverflowfastfailK.lib;$(DDK_LIB_PATH)\ksecdd.lib;$(DDK_LIB_PATH)\rxce.lib;$(DDK_LIB_PATH)\rdbsslib.lib</AdditionalDependencies>
- + <AdditionalDependencies>$(DDK_LIB_PATH)\ntoskrnl.lib;$(DDK_LIB_PATH)\hal.lib;$(DDK_LIB_PATH)\BufferOverflowfastfailK.lib;$(DDK_LIB_PATH)\ksecdd.lib;$(DDK_LIB_PATH)\rxce.lib;$(DDK_LIB_PATH)\rdbsslib.lib;$(DDK_LIB_PATH)\libcntpr.lib</AdditionalDependencies>
- </Link>
- <DriverSign>
- <FileDigestAlgorithm>sha256</FileDigestAlgorithm>
- @@ -209,7 +209,7 @@
- <WholeProgramOptimization>true</WholeProgramOptimization>
- </ClCompile>
- <Link>
- - <AdditionalDependencies>$(DDK_LIB_PATH)\ntoskrnl.lib;$(DDK_LIB_PATH)\hal.lib;$(DDK_LIB_PATH)\BufferOverflowfastfailK.lib;$(DDK_LIB_PATH)\ksecdd.lib;$(DDK_LIB_PATH)\rxce.lib;$(DDK_LIB_PATH)\rdbsslib.lib</AdditionalDependencies>
- + <AdditionalDependencies>$(DDK_LIB_PATH)\ntoskrnl.lib;$(DDK_LIB_PATH)\hal.lib;$(DDK_LIB_PATH)\BufferOverflowfastfailK.lib;$(DDK_LIB_PATH)\ksecdd.lib;$(DDK_LIB_PATH)\rxce.lib;$(DDK_LIB_PATH)\rdbsslib.lib;$(DDK_LIB_PATH)\libcntpr.lib</AdditionalDependencies>
- <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
- </Link>
- <DriverSign>
- diff --git a/sys/copysup.c b/sys/copysup.c
- index ece3984..f24683b 100644
- --- a/sys/copysup.c
- +++ b/sys/copysup.c
- @@ -597,16 +597,3 @@ done_exit_filesystem:
- done:
- return retval;
- }
- -
- -
- -#if defined(_ARM_) || defined(_ARM64_)
- -
- -void __security_push_cookie()
- -{
- -}
- -
- -void __security_pop_cookie()
- -{
- -}
- -
- -#endif /* defined(_ARM_) || defined(_ARM64_) */
- --
- 2.45.4
- From e5d9f14711e0940acdb3225d67a344bc3e3a608b Mon Sep 17 00:00:00 2001
- From: Roland Mainz <roland.mainz@nrubsig.org>
- Date: Wed, 3 Sep 2025 11:33:08 +0200
- Subject: [PATCH 2/5] cygwin: Add ARM64 release build to Makefile+cleanup
- Add ARM64 release build to Makefile+cleanup Makefile target names.
- Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
- ---
- cygwin/Makefile | 33 ++++++++++++++++++++-------------
- 1 file changed, 20 insertions(+), 13 deletions(-)
- diff --git a/cygwin/Makefile b/cygwin/Makefile
- index 13d0a03..de3ad27 100644
- --- a/cygwin/Makefile
- +++ b/cygwin/Makefile
- @@ -31,36 +31,41 @@ $(PROJECT_BASEDIR_DIR)/tests/ea/nfs_ea.exe \
- #
- # build the code
- #
- -build_64bit_release:
- +build_x86_64bit_release:
- @printf '#\n# PATH is %q\n#\n' '$(PATH)'
- which MSBuild.exe
- MSBuild.exe '$(shell cygpath -w "$(PROJECT_BASEDIR_DIR)/build.vc19/nfs41-client.sln")' -t:Build -p:Configuration=Release -p:Platform=x64 /p:CERTIFICATE_THUMBPRINT=$$CERTIFICATE_THUMBPRINT
- -build_64bit_debug:
- +build_x86_64bit_debug:
- @printf '#\n# PATH is %q\n#\n' '$(PATH)'
- which MSBuild.exe
- MSBuild.exe '$(shell cygpath -w "$(PROJECT_BASEDIR_DIR)/build.vc19/nfs41-client.sln")' -t:Build -p:Configuration=Debug -p:Platform=x64 /p:CERTIFICATE_THUMBPRINT=$$CERTIFICATE_THUMBPRINT
- -build_32bit_release:
- +build_x86_32bit_release:
- @printf '#\n# PATH is %q\n#\n' '$(PATH)'
- which MSBuild.exe
- MSBuild.exe '$(shell cygpath -w "$(PROJECT_BASEDIR_DIR)/build.vc19/nfs41-client.sln")' -t:Build -p:Configuration=Release -p:Platform=x86 /p:CERTIFICATE_THUMBPRINT=$$CERTIFICATE_THUMBPRINT
- -build_32bit_debug:
- +build_x86_32bit_debug:
- @printf '#\n# PATH is %q\n#\n' '$(PATH)'
- which MSBuild.exe
- MSBuild.exe '$(shell cygpath -w "$(PROJECT_BASEDIR_DIR)/build.vc19/nfs41-client.sln")' -t:Build -p:Configuration=Debug -p:Platform=x86 /p:CERTIFICATE_THUMBPRINT=$$CERTIFICATE_THUMBPRINT
- -build_32bit_release_clientutils:
- +build_x86_32bit_release_clientutils:
- @printf '#\n# PATH is %q\n#\n' '$(PATH)'
- which MSBuild.exe
- MSBuild.exe '$(shell cygpath -w "$(PROJECT_BASEDIR_DIR)/build.vc19/nfs41-client.sln")' -t:nfs41_np,nfs_mount -p:Configuration=Release -p:Platform=x86 /p:CERTIFICATE_THUMBPRINT=$$CERTIFICATE_THUMBPRINT
- -build_32bit_debug_clientutils:
- +build_x86_32bit_debug_clientutils:
- @printf '#\n# PATH is %q\n#\n' '$(PATH)'
- which MSBuild.exe
- MSBuild.exe '$(shell cygpath -w "$(PROJECT_BASEDIR_DIR)/build.vc19/nfs41-client.sln")' -t:nfs41_np,nfs_mount -p:Configuration=Debug -p:Platform=x86 /p:CERTIFICATE_THUMBPRINT=$$CERTIFICATE_THUMBPRINT
- +build_arm_64bit_release:
- + @printf '#\n# PATH is %q\n#\n' '$(PATH)'
- + which MSBuild.exe
- + MSBuild.exe '$(shell cygpath -w "$(PROJECT_BASEDIR_DIR)/build.vc19/nfs41-client.sln")' -t:Build -p:Configuration=Release -p:Platform=ARM64 /p:CERTIFICATE_THUMBPRINT=$$CERTIFICATE_THUMBPRINT
- +
- build_arm_64bit_debug:
- @printf '#\n# PATH is %q\n#\n' '$(PATH)'
- which MSBuild.exe
- @@ -76,14 +81,14 @@ build_testutils:
- (cd "$(PROJECT_BASEDIR_DIR)/tests/winrunassystem" && make all)
- (cd "$(PROJECT_BASEDIR_DIR)/tests/winsg" && make all)
- -build: build_32bit_release build_32bit_debug build_64bit_release build_64bit_debug build_arm_64bit_debug build_testutils
- +build: build_x86_32bit_release build_x86_32bit_debug build_x86_64bit_release build_x86_64bit_debug build_arm_64bit_release build_arm_64bit_debug build_testutils
- sync
- # 32bit kernel only build, for Windows <= 10/32bit
- # - BUG: ARM64 build not working yet
- build32: \
- - build_32bit_release \
- - build_32bit_debug \
- + build_x86_32bit_release \
- + build_x86_32bit_debug \
- build_testutils
- sync
- @@ -93,10 +98,12 @@ build32: \
- # - we need 32bit nfs41_np.dll to support 32bit applications on 64bit machines
- # - BUG: ARM64 build not working yet
- build64: \
- - build_32bit_release_clientutils \
- - build_32bit_debug_clientutils \
- - build_64bit_release \
- - build_64bit_debug \
- + build_x86_32bit_release_clientutils \
- + build_x86_32bit_debug_clientutils \
- + build_x86_64bit_release \
- + build_x86_64bit_debug \
- + build_arm_64bit_release \
- + build_arm_64bit_debug \
- build_testutils
- sync
- --
- 2.45.4
- From a69ec718c70cca337712067959625d053b440956 Mon Sep 17 00:00:00 2001
- From: Roland Mainz <roland.mainz@nrubsig.org>
- Date: Wed, 3 Sep 2025 13:29:45 +0200
- Subject: [PATCH 3/5] mount: nfs_mount -d 'N' should work (no ':' after drive
- letter)+umount UNC paths does not always work
- nfs_mount -d 'N' should work, without a ':' after the drive letter.
- This patch also fixes unmounting UNC paths, which didn't work in
- some cases.
- Reported-by: Lionel Cons <Lionelcons1972@gmail.com>
- Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
- ---
- mount/mount.c | 106 +++++++++++++++++++++++++++++++++++++++-----------
- 1 file changed, 84 insertions(+), 22 deletions(-)
- diff --git a/mount/mount.c b/mount/mount.c
- index 8afb199..e5b6df5 100644
- --- a/mount/mount.c
- +++ b/mount/mount.c
- @@ -217,6 +217,21 @@ void PrintUmountUsage(LPWSTR pProcess)
- }
- +static
- +bool isvaliduncpath(const wchar_t *path)
- +{
- + /*
- + * UNC path must start with \\ and have at least the syntax \\x\...
- + */
- +
- + if ((wcsncmp(path, L"\\\\", 2) == 0) &&
- + (wcslen(path) > (2+1+1)))
- + return true;
- + else
- + return false;
- +}
- +
- +
- static
- int mount_main(int argc, wchar_t *argv[])
- {
- @@ -430,12 +445,12 @@ opt_o_argv_i_again:
- result = ERROR_INVALID_COMMAND_LINE;
- goto out;
- }
- - /* drive letter */
- + /* drive letter (2nd last argument ) */
- else if ((!bUnmount) && (pLocalName == NULL) &&
- (i == (argc-2)) && (wcslen(argv[i]) <= 2)) {
- pLocalName = argv[i];
- }
- - /* remote path */
- + /* remote path (last argument) */
- else if ((pRemoteName == NULL) && (i == (argc-1))) {
- pRemoteName = argv[i];
- }
- @@ -448,31 +463,63 @@ opt_o_argv_i_again:
- }
- }
- - /* validate local drive letter */
- - if (pLocalName) {
- - if (!ParseDriveLetter(pLocalName, szLocalName)) {
- + if (bUnmount) {
- + /*
- + * unmount
- + */
- + pLocalName = pRemoteName;
- +
- + if (pLocalName == NULL) {
- result = ERROR_BAD_ARGUMENTS;
- - (void)fwprintf(stderr, L"Invalid drive letter '%ls'. "
- - L"Expected 'C' or 'C:'.\n",
- - pLocalName);
- - goto out_free;
- + (void)fwprintf(stderr, L"Drive letter or UNC path expected.\n");
- + goto out;
- + }
- +
- + if (wcslen(pLocalName) <= 2) {
- + if (!ParseDriveLetter(pLocalName, szLocalName)) {
- + result = ERROR_BAD_ARGUMENTS;
- + (void)fwprintf(stderr, L"Invalid drive letter '%ls'. "
- + L"Expected 'C' or 'C:'.\n",
- + pLocalName);
- + goto out;
- + }
- +
- + result = DoUnmount(szLocalName, bForceUnmount);
- + }
- + else if (isvaliduncpath(pLocalName)) {
- + result = DoUnmount(pLocalName, bForceUnmount);
- + }
- + else {
- + result = ERROR_BAD_ARGUMENTS;
- + (void)fwprintf(stderr,
- + L"Invalid Drive or UNC path '%ls'.\n", pLocalName);
- + goto out;
- }
- - }
- - if (bUnmount == TRUE) /* unmount */
- - {
- - result = DoUnmount(pLocalName?szLocalName:pRemoteName,
- - bForceUnmount);
- if (result)
- PrintErrorMessage(result);
- }
- - else /* mount */
- - {
- + else {
- + /*
- + * mount
- + */
- +
- wchar_t szRemoteName[NFS41_SYS_MAX_PATH_LEN];
- wchar_t szParsedRemoteName[NFS41_SYS_MAX_PATH_LEN];
- *szRemoteName = L'\0';
- + /* validate local drive letter */
- + if (pLocalName) {
- + if (!ParseDriveLetter(pLocalName, szLocalName)) {
- + result = ERROR_BAD_ARGUMENTS;
- + (void)fwprintf(stderr, L"Invalid drive letter '%ls'. "
- + L"Expected 'C' or 'C:'.\n",
- + pLocalName);
- + goto out_free;
- + }
- + }
- +
- if (pRemoteName == NULL)
- {
- result = ERROR_BAD_NET_NAME;
- @@ -574,19 +621,34 @@ int umount_main(int argc, wchar_t *argv[])
- if (pLocalName == NULL) {
- result = ERROR_BAD_ARGUMENTS;
- - (void)fwprintf(stderr, L"Drive letter expected.\n");
- + (void)fwprintf(stderr, L"Drive letter or UNC path expected.\n");
- goto out;
- }
- - if (!ParseDriveLetter(pLocalName, szLocalName)) {
- + if (wcslen(pLocalName) <= 2) {
- + if (!ParseDriveLetter(pLocalName, szLocalName)) {
- + result = ERROR_BAD_ARGUMENTS;
- + (void)fwprintf(stderr, L"Invalid drive letter '%ls'. "
- + L"Expected 'C' or 'C:'.\n",
- + pLocalName);
- + goto out;
- + }
- +
- + result = DoUnmount(szLocalName, bForceUnmount);
- + }
- + /*
- + * UNC path must start with \\ and have at least the syntax \\x\...
- + */
- + else if (isvaliduncpath(pLocalName)) {
- + result = DoUnmount(pLocalName, bForceUnmount);
- + }
- + else {
- result = ERROR_BAD_ARGUMENTS;
- - (void)fwprintf(stderr, L"Invalid drive letter '%ls'. "
- - L"Expected 'C' or 'C:'.\n",
- - pLocalName);
- + (void)fwprintf(stderr,
- + L"Invalid Drive or UNC path '%ls'.\n", pLocalName);
- goto out;
- }
- - result = DoUnmount(szLocalName, bForceUnmount);
- if (result)
- PrintErrorMessage(result);
- out:
- --
- 2.45.4
- From a853268800e95b2b9c35a3ee4ce37b9d95de9da3 Mon Sep 17 00:00:00 2001
- From: Roland Mainz <roland.mainz@nrubsig.org>
- Date: Wed, 3 Sep 2025 14:57:19 +0200
- Subject: [PATCH 4/5] build.vc19,libtirpc: Use |_WINTIRPC| instead of |_WIN32|
- for project #if/#else to avoid collision with Cygwin/MSYS2 libtirpc
- Use |_WINTIRPC| instead of |_WIN32| for project #if/#else to avoid
- collision with Cygwin/MSYS2 libtirpc.
- Reported-by: Cedric Blancher <cedric.blancher@gmail.com>
- Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
- ---
- build.vc19/libtirpc/libtirpc.vcxproj | 12 ++++----
- build.vc19/nfsd/nfsd.vcxproj | 12 ++++----
- libtirpc/src/asprintf.c | 4 +--
- libtirpc/src/auth_des.c | 24 +++++++--------
- libtirpc/src/auth_gss.c | 4 +--
- libtirpc/src/auth_none.c | 4 +--
- libtirpc/src/auth_sspi.c | 4 +--
- libtirpc/src/auth_time.c | 26 ++++++++--------
- libtirpc/src/auth_unix.c | 20 ++++++-------
- libtirpc/src/authdes_prot.c | 4 +--
- libtirpc/src/authsspi_prot.c | 4 +--
- libtirpc/src/authunix_prot.c | 4 +--
- libtirpc/src/bindresvport.c | 18 ++++++------
- libtirpc/src/clnt_bcast.c | 30 +++++++++----------
- libtirpc/src/clnt_dg.c | 38 ++++++++++++------------
- libtirpc/src/clnt_generic.c | 22 +++++++-------
- libtirpc/src/clnt_raw.c | 8 ++---
- libtirpc/src/clnt_simple.c | 16 +++++-----
- libtirpc/src/clnt_vc.c | 44 ++++++++++++++--------------
- libtirpc/src/crypt_client.c | 8 ++---
- libtirpc/src/des_crypt.c | 4 +--
- libtirpc/src/des_soft.c | 4 +--
- libtirpc/src/epoll_sub.c | 2 +-
- libtirpc/src/getnetconfig.c | 12 ++++----
- libtirpc/src/getnetpath.c | 12 ++++----
- libtirpc/src/getpeereid.c | 14 ++++-----
- libtirpc/src/getpublickey.c | 8 ++---
- libtirpc/src/getrpcent.c | 8 ++---
- libtirpc/src/getrpcport.c | 8 ++---
- libtirpc/src/key_call.c | 6 ++--
- libtirpc/src/key_prot_xdr.c | 4 +--
- libtirpc/src/mt_misc.c | 10 +++----
- libtirpc/src/netname.c | 12 ++++----
- libtirpc/src/netnamer.c | 4 +--
- libtirpc/src/pmap_clnt.c | 12 ++++----
- libtirpc/src/pmap_getmaps.c | 20 ++++++-------
- libtirpc/src/pmap_getport.c | 12 ++++----
- libtirpc/src/pmap_rmt.c | 16 +++++-----
- libtirpc/src/rpc_callmsg.c | 4 +--
- libtirpc/src/rpc_com.h | 6 ++--
- libtirpc/src/rpc_dtablesize.c | 6 ++--
- libtirpc/src/rpc_generic.c | 28 +++++++++---------
- libtirpc/src/rpc_prot.c | 4 +--
- libtirpc/src/rpc_soc.c | 22 +++++++-------
- libtirpc/src/rpcb_clnt.c | 18 ++++++------
- libtirpc/src/rpcb_st_xdr.c | 4 +--
- libtirpc/src/rpcdname.c | 12 ++++----
- libtirpc/src/rtime.c | 16 +++++-----
- libtirpc/src/svc.c | 14 ++++-----
- libtirpc/src/svc_auth.c | 4 +--
- libtirpc/src/svc_auth_des.c | 12 ++++----
- libtirpc/src/svc_auth_unix.c | 4 +--
- libtirpc/src/svc_dg.c | 20 ++++++-------
- libtirpc/src/svc_generic.c | 12 ++++----
- libtirpc/src/svc_raw.c | 4 +--
- libtirpc/src/svc_run.c | 16 +++++-----
- libtirpc/src/svc_simple.c | 12 ++++----
- libtirpc/src/svc_vc.c | 40 ++++++++++++-------------
- libtirpc/src/xdr.c | 12 ++++----
- libtirpc/src/xdr_array.c | 8 ++---
- libtirpc/src/xdr_float.c | 8 ++---
- libtirpc/src/xdr_mem.c | 8 ++---
- libtirpc/src/xdr_rec.c | 16 +++++-----
- libtirpc/src/xdr_reference.c | 8 ++---
- libtirpc/src/xdr_sizeof.c | 4 +--
- libtirpc/src/xdr_stdio.c | 8 ++---
- libtirpc/tirpc/misc/event.h | 4 +--
- libtirpc/tirpc/netconfig.h | 4 +--
- libtirpc/tirpc/reentrant.h | 4 +--
- libtirpc/tirpc/rpc/auth.h | 4 +--
- libtirpc/tirpc/rpc/auth_des.h | 2 +-
- libtirpc/tirpc/rpc/auth_sspi.h | 4 ++-
- libtirpc/tirpc/rpc/auth_unix.h | 4 +--
- libtirpc/tirpc/rpc/clnt.h | 8 ++---
- libtirpc/tirpc/rpc/clnt_soc.h | 4 +--
- libtirpc/tirpc/rpc/des_crypt.h | 4 +--
- libtirpc/tirpc/rpc/pmap_clnt.h | 4 +--
- libtirpc/tirpc/rpc/pmap_prot.h | 4 +--
- libtirpc/tirpc/rpc/pmap_rmt.h | 4 +--
- libtirpc/tirpc/rpc/rpc.h | 4 +--
- libtirpc/tirpc/rpc/rpc_com.h | 6 ++--
- libtirpc/tirpc/rpc/svc.h | 4 +--
- libtirpc/tirpc/rpc/svc_soc.h | 4 +--
- libtirpc/tirpc/rpc/types.h | 12 ++++----
- libtirpc/tirpc/rpc/xdr.h | 8 ++---
- libtirpc/tirpc/spinlock.h | 4 +--
- libtirpc/tirpc/wintirpc.h | 7 ++++-
- 87 files changed, 457 insertions(+), 450 deletions(-)
- diff --git a/build.vc19/libtirpc/libtirpc.vcxproj b/build.vc19/libtirpc/libtirpc.vcxproj
- index 44d1364..815629f 100644
- --- a/build.vc19/libtirpc/libtirpc.vcxproj
- +++ b/build.vc19/libtirpc/libtirpc.vcxproj
- @@ -126,7 +126,7 @@
- </PrecompiledHeader>
- <WarningLevel>Level4</WarningLevel>
- <Optimization>Disabled</Optimization>
- - <PreprocessorDefinitions>FD_SETSIZE=1024;INET6;NO_CB_4_KRB5P;PORTMAP;_WINSOCK_DEPRECATED_NO_WARNINGS;WIN32;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;UNICODE;_UNICODE;_DEBUG;_WINDOWS;_USRDLL;LIBTIRPC_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- + <PreprocessorDefinitions>FD_SETSIZE=1024;INET6;NO_CB_4_KRB5P;PORTMAP;_WINSOCK_DEPRECATED_NO_WARNINGS;WIN32;_WINTIRPC;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;UNICODE;_UNICODE;_DEBUG;_WINDOWS;_USRDLL;LIBTIRPC_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..\libtirpc\tirpc;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <LanguageStandard_C>stdc17</LanguageStandard_C>
- <StringPooling>true</StringPooling>
- @@ -152,7 +152,7 @@
- </PrecompiledHeader>
- <WarningLevel>Level4</WarningLevel>
- <Optimization>Disabled</Optimization>
- - <PreprocessorDefinitions>FD_SETSIZE=1024;INET6;NO_CB_4_KRB5P;PORTMAP;_WINSOCK_DEPRECATED_NO_WARNINGS;WIN32;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;UNICODE;_UNICODE;_DEBUG;_WINDOWS;_USRDLL;LIBTIRPC_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- + <PreprocessorDefinitions>FD_SETSIZE=1024;INET6;NO_CB_4_KRB5P;PORTMAP;_WINSOCK_DEPRECATED_NO_WARNINGS;WIN32;_WINTIRPC;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;UNICODE;_UNICODE;_DEBUG;_WINDOWS;_USRDLL;LIBTIRPC_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..\libtirpc\tirpc;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <LanguageStandard_C>stdc17</LanguageStandard_C>
- <StringPooling>true</StringPooling>
- @@ -178,7 +178,7 @@
- </PrecompiledHeader>
- <WarningLevel>Level4</WarningLevel>
- <Optimization>Disabled</Optimization>
- - <PreprocessorDefinitions>FD_SETSIZE=1024;INET6;NO_CB_4_KRB5P;PORTMAP;_WINSOCK_DEPRECATED_NO_WARNINGS;WIN32;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;UNICODE;_UNICODE;_DEBUG;_WINDOWS;_USRDLL;LIBTIRPC_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- + <PreprocessorDefinitions>FD_SETSIZE=1024;INET6;NO_CB_4_KRB5P;PORTMAP;_WINSOCK_DEPRECATED_NO_WARNINGS;WIN32;_WINTIRPC;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;UNICODE;_UNICODE;_DEBUG;_WINDOWS;_USRDLL;LIBTIRPC_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..\libtirpc\tirpc;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <LanguageStandard_C>stdc17</LanguageStandard_C>
- <StringPooling>true</StringPooling>
- @@ -204,7 +204,7 @@
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- - <PreprocessorDefinitions>FD_SETSIZE=1024;INET6;NO_CB_4_KRB5P;PORTMAP;_WINSOCK_DEPRECATED_NO_WARNINGS;WIN32;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;UNICODE;_UNICODE;NDEBUG;_WINDOWS;_USRDLL;LIBTIRPC_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- + <PreprocessorDefinitions>FD_SETSIZE=1024;INET6;NO_CB_4_KRB5P;PORTMAP;_WINSOCK_DEPRECATED_NO_WARNINGS;WIN32;_WINTIRPC;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;UNICODE;_UNICODE;NDEBUG;_WINDOWS;_USRDLL;LIBTIRPC_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..\libtirpc\tirpc;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <LanguageStandard_C>stdc17</LanguageStandard_C>
- <StringPooling>true</StringPooling>
- @@ -234,7 +234,7 @@
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- - <PreprocessorDefinitions>FD_SETSIZE=1024;INET6;NO_CB_4_KRB5P;PORTMAP;_WINSOCK_DEPRECATED_NO_WARNINGS;WIN32;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;UNICODE;_UNICODE;NDEBUG;_WINDOWS;_USRDLL;LIBTIRPC_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- + <PreprocessorDefinitions>FD_SETSIZE=1024;INET6;NO_CB_4_KRB5P;PORTMAP;_WINSOCK_DEPRECATED_NO_WARNINGS;WIN32;_WINTIRPC;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;UNICODE;_UNICODE;NDEBUG;_WINDOWS;_USRDLL;LIBTIRPC_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..\libtirpc\tirpc;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <LanguageStandard_C>stdc17</LanguageStandard_C>
- <StringPooling>true</StringPooling>
- @@ -264,7 +264,7 @@
- </PrecompiledHeader>
- <Optimization>MaxSpeed</Optimization>
- <IntrinsicFunctions>true</IntrinsicFunctions>
- - <PreprocessorDefinitions>FD_SETSIZE=1024;INET6;NO_CB_4_KRB5P;PORTMAP;_WINSOCK_DEPRECATED_NO_WARNINGS;WIN32;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;UNICODE;_UNICODE;NDEBUG;_WINDOWS;_USRDLL;LIBTIRPC_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- + <PreprocessorDefinitions>FD_SETSIZE=1024;INET6;NO_CB_4_KRB5P;PORTMAP;_WINSOCK_DEPRECATED_NO_WARNINGS;WIN32;_WINTIRPC;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;UNICODE;_UNICODE;NDEBUG;_WINDOWS;_USRDLL;LIBTIRPC_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..\libtirpc\tirpc;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <LanguageStandard_C>stdc17</LanguageStandard_C>
- <StringPooling>true</StringPooling>
- diff --git a/build.vc19/nfsd/nfsd.vcxproj b/build.vc19/nfsd/nfsd.vcxproj
- index c22efd1..22e4f8b 100644
- --- a/build.vc19/nfsd/nfsd.vcxproj
- +++ b/build.vc19/nfsd/nfsd.vcxproj
- @@ -132,7 +132,7 @@
- </PrecompiledHeader>
- <WarningLevel>Level4</WarningLevel>
- <Optimization>Disabled</Optimization>
- - <PreprocessorDefinitions>WIN32_LEAN_AND_MEAN;FD_SETSIZE=1024;INET6;NO_CB_4_KRB5P;STANDALONE_NFSD;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;WIN32;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;UNICODE;_UNICODE;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- + <PreprocessorDefinitions>WIN32_LEAN_AND_MEAN;FD_SETSIZE=1024;INET6;NO_CB_4_KRB5P;STANDALONE_NFSD;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;WIN32;_WINTIRPC;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;UNICODE;_UNICODE;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..\include;..\..\libtirpc\tirpc;..\..\dll;..\..;$(IntermediateOutputPath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <LanguageStandard_C>stdc17</LanguageStandard_C>
- <BasicRuntimeChecks>Default</BasicRuntimeChecks>
- @@ -157,7 +157,7 @@
- </PrecompiledHeader>
- <WarningLevel>Level4</WarningLevel>
- <Optimization>Disabled</Optimization>
- - <PreprocessorDefinitions>WIN32_LEAN_AND_MEAN;FD_SETSIZE=1024;INET6;NO_CB_4_KRB5P;STANDALONE_NFSD;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;WIN32;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;UNICODE;_UNICODE;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- + <PreprocessorDefinitions>WIN32_LEAN_AND_MEAN;FD_SETSIZE=1024;INET6;NO_CB_4_KRB5P;STANDALONE_NFSD;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;WIN32;_WINTIRPC;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;UNICODE;_UNICODE;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..\include;..\..\libtirpc\tirpc;..\..\dll;..\..;$(IntermediateOutputPath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <LanguageStandard_C>stdc17</LanguageStandard_C>
- <BasicRuntimeChecks>Default</BasicRuntimeChecks>
- @@ -183,7 +183,7 @@
- </PrecompiledHeader>
- <WarningLevel>Level4</WarningLevel>
- <Optimization>Disabled</Optimization>
- - <PreprocessorDefinitions>WIN32_LEAN_AND_MEAN;FD_SETSIZE=1024;INET6;NO_CB_4_KRB5P;STANDALONE_NFSD;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;WIN32;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;UNICODE;_UNICODE;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- + <PreprocessorDefinitions>WIN32_LEAN_AND_MEAN;FD_SETSIZE=1024;INET6;NO_CB_4_KRB5P;STANDALONE_NFSD;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;WIN32;_WINTIRPC;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;UNICODE;_UNICODE;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..\include;..\..\libtirpc\tirpc;..\..\dll;..\..;$(IntermediateOutputPath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <LanguageStandard_C>stdc17</LanguageStandard_C>
- <BasicRuntimeChecks>Default</BasicRuntimeChecks>
- @@ -210,7 +210,7 @@
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>true</IntrinsicFunctions>
- - <PreprocessorDefinitions>WIN32_LEAN_AND_MEAN;FD_SETSIZE=1024;INET6;NO_CB_4_KRB5P;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;WIN32;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;UNICODE;_UNICODE;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- + <PreprocessorDefinitions>WIN32_LEAN_AND_MEAN;FD_SETSIZE=1024;INET6;NO_CB_4_KRB5P;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;WIN32;_WINTIRPC;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;UNICODE;_UNICODE;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..\include;..\..\libtirpc\tirpc;..\..\dll;..\..;$(IntermediateOutputPath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <LanguageStandard_C>stdc17</LanguageStandard_C>
- <BufferSecurityCheck>false</BufferSecurityCheck>
- @@ -238,7 +238,7 @@
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>true</IntrinsicFunctions>
- - <PreprocessorDefinitions>WIN32_LEAN_AND_MEAN;FD_SETSIZE=1024;INET6;NO_CB_4_KRB5P;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;WIN32;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;UNICODE;_UNICODE;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- + <PreprocessorDefinitions>WIN32_LEAN_AND_MEAN;FD_SETSIZE=1024;INET6;NO_CB_4_KRB5P;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;WIN32;_WINTIRPC;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;UNICODE;_UNICODE;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..\include;..\..\libtirpc\tirpc;..\..\dll;..\..;$(IntermediateOutputPath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <LanguageStandard_C>stdc17</LanguageStandard_C>
- <BufferSecurityCheck>false</BufferSecurityCheck>
- @@ -267,7 +267,7 @@
- <Optimization>MaxSpeed</Optimization>
- <FunctionLevelLinking>true</FunctionLevelLinking>
- <IntrinsicFunctions>true</IntrinsicFunctions>
- - <PreprocessorDefinitions>WIN32_LEAN_AND_MEAN;FD_SETSIZE=1024;INET6;NO_CB_4_KRB5P;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;WIN32;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;UNICODE;_UNICODE;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- + <PreprocessorDefinitions>WIN32_LEAN_AND_MEAN;FD_SETSIZE=1024;INET6;NO_CB_4_KRB5P;_CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;WIN32;_WINTIRPC;_CRT_STDIO_ISO_WIDE_SPECIFIERS=1;UNICODE;_UNICODE;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>..\..\include;..\..\libtirpc\tirpc;..\..\dll;..\..;$(IntermediateOutputPath);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
- <LanguageStandard_C>stdc17</LanguageStandard_C>
- <BufferSecurityCheck>false</BufferSecurityCheck>
- diff --git a/libtirpc/src/asprintf.c b/libtirpc/src/asprintf.c
- index 8f47011..2b17afa 100644
- --- a/libtirpc/src/asprintf.c
- +++ b/libtirpc/src/asprintf.c
- @@ -16,13 +16,13 @@
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
- -#ifdef _WIN32
- +#ifdef _WINTIRPC
- #include <wintirpc.h>
- #include <stdarg.h>
- #else
- extern int vsnprintf();
- #include <varargs.h>
- -#endif /* _WIN32 */
- +#endif /* _WINTIRPC */
- #include <stdio.h>
- /* Include vasprintf() if not on your OS. */
- diff --git a/libtirpc/src/auth_des.c b/libtirpc/src/auth_des.c
- index 41357c7..71de847 100644
- --- a/libtirpc/src/auth_des.c
- +++ b/libtirpc/src/auth_des.c
- @@ -33,40 +33,40 @@
- */
- #include <wintirpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <pthread.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <reentrant.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <err.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <errno.h>
- #include <string.h>
- #include <stdlib.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <unistd.h>
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <rpc/des_crypt.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <syslog.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <rpc/types.h>
- #include <rpc/auth.h>
- #include <rpc/auth_des.h>
- #include <rpc/clnt.h>
- #include <rpc/xdr.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/socket.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #undef NIS
- #include <rpcsvc/nis.h>
- #if defined(LIBC_SCCS) && !defined(lint)
- #endif
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #define USEC_PER_SEC 1000000
- #define RTIME_TIMEOUT 5 /* seconds to wait for sync */
- diff --git a/libtirpc/src/auth_gss.c b/libtirpc/src/auth_gss.c
- index c7ea358..2975d80 100644
- --- a/libtirpc/src/auth_gss.c
- +++ b/libtirpc/src/auth_gss.c
- @@ -38,9 +38,9 @@
- #include <stdio.h>
- #include <stdlib.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <unistd.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <string.h>
- #include <errno.h>
- #include <rpc/types.h>
- diff --git a/libtirpc/src/auth_none.c b/libtirpc/src/auth_none.c
- index a8ba973..deaec18 100644
- --- a/libtirpc/src/auth_none.c
- +++ b/libtirpc/src/auth_none.c
- @@ -66,9 +66,9 @@ __FBSDID("$FreeBSD: src/lib/libc/rpc/auth_none.c,v 1.12 2002/03/22 23:18:35 obri
- */
- #include <wintirpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <pthread.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <reentrant.h>
- #include <assert.h>
- #include <stdlib.h>
- diff --git a/libtirpc/src/auth_sspi.c b/libtirpc/src/auth_sspi.c
- index 1cc69f0..4e82183 100644
- --- a/libtirpc/src/auth_sspi.c
- +++ b/libtirpc/src/auth_sspi.c
- @@ -22,9 +22,9 @@
- #include <wintirpc.h>
- #include <stdio.h>
- #include <stdlib.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <unistd.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <string.h>
- #include <errno.h>
- #include <rpc/types.h>
- diff --git a/libtirpc/src/auth_time.c b/libtirpc/src/auth_time.c
- index 43ef5fc..55fde7c 100644
- --- a/libtirpc/src/auth_time.c
- +++ b/libtirpc/src/auth_time.c
- @@ -25,34 +25,34 @@
- * needed to deal with TCP connections.
- */
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <wintirpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <syslog.h>
- #endif
- #include <string.h>
- #include <stdlib.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <unistd.h>
- #include <netdb.h>
- #include <sys/signal.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <errno.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/socket.h>
- #include <netinet/in.h>
- #include <arpa/inet.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <rpc/rpc.h>
- #include <rpc/rpc_com.h>
- #include <rpc/rpcb_prot.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <clnt_soc.h>
- #include <sys/select.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #undef NIS
- #include <rpcsvc/nis.h>
- @@ -253,7 +253,7 @@ __rpc_get_time_offset(
- char ut[64], ipuaddr[64];
- endpoint teps[32];
- nis_server tsrv = { 0 };
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- void (*oldsig)(int) = NULL; /* old alarm handler */
- #endif
- struct sockaddr_in sin;
- @@ -423,7 +423,7 @@ __rpc_get_time_offset(
- time_valid = 1;
- } else {
- int res;
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- oldsig = (void (*)(int))signal(SIGALRM, alarm_hndler);
- saw_alarm = 0; /* global tracking the alarm */
- alarm(20); /* only wait 20 seconds */
- @@ -440,7 +440,7 @@ __rpc_get_time_offset(
- msg("alarm caught it, must be unreachable.");
- goto error;
- }
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- res = read(s, (char *)&thetime, sizeof(thetime));
- #else
- res = (int)wintirpc_recv(s, (char *)&thetime, sizeof(thetime), 0);
- @@ -480,7 +480,7 @@ error:
- if (clnt != NULL)
- clnt_destroy(clnt);
- -#ifdef _WIN32
- +#ifdef _WINTIRPC
- /* XXX Need Windows signal/alarm stuff here XXX */
- #else
- alarm(0); /* reset that alarm if its outstanding */
- diff --git a/libtirpc/src/auth_unix.c b/libtirpc/src/auth_unix.c
- index 201c6b5..087d9b8 100644
- --- a/libtirpc/src/auth_unix.c
- +++ b/libtirpc/src/auth_unix.c
- @@ -26,9 +26,9 @@
- * POSSIBILITY OF SUCH DAMAGE.
- */
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- /*
- * auth_unix.c, Implements UNIX style authentication parameters.
- @@ -66,23 +66,23 @@
- */
- #include <wintirpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <pthread.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <reentrant.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/param.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <assert.h>
- #include <err.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <stdio.h>
- #include <stdlib.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <unistd.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <string.h>
- #include <rpc/types.h>
- diff --git a/libtirpc/src/authdes_prot.c b/libtirpc/src/authdes_prot.c
- index 064c31f..e3d17e2 100644
- --- a/libtirpc/src/authdes_prot.c
- +++ b/libtirpc/src/authdes_prot.c
- @@ -1,6 +1,6 @@
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- /*
- * Copyright (c) 2009, Sun Microsystems, Inc.
- * All rights reserved.
- diff --git a/libtirpc/src/authsspi_prot.c b/libtirpc/src/authsspi_prot.c
- index 4dc0d35..d46d09f 100644
- --- a/libtirpc/src/authsspi_prot.c
- +++ b/libtirpc/src/authsspi_prot.c
- @@ -25,9 +25,9 @@
- #include <stdio.h>
- #include <stdlib.h>
- #include <stdarg.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <rpc/types.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <rpc/xdr.h>
- #include <rpc/auth.h>
- #include <rpc/auth_sspi.h>
- diff --git a/libtirpc/src/authunix_prot.c b/libtirpc/src/authunix_prot.c
- index 181c1f3..e42e3a0 100644
- --- a/libtirpc/src/authunix_prot.c
- +++ b/libtirpc/src/authunix_prot.c
- @@ -26,9 +26,9 @@
- * POSSIBILITY OF SUCH DAMAGE.
- */
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- /*
- * authunix_prot.c
- diff --git a/libtirpc/src/bindresvport.c b/libtirpc/src/bindresvport.c
- index 1f76ddc..6841a89 100644
- --- a/libtirpc/src/bindresvport.c
- +++ b/libtirpc/src/bindresvport.c
- @@ -27,9 +27,9 @@
- * POSSIBILITY OF SUCH DAMAGE.
- */
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- /*
- * Copyright (c) 1987 by Sun Microsystems, Inc.
- @@ -40,24 +40,24 @@
- #include <wintirpc.h>
- #include <sys/types.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/socket.h>
- #include <netinet/in.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <errno.h>
- #include <string.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <unistd.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <rpc/rpc.h>
- -#ifdef _WIN32
- +#ifdef _WINTIRPC
- #include <winsock2.h>
- #include <mstcpip.h>
- #include <ws2ipdef.h>
- -#endif /* _WIN32 */
- +#endif /* _WINTIRPC */
- /*
- * Bind a socket to a privileged IP port
- @@ -150,7 +150,7 @@ bindresvport_sa(int sd, struct sockaddr *sa)
- return (res);
- }
- -#elif defined(_WIN32)
- +#elif defined(_WINTIRPC)
- #define STARTPORT 600
- #define ENDPORT (IPPORT_RESERVED - 1)
- diff --git a/libtirpc/src/clnt_bcast.c b/libtirpc/src/clnt_bcast.c
- index a69367a..2154e81 100644
- --- a/libtirpc/src/clnt_bcast.c
- +++ b/libtirpc/src/clnt_bcast.c
- @@ -28,9 +28,9 @@
- /*
- * Copyright (c) 1986-1991 by Sun Microsystems Inc.
- */
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- /*
- * clnt_bcast.c
- @@ -43,25 +43,25 @@
- */
- #include <wintirpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/socket.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <sys/types.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/queue.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- /* new queue functions */
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <misc/queue.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <net/if.h>
- #include <netinet/in.h>
- #include <ifaddrs.h>
- #include <sys/poll.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <rpc/rpc.h>
- #ifdef PORTMAP
- #include <rpc/pmap_prot.h>
- @@ -69,20 +69,20 @@
- #include <rpc/pmap_rmt.h>
- #endif /* PORTMAP */
- #include <rpc/nettype.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <arpa/inet.h>
- #define RPC_DEBUG 1
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #ifdef RPC_DEBUG
- #include <stdio.h>
- #endif
- #include <errno.h>
- #include <stdlib.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <unistd.h>
- #include <netdb.h>
- #include <err.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <string.h>
- #include "rpc_com.h"
- @@ -102,7 +102,7 @@
- * For now, ASSUME that we do not need this for the Windows port!!!!
- */
- #include <wintirpc.h>
- -#ifdef _WIN32
- +#ifdef _WINTIRPC
- int __rpc_lowvers = 0;
- enum clnt_stat
- diff --git a/libtirpc/src/clnt_dg.c b/libtirpc/src/clnt_dg.c
- index 0ba11e8..427ecd5 100644
- --- a/libtirpc/src/clnt_dg.c
- +++ b/libtirpc/src/clnt_dg.c
- @@ -33,12 +33,12 @@
- * Implements a connectionless client side RPC.
- */
- #include <wintirpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <pthread.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <reentrant.h>
- #include <sys/types.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/socket.h>
- #include <stdint.h>
- #include <sys/poll.h>
- @@ -46,24 +46,24 @@
- #include <sys/time.h>
- #include <sys/ioctl.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <rpc/clnt.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <arpa/inet.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <rpc/rpc.h>
- #include <rpc/xdr.h>
- #include <errno.h>
- #include <stdlib.h>
- #include <string.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <signal.h>
- #include <unistd.h>
- #include <err.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include "rpc_com.h"
- -#ifdef _WIN32
- +#ifdef _WINTIRPC
- #undef IP_RECVERR
- #endif
- @@ -103,7 +103,7 @@ static void clnt_dg_destroy(CLIENT *);
- static int *dg_fd_locks;
- extern mutex_t clnt_fd_lock;
- static cond_t *dg_cv;
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #define release_fd_lock(fd, mask) { \
- mutex_lock(&clnt_fd_lock); \
- dg_fd_locks[(fd)] = 0; \
- @@ -175,7 +175,7 @@ clnt_dg_create(
- struct cu_data *cu = NULL; /* private data */
- struct timeval now;
- struct rpc_msg call_msg;
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- sigset_t mask;
- sigset_t newmask;
- #else
- @@ -184,7 +184,7 @@ clnt_dg_create(
- struct __rpc_sockinfo si;
- u_long one = 1;
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- sigfillset(&newmask);
- thr_sigsetmask(SIG_SETMASK, &newmask, &mask);
- #else
- @@ -341,7 +341,7 @@ clnt_dg_call(
- struct pollfd fd;
- int total_time, nextsend_time, tv=0;
- struct sockaddr *sa;
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- sigset_t mask;
- sigset_t newmask;
- #else
- @@ -353,7 +353,7 @@ clnt_dg_call(
- u_int32_t xid, inval, outval;
- outlen = 0;
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- sigfillset(&newmask);
- thr_sigsetmask(SIG_SETMASK, &newmask, &mask);
- #else
- @@ -602,7 +602,7 @@ clnt_dg_freeres(
- struct cu_data *cu = (struct cu_data *)cl->cl_private;
- XDR *xdrs = &(cu->cu_outxdrs);
- bool_t dummy;
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- sigset_t mask;
- sigset_t newmask;
- @@ -636,7 +636,7 @@ clnt_dg_control(
- {
- struct cu_data *cu = (struct cu_data *)cl->cl_private;
- struct netbuf *addr;
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- sigset_t mask;
- sigset_t newmask;
- #else
- @@ -644,7 +644,7 @@ clnt_dg_control(
- #endif
- int rpc_lock_value;
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- sigfillset(&newmask);
- thr_sigsetmask(SIG_SETMASK, &newmask, &mask);
- #else
- @@ -784,7 +784,7 @@ clnt_dg_destroy(CLIENT *cl)
- {
- struct cu_data *cu = (struct cu_data *)cl->cl_private;
- int cu_fd = cu->cu_fd;
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- sigset_t mask;
- sigset_t newmask;
- @@ -815,7 +815,7 @@ clnt_dg_ops()
- {
- static struct clnt_ops ops;
- extern mutex_t ops_lock;
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- sigset_t mask;
- sigset_t newmask;
- diff --git a/libtirpc/src/clnt_generic.c b/libtirpc/src/clnt_generic.c
- index 0e582ab..3de0e74 100644
- --- a/libtirpc/src/clnt_generic.c
- +++ b/libtirpc/src/clnt_generic.c
- @@ -53,35 +53,35 @@
- */
- #include <wintirpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <pthread.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <reentrant.h>
- #include <sys/types.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/fcntl.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <fcntl.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/socket.h>
- #include <netinet/in.h>
- #include <netinet/tcp.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <stdio.h>
- #include <errno.h>
- #include <string.h>
- #include <stdlib.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <netdb.h>
- -#endif /* !_WIN32 */
- -#ifndef _WIN32
- +#endif /* !_WINTIRPC */
- +#ifndef _WINTIRPC
- #include <syslog.h>
- #endif
- #include <rpc/rpc.h>
- #include <rpc/nettype.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <unistd.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include "rpc_com.h"
- extern bool_t __rpc_is_local_host(const char *);
- diff --git a/libtirpc/src/clnt_raw.c b/libtirpc/src/clnt_raw.c
- index 5a9ba46..6f1ccc1 100644
- --- a/libtirpc/src/clnt_raw.c
- +++ b/libtirpc/src/clnt_raw.c
- @@ -37,14 +37,14 @@
- * any interference from the kernel.
- */
- #include <wintirpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <pthread.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <reentrant.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <assert.h>
- #include <err.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <stdio.h>
- #include <stdlib.h>
- diff --git a/libtirpc/src/clnt_simple.c b/libtirpc/src/clnt_simple.c
- index ae1f2bb..fd66b3e 100644
- --- a/libtirpc/src/clnt_simple.c
- +++ b/libtirpc/src/clnt_simple.c
- @@ -29,31 +29,31 @@
- * Copyright (c) 1986-1991 by Sun Microsystems Inc.
- */
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- /*
- * clnt_simple.c
- * Simplified front end to client rpc.
- */
- #include <wintirpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <pthread.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <reentrant.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/param.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <stdio.h>
- #include <errno.h>
- #include <rpc/rpc.h>
- #include <string.h>
- #include <stdlib.h>
- #include <fcntl.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <unistd.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <rpc/clnt.h>
- diff --git a/libtirpc/src/clnt_vc.c b/libtirpc/src/clnt_vc.c
- index 8ce9074..a511c51 100644
- --- a/libtirpc/src/clnt_vc.c
- +++ b/libtirpc/src/clnt_vc.c
- @@ -69,35 +69,35 @@
- */
- #include <wintirpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <pthread.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <reentrant.h>
- #include <sys/types.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/poll.h>
- #include <sys/syslog.h>
- #include <sys/un.h>
- #include <sys/uio.h>
- #include <sys/socket.h>
- #include <arpa/inet.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <assert.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <err.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <errno.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <netdb.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <unistd.h>
- #include <signal.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <time.h>
- #include <rpc/rpc.h>
- @@ -176,7 +176,7 @@ struct ct_data {
- static int *vc_fd_locks;
- extern mutex_t clnt_fd_lock;
- static cond_t *vc_cv;
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #define release_fd_lock(fd, mask) { \
- mutex_lock(&clnt_fd_lock); \
- vc_fd_locks[(fd)] = 0; \
- @@ -404,7 +404,7 @@ clnt_vc_create(
- struct timeval now;
- struct rpc_msg call_msg;
- static u_int32_t disrupt;
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- sigset_t mask;
- sigset_t newmask;
- #else
- @@ -427,7 +427,7 @@ clnt_vc_create(
- goto err;
- }
- ct->ct_addr.buf = NULL;
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- sigfillset(&newmask);
- thr_sigsetmask(SIG_SETMASK, &newmask, &mask);
- #else
- @@ -592,7 +592,7 @@ clnt_vc_call(
- static int refreshes = 2;
- u_int seq = (u_int)-1;
- time_t start_send, time_now;
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- sigset_t mask, newmask;
- #else
- /* XXX Need Windows signal/event stuff XXX */
- @@ -603,7 +603,7 @@ clnt_vc_call(
- assert(cl != NULL);
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- sigfillset(&newmask);
- thr_sigsetmask(SIG_SETMASK, &newmask, &mask);
- #else
- @@ -796,7 +796,7 @@ clnt_vc_freeres(
- struct ct_data *ct;
- XDR *xdrs;
- bool_t dummy;
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- sigset_t mask;
- sigset_t newmask;
- #else
- @@ -808,7 +808,7 @@ clnt_vc_freeres(
- ct = (struct ct_data *)cl->cl_private;
- xdrs = &(ct->ct_xdrs);
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- sigfillset(&newmask);
- thr_sigsetmask(SIG_SETMASK, &newmask, &mask);
- #else
- @@ -840,7 +840,7 @@ clnt_vc_control(
- {
- struct ct_data *ct;
- void *infop = info;
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- sigset_t mask;
- sigset_t newmask;
- #else
- @@ -851,7 +851,7 @@ clnt_vc_control(
- ct = (struct ct_data *)cl->cl_private;
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- sigfillset(&newmask);
- thr_sigsetmask(SIG_SETMASK, &newmask, &mask);
- #else
- @@ -967,7 +967,7 @@ clnt_vc_destroy(CLIENT *cl)
- {
- struct ct_data *ct = (struct ct_data *) cl->cl_private;
- int ct_fd = ct->ct_fd;
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- sigset_t mask;
- sigset_t newmask;
- #else
- @@ -978,7 +978,7 @@ clnt_vc_destroy(CLIENT *cl)
- ct = (struct ct_data *) cl->cl_private;
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- sigfillset(&newmask);
- thr_sigsetmask(SIG_SETMASK, &newmask, &mask);
- #else
- @@ -1105,7 +1105,7 @@ clnt_vc_ops()
- {
- static struct clnt_ops ops;
- extern mutex_t ops_lock;
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- sigset_t mask, newmask;
- /* VARIABLES PROTECTED BY ops_lock: ops */
- diff --git a/libtirpc/src/crypt_client.c b/libtirpc/src/crypt_client.c
- index 3e057af..edc22d5 100644
- --- a/libtirpc/src/crypt_client.c
- +++ b/libtirpc/src/crypt_client.c
- @@ -30,14 +30,14 @@
- * SUCH DAMAGE.
- */
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <wintirpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <err.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <sys/types.h>
- #include <rpc/des_crypt.h>
- #include <rpc/des.h>
- diff --git a/libtirpc/src/des_crypt.c b/libtirpc/src/des_crypt.c
- index 88a88a4..c7bde54 100644
- --- a/libtirpc/src/des_crypt.c
- +++ b/libtirpc/src/des_crypt.c
- @@ -40,9 +40,9 @@
- static char sccsid[] = "@(#)des_crypt.c 2.2 88/08/10 4.0 RPCSRC; from 1.13 88/02/08 SMI";
- #endif
- #endif
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- static int common_crypt( char *, char *, unsigned, unsigned, struct desparams * );
- int (*__des_crypt_LOCAL)() = 0;
- diff --git a/libtirpc/src/des_soft.c b/libtirpc/src/des_soft.c
- index 39d0647..694dcc0 100644
- --- a/libtirpc/src/des_soft.c
- +++ b/libtirpc/src/des_soft.c
- @@ -1,6 +1,6 @@
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- /*
- * Copyright (c) 2009, Sun Microsystems, Inc.
- diff --git a/libtirpc/src/epoll_sub.c b/libtirpc/src/epoll_sub.c
- index 7345098..f514f45 100644
- --- a/libtirpc/src/epoll_sub.c
- +++ b/libtirpc/src/epoll_sub.c
- @@ -25,7 +25,7 @@
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
- #include <wintirpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <stdint.h>
- #include <sys/param.h>
- diff --git a/libtirpc/src/getnetconfig.c b/libtirpc/src/getnetconfig.c
- index fd5b08e..4dde454 100644
- --- a/libtirpc/src/getnetconfig.c
- +++ b/libtirpc/src/getnetconfig.c
- @@ -31,13 +31,13 @@
- */
- #include <wintirpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <pthread.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <reentrant.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <stdio.h>
- #include <errno.h>
- #include <netconfig.h>
- @@ -45,9 +45,9 @@
- #include <stdlib.h>
- #include <string.h>
- #include <rpc/rpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <unistd.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include "rpc_com.h"
- diff --git a/libtirpc/src/getnetpath.c b/libtirpc/src/getnetpath.c
- index 47d5d3f..30dd13a 100644
- --- a/libtirpc/src/getnetpath.c
- +++ b/libtirpc/src/getnetpath.c
- @@ -25,26 +25,26 @@
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- /*
- * Copyright (c) 1989 by Sun Microsystems, Inc.
- */
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <wintirpc.h>
- #include <stdio.h>
- #include <errno.h>
- #include <netconfig.h>
- #include <stdlib.h>
- #include <string.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <syslog.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- /*
- * internal structure to keep track of a netpath "session"
- diff --git a/libtirpc/src/getpeereid.c b/libtirpc/src/getpeereid.c
- index 1b078be..5ea5565 100644
- --- a/libtirpc/src/getpeereid.c
- +++ b/libtirpc/src/getpeereid.c
- @@ -24,23 +24,23 @@
- * SUCH DAMAGE.
- */
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <wintirpc.h>
- #include <rpc/types.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/param.h>
- #include <sys/socket.h>
- #include <sys/un.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <errno.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <unistd.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- -#ifdef _WIN32
- +#ifdef _WINTIRPC
- int
- getpeereid(int s, uid_t *euid, gid_t *egid)
- {
- diff --git a/libtirpc/src/getpublickey.c b/libtirpc/src/getpublickey.c
- index 212a4cb..e15a912 100644
- --- a/libtirpc/src/getpublickey.c
- +++ b/libtirpc/src/getpublickey.c
- @@ -38,11 +38,11 @@
- * Public key lookup routines
- */
- #include <wintirpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <stdio.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <pwd.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <rpc/rpc.h>
- #include <rpc/key_prot.h>
- #include <rpcsvc/yp_prot.h>
- @@ -174,4 +174,4 @@ int getpublickey(
- else
- return(__getpublickey_real(netname, publickey));
- }
- -#endif /* ! _WIN32 */
- \ No newline at end of file
- +#endif /* ! _WINTIRPC */
- \ No newline at end of file
- diff --git a/libtirpc/src/getrpcent.c b/libtirpc/src/getrpcent.c
- index c4d51a5..9dd0aa9 100644
- --- a/libtirpc/src/getrpcent.c
- +++ b/libtirpc/src/getrpcent.c
- @@ -33,15 +33,15 @@
- #include <wintirpc.h>
- #include <sys/types.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <netinet/in.h>
- #include <arpa/inet.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <assert.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <netdb.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- diff --git a/libtirpc/src/getrpcport.c b/libtirpc/src/getrpcport.c
- index af524b5..c2e5e87 100644
- --- a/libtirpc/src/getrpcport.c
- +++ b/libtirpc/src/getrpcport.c
- @@ -33,14 +33,14 @@
- #include <wintirpc.h>
- #include <sys/types.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/socket.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <assert.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <netdb.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <stdio.h>
- #include <string.h>
- diff --git a/libtirpc/src/key_call.c b/libtirpc/src/key_call.c
- index 130971a..213376c 100644
- --- a/libtirpc/src/key_call.c
- +++ b/libtirpc/src/key_call.c
- @@ -30,9 +30,9 @@
- */
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- /*
- * key_call.c, Interface to keyserver
- @@ -43,7 +43,7 @@
- * gendeskey(deskey) - generate a secure des key
- */
- -#ifdef _WIN32
- +#ifdef _WINTIRPC
- /*
- * Disable "warning C4206: nonstandard extension
- * used: translation unit is empty" warning
- diff --git a/libtirpc/src/key_prot_xdr.c b/libtirpc/src/key_prot_xdr.c
- index 08ac79b..9eab177 100644
- --- a/libtirpc/src/key_prot_xdr.c
- +++ b/libtirpc/src/key_prot_xdr.c
- @@ -3,7 +3,7 @@
- * It was generated using rpcgen.
- */
- -#ifdef _WIN32
- +#ifdef _WINTIRPC
- /*
- * Disable "warning C4206: nonstandard extension
- * used: translation unit is empty" warning
- @@ -176,4 +176,4 @@ xdr_key_netstres(register XDR *xdrs, key_netstres *objp)
- }
- return (TRUE);
- }
- -#endif /* !_WIN32 */
- \ No newline at end of file
- +#endif /* !_WINTIRPC */
- \ No newline at end of file
- diff --git a/libtirpc/src/mt_misc.c b/libtirpc/src/mt_misc.c
- index 46d0faf..f47662f 100644
- --- a/libtirpc/src/mt_misc.c
- +++ b/libtirpc/src/mt_misc.c
- @@ -1,14 +1,14 @@
- #include <wintirpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- #include <pthread.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <reentrant.h>
- #include <rpc/rpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/time.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <stdlib.h>
- #include <string.h>
- @@ -106,7 +106,7 @@ mutex_t serialize_pkey;
- /* netconfig serialization */
- mutex_t nc_lock;
- -#ifdef _WIN32
- +#ifdef _WINTIRPC
- /*
- * Initialize all the mutexes (CriticalSections or SRWLOCK)
- */
- diff --git a/libtirpc/src/netname.c b/libtirpc/src/netname.c
- index 7d183b0..7865a86 100644
- --- a/libtirpc/src/netname.c
- +++ b/libtirpc/src/netname.c
- @@ -35,9 +35,9 @@
- */
- #include <wintirpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/param.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <rpc/rpc.h>
- #include "rpc_com.h"
- #ifdef YP
- @@ -49,9 +49,9 @@
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <unistd.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #ifndef MAXHOSTNAMELEN
- #define MAXHOSTNAMELEN 256
- @@ -81,7 +81,7 @@ static char *OPSYS = "unix";
- int
- getnetname(char *name)
- {
- -#ifdef _WIN32
- +#ifdef _WINTIRPC
- /* I don't understand what these underlying routines are accomplishing??? */
- return 1;
- #else
- @@ -96,7 +96,7 @@ getnetname(char *name)
- #endif
- }
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- /*
- * Convert unix cred to network-name
- */
- diff --git a/libtirpc/src/netnamer.c b/libtirpc/src/netnamer.c
- index ec5fdb7..5a2710d 100644
- --- a/libtirpc/src/netnamer.c
- +++ b/libtirpc/src/netnamer.c
- @@ -33,7 +33,7 @@
- * architecture.
- */
- #include <wintirpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/param.h>
- #include <rpc/rpc.h>
- #include "rpc_com.h"
- @@ -325,4 +325,4 @@ getnetid(
- }
- }
- }
- -#endif /* !_WIN32 */
- \ No newline at end of file
- +#endif /* !_WINTIRPC */
- \ No newline at end of file
- diff --git a/libtirpc/src/pmap_clnt.c b/libtirpc/src/pmap_clnt.c
- index 5b6c151..deea04e 100644
- --- a/libtirpc/src/pmap_clnt.c
- +++ b/libtirpc/src/pmap_clnt.c
- @@ -26,9 +26,9 @@
- * POSSIBILITY OF SUCH DAMAGE.
- */
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- /*
- * pmap_clnt.c
- @@ -40,17 +40,17 @@
- #include <wintirpc.h>
- #include <sys/types.h>
- #include <sys/stat.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <unistd.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <rpc/rpc.h>
- #include <rpc/pmap_prot.h>
- #include <rpc/pmap_clnt.h>
- #include <rpc/nettype.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <netinet/in.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <stdio.h>
- #include <stdlib.h>
- diff --git a/libtirpc/src/pmap_getmaps.c b/libtirpc/src/pmap_getmaps.c
- index a2280a3..b6314b0 100644
- --- a/libtirpc/src/pmap_getmaps.c
- +++ b/libtirpc/src/pmap_getmaps.c
- @@ -26,9 +26,9 @@
- * POSSIBILITY OF SUCH DAMAGE.
- */
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- /*
- * pmap_getmap.c
- @@ -40,29 +40,29 @@
- #include <wintirpc.h>
- #include <sys/types.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/socket.h>
- #include <sys/ioctl.h>
- #include <arpa/inet.h>
- #include <net/if.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <assert.h>
- #include <errno.h>
- -#ifndef _WIN32
- -#endif /* !_WIN32 */
- +#ifndef _WINTIRPC
- +#endif /* !_WINTIRPC */
- #include <stdio.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <unistd.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <rpc/rpc.h>
- #include <rpc/pmap_prot.h>
- #include <rpc/pmap_clnt.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <clnt_soc.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #define NAMELEN 255
- #define MAX_BROADCAST_SIZE 1400
- diff --git a/libtirpc/src/pmap_getport.c b/libtirpc/src/pmap_getport.c
- index 9839515..4681574 100644
- --- a/libtirpc/src/pmap_getport.c
- +++ b/libtirpc/src/pmap_getport.c
- @@ -28,17 +28,17 @@
- #include <wintirpc.h>
- #include <sys/types.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/socket.h>
- #include <arpa/inet.h>
- #include <net/if.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <assert.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <unistd.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <rpc/rpc.h>
- #include <rpc/pmap_prot.h>
- @@ -47,7 +47,7 @@
- static const struct timeval timeout = { 5, 0 };
- static const struct timeval tottimeout = { 60, 0 };
- -#ifdef _WIN32
- +#ifdef _WINTIRPC
- /*
- * pmap_getport.c
- * Client interface to pmap rpc service.
- @@ -111,4 +111,4 @@ pmap_getport(
- address->sin_port = 0;
- return (port);
- }
- -#endif /* ! _WIN32 */
- +#endif /* ! _WINTIRPC */
- diff --git a/libtirpc/src/pmap_rmt.c b/libtirpc/src/pmap_rmt.c
- index 269e7dc..adc0da5 100644
- --- a/libtirpc/src/pmap_rmt.c
- +++ b/libtirpc/src/pmap_rmt.c
- @@ -36,7 +36,7 @@
- #include <wintirpc.h>
- #include <sys/types.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/ioctl.h>
- #include <sys/poll.h>
- #include <sys/socket.h>
- @@ -44,18 +44,18 @@
- #include <net/if.h>
- #include <netinet/in.h>
- #include <arpa/inet.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <assert.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <err.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <errno.h>
- #include <stdio.h>
- #include <string.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <unistd.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <rpc/rpc.h>
- #include <rpc/pmap_prot.h>
- @@ -63,9 +63,9 @@
- #include <rpc/pmap_rmt.h>
- // For the clnttcp_create function
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <clnt_soc.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- static const struct timeval timeout = { 3, 0 };
- diff --git a/libtirpc/src/rpc_callmsg.c b/libtirpc/src/rpc_callmsg.c
- index b40c870..7dd5de7 100644
- --- a/libtirpc/src/rpc_callmsg.c
- +++ b/libtirpc/src/rpc_callmsg.c
- @@ -41,9 +41,9 @@
- #include <rpc/rpc.h>
- #include <rpc/xdr.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/select.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- /*
- * XDR a call message
- diff --git a/libtirpc/src/rpc_com.h b/libtirpc/src/rpc_com.h
- index 28bb986..01dcf52 100644
- --- a/libtirpc/src/rpc_com.h
- +++ b/libtirpc/src/rpc_com.h
- @@ -40,9 +40,9 @@
- #ifndef _TIRPC_RPCCOM_H
- #define _TIRPC_RPCCOM_H
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- /* #pragma ident "@(#)rpc_com.h 1.11 93/07/05 SMI" */
- @@ -53,7 +53,7 @@
- #define RPC_MAXDATASIZE 9000
- #define RPC_MAXADDRSIZE 1024
- -//#ifdef _WIN32
- +//#ifdef _WINTIRPC
- // #define __RPC_GETXID(now) ((u_int32_t)_getpid() ^ (u_int32_t)(now)->tv_sec ^ \
- // (u_int32_t)(now)->tv_usec)
- //#else
- diff --git a/libtirpc/src/rpc_dtablesize.c b/libtirpc/src/rpc_dtablesize.c
- index 48f05a5..2142692 100644
- --- a/libtirpc/src/rpc_dtablesize.c
- +++ b/libtirpc/src/rpc_dtablesize.c
- @@ -27,11 +27,11 @@
- */
- #include <wintirpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <unistd.h>
- #include <sys/select.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- int _rpc_dtablesize(void); /* XXX */
- @@ -49,7 +49,7 @@ int _rpc_dtablesize(void); /* XXX */
- int
- _rpc_dtablesize(void)
- {
- -#ifdef _WIN32
- +#ifdef _WINTIRPC
- return FD_SETSIZE;
- #else
- static int size;
- diff --git a/libtirpc/src/rpc_generic.c b/libtirpc/src/rpc_generic.c
- index b9a6726..3f3501c 100644
- --- a/libtirpc/src/rpc_generic.c
- +++ b/libtirpc/src/rpc_generic.c
- @@ -29,21 +29,21 @@
- * Copyright (c) 1986-1991 by Sun Microsystems Inc.
- */
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- /*
- * rpc_generic.c, Miscl routines for RPC.
- *
- */
- #include <wintirpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <pthread.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <reentrant.h>
- #include <sys/types.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/param.h>
- #include <sys/socket.h>
- #include <sys/time.h>
- @@ -51,20 +51,20 @@
- #include <sys/resource.h>
- #include <netinet/in.h>
- #include <arpa/inet.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <rpc/rpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <ctype.h>
- #include <stddef.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <stdio.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <netdb.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <netconfig.h>
- #include <stdlib.h>
- #include <string.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <syslog.h>
- #endif
- #include <rpc/nettype.h>
- @@ -121,7 +121,7 @@ static int getnettype(const char *);
- int
- __rpc_dtbsize()
- {
- -#ifdef _WIN32
- +#ifdef _WINTIRPC
- /* gisburn: Is |FD_SETSIZE| really correct here ? */
- return (FD_SETSIZE);
- #else
- @@ -493,7 +493,7 @@ __rpc_fd2sockinfo(int fd, struct __rpc_sockinfo *sip)
- int type, proto;
- struct sockaddr_storage ss;
- -#ifdef _WIN32
- +#ifdef _WINTIRPC
- WSAPROTOCOL_INFO proto_info;
- int proto_info_size = sizeof(proto_info);
- if (wintirpc_getsockopt(fd, SOL_SOCKET, SO_PROTOCOL_INFO, (char *)&proto_info, &proto_info_size) == SOCKET_ERROR) {
- @@ -567,7 +567,7 @@ __rpc_nconf2fd(const struct netconfig *nconf)
- struct __rpc_sockinfo si;
- int fd;
- -#ifdef _WIN32
- +#ifdef _WINTIRPC
- if (!wintirpc_winsock_init())
- return 0;
- #endif
- diff --git a/libtirpc/src/rpc_prot.c b/libtirpc/src/rpc_prot.c
- index e19136e..91c2c94 100644
- --- a/libtirpc/src/rpc_prot.c
- +++ b/libtirpc/src/rpc_prot.c
- @@ -63,9 +63,9 @@
- */
- #include <wintirpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/param.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <assert.h>
- diff --git a/libtirpc/src/rpc_soc.c b/libtirpc/src/rpc_soc.c
- index 98b0118..07ddd9c 100644
- --- a/libtirpc/src/rpc_soc.c
- +++ b/libtirpc/src/rpc_soc.c
- @@ -34,7 +34,7 @@
- * California.
- */
- -#if defined(PORTMAP) || defined (_WIN32)
- +#if defined(PORTMAP) || defined (_WINTIRPC)
- /*
- * rpc_soc.c
- *
- @@ -44,32 +44,32 @@
- * of TLI/Streams
- */
- #include <wintirpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <pthread.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <reentrant.h>
- #include <sys/types.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/socket.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <stdio.h>
- #include <rpc/rpc.h>
- #include <rpc/pmap_clnt.h>
- #include <rpc/pmap_prot.h>
- #include <rpc/nettype.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <syslog.h>
- #endif
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <netinet/in.h>
- #include <netdb.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <errno.h>
- #include <stdlib.h>
- #include <string.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <unistd.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include "rpc_com.h"
- @@ -495,7 +495,7 @@ clnt_broadcast(
- (resultproc_t) rpc_wrap_bcast, "udp");
- }
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- /*
- * Create the client des authentication object. Obsoleted by
- * authdes_seccreate().
- diff --git a/libtirpc/src/rpcb_clnt.c b/libtirpc/src/rpcb_clnt.c
- index a168f67..5b48338 100644
- --- a/libtirpc/src/rpcb_clnt.c
- +++ b/libtirpc/src/rpcb_clnt.c
- @@ -36,35 +36,35 @@
- * Copyright (C) 1988, Sun Microsystems, Inc.
- */
- #include <wintirpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <pthread.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <reentrant.h>
- #include <sys/types.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/socket.h>
- #include <sys/un.h>
- #include <sys/utsname.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <rpc/rpc.h>
- #include <rpc/rpcb_prot.h>
- #include <rpc/nettype.h>
- #include <netconfig.h>
- #ifdef PORTMAP
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <netinet/in.h> /* FOR IPPROTO_TCP/UDP definitions */
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <rpc/pmap_prot.h>
- #endif /* PORTMAP */
- #include <stdio.h>
- #include <errno.h>
- #include <stdlib.h>
- #include <string.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <unistd.h>
- #include <netdb.h>
- #include <syslog.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include "rpc_com.h"
- @@ -1108,7 +1108,7 @@ error:
- return (stat);
- }
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- /*
- * Gets the time on the remote host.
- * Returns 1 if succeeds else 0.
- diff --git a/libtirpc/src/rpcb_st_xdr.c b/libtirpc/src/rpcb_st_xdr.c
- index cf15bac..ff384a4 100644
- --- a/libtirpc/src/rpcb_st_xdr.c
- +++ b/libtirpc/src/rpcb_st_xdr.c
- @@ -35,9 +35,9 @@
- * routines used with the rpcbind stats facility.
- */
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <wintirpc.h>
- #include <rpc/rpc.h>
- diff --git a/libtirpc/src/rpcdname.c b/libtirpc/src/rpcdname.c
- index bf5440d..26133a7 100644
- --- a/libtirpc/src/rpcdname.c
- +++ b/libtirpc/src/rpcdname.c
- @@ -25,9 +25,9 @@
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- /*
- * rpcdname.c
- @@ -36,9 +36,9 @@
- #include <wintirpc.h>
- #include <stdlib.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <unistd.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <string.h>
- static char *default_domain = NULL;
- @@ -46,13 +46,13 @@ static char *default_domain = NULL;
- static char *
- get_default_domain()
- {
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- char temp[256];
- #endif
- if (default_domain)
- return (default_domain);
- -#ifndef _WIN32 // Need a WIN32 version?
- +#ifndef _WINTIRPC // Need a WIN32 version?
- if (getdomainname(temp, sizeof(temp)) < 0)
- return (0);
- if ((int) strlen(temp) > 0) {
- diff --git a/libtirpc/src/rtime.c b/libtirpc/src/rtime.c
- index 7894361..55c3efb 100644
- --- a/libtirpc/src/rtime.c
- +++ b/libtirpc/src/rtime.c
- @@ -41,26 +41,26 @@
- * what unix uses.
- */
- #include <wintirpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <pthread.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <stdlib.h>
- #include <string.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <unistd.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <errno.h>
- #include <sys/types.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/socket.h>
- #include <sys/time.h>
- #include <netinet/in.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <stdio.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <netdb.h>
- #include <sys/select.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- extern int _rpc_dtablesize( void );
- diff --git a/libtirpc/src/svc.c b/libtirpc/src/svc.c
- index 8c5a210..e0bcc88 100644
- --- a/libtirpc/src/svc.c
- +++ b/libtirpc/src/svc.c
- @@ -37,15 +37,15 @@
- * Copyright (C) 1984, Sun Microsystems, Inc.
- */
- #include <wintirpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <pthread.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <reentrant.h>
- #include <sys/types.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/poll.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <assert.h>
- #include <errno.h>
- #include <stdlib.h>
- @@ -115,7 +115,7 @@ xprt_register (SVCXPRT *xprt)
- }
- memset (__svc_xports, 0, FD_SETSIZE * sizeof (SVCXPRT *));
- }
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- if (sock < FD_SETSIZE) {
- __svc_xports[sock] = xprt;
- FD_SET(wintirpc_fd2sockethandle(sock), &svc_fdset);
- @@ -154,7 +154,7 @@ __xprt_do_unregister (
- sock = xprt->xp_fd;
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- if (dolock)
- rwlock_wrlock (&svc_fd_lock);
- if ((sock < FD_SETSIZE) && (__svc_xports[sock] == xprt)) {
- @@ -612,7 +612,7 @@ svc_getreq (int rdfds)
- void
- svc_getreqset (fd_set *readfds)
- {
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- int bit, fd;
- fd_mask mask, *maskp;
- int sock;
- diff --git a/libtirpc/src/svc_auth.c b/libtirpc/src/svc_auth.c
- index b6e9f68..c732138 100644
- --- a/libtirpc/src/svc_auth.c
- +++ b/libtirpc/src/svc_auth.c
- @@ -35,9 +35,9 @@
- *
- */
- #include <wintirpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <pthread.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <reentrant.h>
- #include <sys/types.h>
- #include <rpc/rpc.h>
- diff --git a/libtirpc/src/svc_auth_des.c b/libtirpc/src/svc_auth_des.c
- index 73fb004..bc8607c 100644
- --- a/libtirpc/src/svc_auth_des.c
- +++ b/libtirpc/src/svc_auth_des.c
- @@ -45,21 +45,21 @@
- *
- */
- #include <wintirpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <pthread.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <reentrant.h>
- #include <string.h>
- #include <stdlib.h>
- #include <stdio.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <unistd.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <rpc/des_crypt.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/param.h>
- #include <netinet/in.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <rpc/types.h>
- #include <rpc/xdr.h>
- #include <rpc/auth.h>
- diff --git a/libtirpc/src/svc_auth_unix.c b/libtirpc/src/svc_auth_unix.c
- index 27598e6..ce63356 100644
- --- a/libtirpc/src/svc_auth_unix.c
- +++ b/libtirpc/src/svc_auth_unix.c
- @@ -37,9 +37,9 @@
- * Copyright (C) 1984, Sun Microsystems, Inc.
- */
- #include <wintirpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <pthread.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <assert.h>
- #include <stdio.h>
- #include <string.h>
- diff --git a/libtirpc/src/svc_dg.c b/libtirpc/src/svc_dg.c
- index d172dfd..6848f68 100644
- --- a/libtirpc/src/svc_dg.c
- +++ b/libtirpc/src/svc_dg.c
- @@ -31,9 +31,9 @@
- * Copyright (c) 1986-1991 by Sun Microsystems Inc.
- */
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- /*
- * svc_dg.c, Server side for connectionless RPC.
- @@ -41,20 +41,20 @@
- * Does some caching in the hopes of achieving execute-at-most-once semantics.
- */
- #include <wintirpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <pthread.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <reentrant.h>
- #include <sys/types.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/socket.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <rpc/rpc.h>
- #include <rpc/svc_dg.h>
- #include <errno.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <unistd.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- @@ -62,9 +62,9 @@
- #include <netconfig.h>
- #include <netdir.h>
- #endif
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <err.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include "rpc_com.h"
- diff --git a/libtirpc/src/svc_generic.c b/libtirpc/src/svc_generic.c
- index 5a0e65e..4cdfb73 100644
- --- a/libtirpc/src/svc_generic.c
- +++ b/libtirpc/src/svc_generic.c
- @@ -36,25 +36,25 @@
- *
- */
- #include <wintirpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <pthread.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <reentrant.h>
- #include <sys/types.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/socket.h>
- #include <netinet/in.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <rpc/rpc.h>
- #include <rpc/nettype.h>
- #include <stdio.h>
- #include <errno.h>
- #include <stdlib.h>
- #include <string.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <unistd.h>
- #include <err.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include "rpc_com.h"
- #include <rpc/svc.h>
- diff --git a/libtirpc/src/svc_raw.c b/libtirpc/src/svc_raw.c
- index d3e2e97..2962a8e 100644
- --- a/libtirpc/src/svc_raw.c
- +++ b/libtirpc/src/svc_raw.c
- @@ -38,9 +38,9 @@
- *
- */
- #include <wintirpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <pthread.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <reentrant.h>
- #include <rpc/rpc.h>
- #include <sys/types.h>
- diff --git a/libtirpc/src/svc_run.c b/libtirpc/src/svc_run.c
- index bfab92e..5f3ec45 100644
- --- a/libtirpc/src/svc_run.c
- +++ b/libtirpc/src/svc_run.c
- @@ -31,26 +31,26 @@
- * Wait for input, call server program.
- */
- #include <wintirpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <pthread.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <reentrant.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <err.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <errno.h>
- #include <rpc/rpc.h>
- #include <stdio.h>
- #include <string.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <unistd.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <rpc/rpc.h>
- #include "rpc_com.h"
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/select.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- void
- svc_run()
- diff --git a/libtirpc/src/svc_simple.c b/libtirpc/src/svc_simple.c
- index f4bc47a..3238465 100644
- --- a/libtirpc/src/svc_simple.c
- +++ b/libtirpc/src/svc_simple.c
- @@ -29,9 +29,9 @@
- * Copyright (c) 1986-1991 by Sun Microsystems Inc.
- */
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- /*
- * svc_simple.c
- @@ -45,9 +45,9 @@
- * for the given prognum and procnum.
- */
- #include <wintirpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <pthread.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <reentrant.h>
- #include <sys/types.h>
- #include <rpc/rpc.h>
- @@ -56,9 +56,9 @@
- #include <stdlib.h>
- #include <string.h>
- #include <wintirpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <err.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include "rpc_com.h"
- diff --git a/libtirpc/src/svc_vc.c b/libtirpc/src/svc_vc.c
- index df06002..55beaf9 100644
- --- a/libtirpc/src/svc_vc.c
- +++ b/libtirpc/src/svc_vc.c
- @@ -27,9 +27,9 @@
- * POSSIBILITY OF SUCH DAMAGE.
- */
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- /*
- * svc_vc.c, Server side for Connection Oriented based RPC.
- @@ -39,15 +39,15 @@
- * and a record/tcp stream.
- */
- #include <wintirpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <pthread.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <reentrant.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/socket.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <sys/types.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/param.h>
- #include <sys/poll.h>
- #include <sys/un.h>
- @@ -55,20 +55,20 @@
- #include <sys/uio.h>
- #include <netinet/in.h>
- #include <netinet/tcp.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <assert.h>
- #include <err.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <errno.h>
- #include <fcntl.h>
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <unistd.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <rpc/rpc.h>
- @@ -315,7 +315,7 @@ rendezvous_request(
- struct rpc_msg *msg)
- {
- int sock;
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- int flags;
- #endif
- struct cf_rendezvous *r;
- @@ -373,7 +373,7 @@ again:
- cd->sendsize = r->sendsize;
- cd->maxrec = r->maxrec;
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- if (cd->maxrec != 0) {
- flags = fcntl(sock, F_GETFL, 0);
- if (flags == -1)
- @@ -386,7 +386,7 @@ again:
- __xdrrec_setnonblock(&cd->xdrs, cd->maxrec);
- } else
- cd->nonblock = FALSE;
- -#endif /* _WIN32 */
- +#endif /* _WINTIRPC */
- gettimeofday(&cd->last_recv_time, NULL);
- @@ -502,7 +502,7 @@ read_vc(
- cfp = (struct cf_conn *)xprt->xp_p1;
- if (cfp->nonblock) {
- -#ifdef _WIN32
- +#ifdef _WINTIRPC
- len = (int)wintirpc_recv(sock, buf, (size_t)len, 0);
- #else
- len = read(sock, buf, (size_t)len);
- @@ -519,7 +519,7 @@ read_vc(
- }
- do {
- -#ifdef _WIN32
- +#ifdef _WINTIRPC
- pollfd.fd = wintirpc_fd2sockethandle(sock);
- #else
- pollfd.fd = sock;
- @@ -539,7 +539,7 @@ read_vc(
- }
- } while ((pollfd.revents & POLLIN) == 0);
- -#ifdef _WIN32
- +#ifdef _WINTIRPC
- if ((len = (int)wintirpc_recv(sock, buf, (size_t)len, 0)) > 0) {
- #else
- if ((len = read(sock, buf, (size_t)len)) > 0) {
- @@ -579,7 +579,7 @@ write_vc(
- gettimeofday(&tv0, NULL);
- for (cnt = len; cnt > 0; cnt -= i, buf += i) {
- -#ifdef _WIN32
- +#ifdef _WINTIRPC
- i = (int)wintirpc_send(xprt->xp_fd, buf, (size_t)cnt, 0);
- #else
- i = write(xprt->xp_fd, buf, (size_t)cnt);
- @@ -778,7 +778,7 @@ __rpc_get_local_uid(SVCXPRT *transp, uid_t *uid) {
- return (-1);
- }
- -#ifdef _WIN32
- +#ifdef _WINTIRPC
- void timersub( const struct timeval *tvp, const struct timeval *uvp, struct timeval *vvp )
- {
- vvp->tv_sec = tvp->tv_sec - uvp->tv_sec;
- diff --git a/libtirpc/src/xdr.c b/libtirpc/src/xdr.c
- index 464ff71..0bf266b 100644
- --- a/libtirpc/src/xdr.c
- +++ b/libtirpc/src/xdr.c
- @@ -38,9 +38,9 @@
- */
- #include <wintirpc.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <err.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- @@ -553,13 +553,13 @@ xdr_enum(
- {
- enum sizecheck { SIZEVAL }; /* used to find the size of an enum */
- -#ifdef _WIN32
- +#ifdef _WINTIRPC
- #pragma warning( push )
- /*
- * warning C4127: conditional expression is constant
- */
- #pragma warning (disable : 4127)
- -#endif /* _WIN32 */
- +#endif /* _WINTIRPC */
- /*
- * enums are treated as ints
- */
- @@ -572,9 +572,9 @@ xdr_enum(
- } else {
- return (FALSE);
- }
- -#ifdef _WIN32
- +#ifdef _WINTIRPC
- #pragma warning( pop )
- -#endif /* _WIN32 */
- +#endif /* _WINTIRPC */
- }
- /*
- diff --git a/libtirpc/src/xdr_array.c b/libtirpc/src/xdr_array.c
- index b78be10..060314e 100644
- --- a/libtirpc/src/xdr_array.c
- +++ b/libtirpc/src/xdr_array.c
- @@ -27,9 +27,9 @@
- * POSSIBILITY OF SUCH DAMAGE.
- */
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- /*
- * xdr_array.c, Generic XDR routines impelmentation.
- @@ -42,10 +42,10 @@
- #include <wintirpc.h>
- #include "namespace.h"
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <err.h>
- #include <limits.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- diff --git a/libtirpc/src/xdr_float.c b/libtirpc/src/xdr_float.c
- index 6410b22..1967539 100644
- --- a/libtirpc/src/xdr_float.c
- +++ b/libtirpc/src/xdr_float.c
- @@ -27,9 +27,9 @@
- * POSSIBILITY OF SUCH DAMAGE.
- */
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- /*
- * xdr_float.c, Generic XDR routines implementation.
- @@ -44,9 +44,9 @@
- #include <wintirpc.h>
- #include "namespace.h"
- #include <sys/types.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/param.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <stdio.h>
- diff --git a/libtirpc/src/xdr_mem.c b/libtirpc/src/xdr_mem.c
- index 4553c41..082cf81 100644
- --- a/libtirpc/src/xdr_mem.c
- +++ b/libtirpc/src/xdr_mem.c
- @@ -26,9 +26,9 @@
- * POSSIBILITY OF SUCH DAMAGE.
- */
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- /*
- * xdr_mem.h, XDR implementation using memory buffers.
- @@ -45,9 +45,9 @@
- #include "namespace.h"
- #include <sys/types.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <netinet/in.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <string.h>
- diff --git a/libtirpc/src/xdr_rec.c b/libtirpc/src/xdr_rec.c
- index 6ff721f..f2730ab 100644
- --- a/libtirpc/src/xdr_rec.c
- +++ b/libtirpc/src/xdr_rec.c
- @@ -26,10 +26,10 @@
- * POSSIBILITY OF SUCH DAMAGE.
- */
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- /*
- * xdr_rec.c, Implements TCP/IP based XDR streams with a "record marking"
- @@ -75,13 +75,13 @@
- #include <io.h>
- #include <sys/types.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <netinet/in.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <err.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- @@ -94,9 +94,9 @@
- #include <rpc/clnt.h>
- #include <stddef.h>
- #include "rpc_com.h"
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <unistd.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- static bool_t xdrrec_getlong(XDR *, long *);
- static bool_t xdrrec_putlong(XDR *, const long *);
- static bool_t xdrrec_getbytes(XDR *, char *, u_int);
- diff --git a/libtirpc/src/xdr_reference.c b/libtirpc/src/xdr_reference.c
- index 00dd283..1cf0b59 100644
- --- a/libtirpc/src/xdr_reference.c
- +++ b/libtirpc/src/xdr_reference.c
- @@ -26,10 +26,10 @@
- * POSSIBILITY OF SUCH DAMAGE.
- */
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- /*
- * xdr_reference.c, Generic XDR routines impelmentation.
- @@ -42,9 +42,9 @@
- #include <wintirpc.h>
- #include "namespace.h"
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <err.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- diff --git a/libtirpc/src/xdr_sizeof.c b/libtirpc/src/xdr_sizeof.c
- index 1ad25fc..c52bf54 100644
- --- a/libtirpc/src/xdr_sizeof.c
- +++ b/libtirpc/src/xdr_sizeof.c
- @@ -34,9 +34,9 @@
- * when serialized using XDR.
- */
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <wintirpc.h>
- #include "namespace.h"
- diff --git a/libtirpc/src/xdr_stdio.c b/libtirpc/src/xdr_stdio.c
- index 1da79a8..7e1744c 100644
- --- a/libtirpc/src/xdr_stdio.c
- +++ b/libtirpc/src/xdr_stdio.c
- @@ -26,9 +26,9 @@
- * POSSIBILITY OF SUCH DAMAGE.
- */
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- /*
- * xdr_stdio.c, XDR implementation on standard i/o file.
- @@ -44,9 +44,9 @@
- #include "namespace.h"
- #include <stdio.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <arpa/inet.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <rpc/types.h>
- #include <rpc/xdr.h>
- #include "un-namespace.h"
- diff --git a/libtirpc/tirpc/misc/event.h b/libtirpc/tirpc/misc/event.h
- index 7875ca8..6c48551 100644
- --- a/libtirpc/tirpc/misc/event.h
- +++ b/libtirpc/tirpc/misc/event.h
- @@ -186,9 +186,9 @@ extern int kqueue_del_filteropts(int filt);
- #else /* !_KERNEL */
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- struct timespec;
- __BEGIN_DECLS
- diff --git a/libtirpc/tirpc/netconfig.h b/libtirpc/tirpc/netconfig.h
- index 6ebb70d..7b71bee 100644
- --- a/libtirpc/tirpc/netconfig.h
- +++ b/libtirpc/tirpc/netconfig.h
- @@ -1,9 +1,9 @@
- #ifndef _NETCONFIG_H_
- #define _NETCONFIG_H_
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <features.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- /* XXX Should be in, or come from, the registry!!! */
- #define NETCONFIG "c:\\etc\\netconfig"
- diff --git a/libtirpc/tirpc/reentrant.h b/libtirpc/tirpc/reentrant.h
- index 7f130ae..9e6b102 100644
- --- a/libtirpc/tirpc/reentrant.h
- +++ b/libtirpc/tirpc/reentrant.h
- @@ -112,9 +112,9 @@
- #ifndef _REENTRANT_H
- #define _REENTRANT_H
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <pthread.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <libc_private.h>
- #include <stdlib.h>
- diff --git a/libtirpc/tirpc/rpc/auth.h b/libtirpc/tirpc/rpc/auth.h
- index 108141e..95349f8 100644
- --- a/libtirpc/tirpc/rpc/auth.h
- +++ b/libtirpc/tirpc/rpc/auth.h
- @@ -71,10 +71,10 @@
- #include <rpc/xdr.h>
- #include <rpc/clnt_stat.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- #include <sys/socket.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <sys/types.h>
- diff --git a/libtirpc/tirpc/rpc/auth_des.h b/libtirpc/tirpc/rpc/auth_des.h
- index d940010..42a0dc0 100644
- --- a/libtirpc/tirpc/rpc/auth_des.h
- +++ b/libtirpc/tirpc/rpc/auth_des.h
- @@ -121,7 +121,7 @@ __END_DECLS
- __BEGIN_DECLS
- extern bool_t xdr_authdes_cred(XDR *, struct authdes_cred *);
- extern bool_t xdr_authdes_verf(XDR *, struct authdes_verf *);
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- extern int rtime(dev_t, struct netbuf *, int, struct timeval *,
- struct timeval *);
- #else
- diff --git a/libtirpc/tirpc/rpc/auth_sspi.h b/libtirpc/tirpc/rpc/auth_sspi.h
- index ccb75ba..fbcade6 100644
- --- a/libtirpc/tirpc/rpc/auth_sspi.h
- +++ b/libtirpc/tirpc/rpc/auth_sspi.h
- @@ -1,8 +1,10 @@
- /* NFSv4.1 client for Windows
- - * Copyright (C) 2012 The Regents of the University of Michigan
- + * Copyright (C) 2012 The Regents of the University of Michigan
- + * Copyright (C) 2023-2025 Roland Mainz <roland.mainz@nrubsig.org>
- *
- * Olga Kornievskaia <aglo@umich.edu>
- * Casey Bodley <cbodley@umich.edu>
- + * Roland Mainz <roland.mainz@nrubsig.org>
- *
- * This library is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as published by
- diff --git a/libtirpc/tirpc/rpc/auth_unix.h b/libtirpc/tirpc/rpc/auth_unix.h
- index 9d9f059..64b8696 100644
- --- a/libtirpc/tirpc/rpc/auth_unix.h
- +++ b/libtirpc/tirpc/rpc/auth_unix.h
- @@ -45,9 +45,9 @@
- #ifndef _TIRPC_AUTH_UNIX_H
- #define _TIRPC_AUTH_UNIX_H
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- /* The machine name is part of a credential; it may not exceed 255 bytes */
- #define MAX_MACHINE_NAME 255
- diff --git a/libtirpc/tirpc/rpc/clnt.h b/libtirpc/tirpc/rpc/clnt.h
- index 20b599d..704d3f4 100644
- --- a/libtirpc/tirpc/rpc/clnt.h
- +++ b/libtirpc/tirpc/rpc/clnt.h
- @@ -65,17 +65,17 @@
- #ifndef _TIRPC_CLNT_H_
- #define _TIRPC_CLNT_H_
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <rpc/clnt_stat.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include "clnt_stat.h"
- #include <rpc/auth.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- #include <netconfig.h>
- #include <sys/un.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- /*
- * Well-known IPV6 RPC broadcast address.
- diff --git a/libtirpc/tirpc/rpc/clnt_soc.h b/libtirpc/tirpc/rpc/clnt_soc.h
- index 172ef61..66a6b42 100644
- --- a/libtirpc/tirpc/rpc/clnt_soc.h
- +++ b/libtirpc/tirpc/rpc/clnt_soc.h
- @@ -46,9 +46,9 @@
- * with TS-RPC.
- */
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #define UDPMSGSIZE 8800 /* rpc imposed limit on udp msg size */
- diff --git a/libtirpc/tirpc/rpc/des_crypt.h b/libtirpc/tirpc/rpc/des_crypt.h
- index d7be062..cc394ae 100644
- --- a/libtirpc/tirpc/rpc/des_crypt.h
- +++ b/libtirpc/tirpc/rpc/des_crypt.h
- @@ -43,9 +43,9 @@
- #ifndef _DES_DES_CRYPT_H
- #define _DES_DES_CRYPT_H
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <rpc/rpc.h>
- #define DES_MAXDATA 8192 /* max bytes encrypted in one call */
- diff --git a/libtirpc/tirpc/rpc/pmap_clnt.h b/libtirpc/tirpc/rpc/pmap_clnt.h
- index 9df2e44..ed61716 100644
- --- a/libtirpc/tirpc/rpc/pmap_clnt.h
- +++ b/libtirpc/tirpc/rpc/pmap_clnt.h
- @@ -63,9 +63,9 @@
- #ifndef _RPC_PMAP_CLNT_H_
- #define _RPC_PMAP_CLNT_H_
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- __BEGIN_DECLS
- extern bool_t pmap_set(u_long, u_long, int, int);
- diff --git a/libtirpc/tirpc/rpc/pmap_prot.h b/libtirpc/tirpc/rpc/pmap_prot.h
- index 3389b51..0fb33ca 100644
- --- a/libtirpc/tirpc/rpc/pmap_prot.h
- +++ b/libtirpc/tirpc/rpc/pmap_prot.h
- @@ -72,9 +72,9 @@
- #ifndef _RPC_PMAP_PROT_H
- #define _RPC_PMAP_PROT_H
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #define PMAPPORT ((u_short)111)
- #define PMAPPROG ((u_long)100000)
- diff --git a/libtirpc/tirpc/rpc/pmap_rmt.h b/libtirpc/tirpc/rpc/pmap_rmt.h
- index 02b4ba3..3c0788a 100644
- --- a/libtirpc/tirpc/rpc/pmap_rmt.h
- +++ b/libtirpc/tirpc/rpc/pmap_rmt.h
- @@ -41,9 +41,9 @@
- #ifndef _RPC_PMAP_RMT_H
- #define _RPC_PMAP_RMT_H
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- struct rmtcallargs {
- u_long prog, vers, proc, arglen;
- diff --git a/libtirpc/tirpc/rpc/rpc.h b/libtirpc/tirpc/rpc/rpc.h
- index 6759fc5..2161af9 100644
- --- a/libtirpc/tirpc/rpc/rpc.h
- +++ b/libtirpc/tirpc/rpc/rpc.h
- @@ -37,10 +37,10 @@
- #include <rpc/types.h> /* some typedefs */
- #include "winsock2.h"
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/socket.h>
- #include <netinet/in.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- /* external data representation interfaces */
- #include <rpc/xdr.h> /* generic (de)serializer */
- diff --git a/libtirpc/tirpc/rpc/rpc_com.h b/libtirpc/tirpc/rpc/rpc_com.h
- index 37f36a5..4f98416 100644
- --- a/libtirpc/tirpc/rpc/rpc_com.h
- +++ b/libtirpc/tirpc/rpc/rpc_com.h
- @@ -41,9 +41,9 @@
- #ifndef _RPC_RPCCOM_H
- #define _RPC_RPCCOM_H
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- /* #pragma ident "@(#)rpc_com.h 1.11 93/07/05 SMI" */
- @@ -54,7 +54,7 @@
- #define RPC_MAXDATASIZE 9000
- #define RPC_MAXADDRSIZE 1024
- -//#ifdef _WIN32
- +//#ifdef _WINTIRPC
- //#define __RPC_GETXID(now) ((u_int32_t)_getpid() ^ (u_int32_t)(now)->tv_sec ^ \
- // (u_int32_t)(now)->tv_usec)
- //#else
- diff --git a/libtirpc/tirpc/rpc/svc.h b/libtirpc/tirpc/rpc/svc.h
- index b523d3b..15d9819 100644
- --- a/libtirpc/tirpc/rpc/svc.h
- +++ b/libtirpc/tirpc/rpc/svc.h
- @@ -40,9 +40,9 @@
- #ifndef _TIRPC_SVC_H
- #define _TIRPC_SVC_H
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- /*
- * This interface must manage two items concerning remote procedure calling:
- diff --git a/libtirpc/tirpc/rpc/svc_soc.h b/libtirpc/tirpc/rpc/svc_soc.h
- index 2bbfddb..898e6c6 100644
- --- a/libtirpc/tirpc/rpc/svc_soc.h
- +++ b/libtirpc/tirpc/rpc/svc_soc.h
- @@ -38,9 +38,9 @@
- #ifndef _RPC_SVC_SOC_H
- #define _RPC_SVC_SOC_H
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- /* #pragma ident "@(#)svc_soc.h 1.11 94/04/25 SMI" */
- /* svc_soc.h 1.8 89/05/01 SMI */
- diff --git a/libtirpc/tirpc/rpc/types.h b/libtirpc/tirpc/rpc/types.h
- index 3bdfb93..a3dcec6 100644
- --- a/libtirpc/tirpc/rpc/types.h
- +++ b/libtirpc/tirpc/rpc/types.h
- @@ -62,11 +62,11 @@
- #define _TIRPC_TYPES_H
- #include <sys/types.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/_null.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- -#ifdef _WIN32
- +#ifdef _WINTIRPC
- /*
- * Windows mappings of data types
- * Fixed size things
- @@ -101,7 +101,7 @@ typedef DWORD pid_t;
- typedef SIZE_T size_t; /* This is causing a "benign redefinition error" */
- #endif
- typedef SSIZE_T ssize_t;
- -#endif /* _WIN32 */
- +#endif /* _WINTIRPC */
- typedef int32_t bool_t;
- typedef int32_t enum_t;
- @@ -128,10 +128,10 @@ typedef int32_t rpc_inline_t;
- #define mem_alloc(bsize) calloc(1, bsize)
- #define mem_free(ptr, bsize) free(ptr)
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/time.h>
- #include <sys/param.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <stdlib.h>
- #include <netconfig.h>
- diff --git a/libtirpc/tirpc/rpc/xdr.h b/libtirpc/tirpc/rpc/xdr.h
- index be14dd6..c42f299 100644
- --- a/libtirpc/tirpc/rpc/xdr.h
- +++ b/libtirpc/tirpc/rpc/xdr.h
- @@ -40,13 +40,13 @@
- #ifndef _TIRPC_XDR_H
- #define _TIRPC_XDR_H
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <stdio.h>
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <netinet/in.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- /* Rajout pour la definition des types */
- #include <rpc/types.h>
- diff --git a/libtirpc/tirpc/spinlock.h b/libtirpc/tirpc/spinlock.h
- index 31a9103..818920d 100644
- --- a/libtirpc/tirpc/spinlock.h
- +++ b/libtirpc/tirpc/spinlock.h
- @@ -37,9 +37,9 @@
- #ifndef _SPINLOCK_H_
- #define _SPINLOCK_H_
- -#ifndef _WIN32
- +#ifndef _WINTIRPC
- #include <sys/cdefs.h>
- -#endif /* !_WIN32 */
- +#endif /* !_WINTIRPC */
- #include <sys/types.h>
- /*
- diff --git a/libtirpc/tirpc/wintirpc.h b/libtirpc/tirpc/wintirpc.h
- index 1649764..347d572 100644
- --- a/libtirpc/tirpc/wintirpc.h
- +++ b/libtirpc/tirpc/wintirpc.h
- @@ -1,5 +1,6 @@
- /* NFSv4.1 client for Windows
- - * Copyright (C) 2012 The Regents of the University of Michigan
- + * Copyright (C) 2012 The Regents of the University of Michigan
- + * Copyright (C) 2023-2025 Roland Mainz <roland.mainz@nrubsig.org>
- *
- * Olga Kornievskaia <aglo@umich.edu>
- * Casey Bodley <cbodley@umich.edu>
- @@ -117,6 +118,10 @@ struct timezone
- extern int gettimeofday(struct timeval *tv, struct timezone *tz);
- extern int asprintf(char **str, const char *fmt, ...);
- +#ifndef _WIN32_WINNT
- +#error _WIN32_WINNT not defined
- +#endif /* !_WIN32_WINNT */
- +
- #if(_WIN32_WINNT < 0x0501)
- #define SOL_IPV6 IPPROTO_IPV6
- #endif
- --
- 2.45.4
- From 9d81d5a81556ee6f3c11179c7be147602a1fcb8e Mon Sep 17 00:00:00 2001
- From: Roland Mainz <roland.mainz@nrubsig.org>
- Date: Wed, 3 Sep 2025 15:09:13 +0200
- Subject: [PATCH 5/5] README.md,docs: Document NFS server requirements for NFS
- Named Attributes
- Document NFS server requirements for NFS Named Attributes (e.g.
- |O_XATTR|/|O_NAMEDATTR|).
- Reported-by: Cedric Blancher <cedric.blancher@gmail.com>
- Signed-off-by: Cedric Blancher <cedric.blancher@gmail.com>
- ---
- README.md | 3 ++-
- docs/README.xml | 2 +-
- 2 files changed, 3 insertions(+), 2 deletions(-)
- diff --git a/README.md b/README.md
- index a9bb25c..519f1f0 100644
- --- a/README.md
- +++ b/README.md
- @@ -841,7 +841,8 @@ Within WSL mount UNC path returned by `/sbin/nfs_mount`
- - Extended attributes are supported with some limitations:
- - - a\) the server must support NFS Named Attributes,
- + - a\) the server must support NFS Named Attributes (e.g. Solaris,
- + Illumos, FreeBSD 15, but NOT Linux nfsd),
- - b\) the order of listings cannot be guaranteed by NFS, and
- diff --git a/docs/README.xml b/docs/README.xml
- index e32fda4..4f290a3 100644
- --- a/docs/README.xml
- +++ b/docs/README.xml
- @@ -824,7 +824,7 @@ A::EVERYONE@:rtcy</programlisting>
- <listitem>
- <para>Extended attributes are supported with some limitations:
- <itemizedlist>
- - <listitem><para>a) the server must support NFS Named Attributes,</para></listitem>
- + <listitem><para>a) the server must support NFS Named Attributes (e.g. Solaris, Illumos, FreeBSD 15, but NOT Linux nfsd),</para></listitem>
- <listitem><para>b) the order of listings cannot be guaranteed by NFS, and</para></listitem>
- <listitem><para>c) the EaSize field cannot be reported for directory queries of <literal>FileBothDirInformation</literal>, <literal>FileFullDirInfo</literal>, or <literal>FileIdFullDirInfo</literal>.</para></listitem>
- </itemizedlist>
- --
- 2.45.4
msnfs41client: Patches for more libtirpc cleanup, fix umount issues, ARM64 work+misc, 2025-09-03
Posted by Anonymous on Wed 3rd Sep 2025 18:34
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.