![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community, here is the log from the commit of package mozilla-nspr for openSUSE:Factory checked in at 2018-10-29 14:15:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mozilla-nspr (Old) and /work/SRC/openSUSE:Factory/.mozilla-nspr.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "mozilla-nspr" Mon Oct 29 14:15:02 2018 rev:68 rq:644082 version:4.20 Changes: -------- --- /work/SRC/openSUSE:Factory/mozilla-nspr/mozilla-nspr.changes 2018-03-24 16:04:42.050595871 +0100 +++ /work/SRC/openSUSE:Factory/.mozilla-nspr.new/mozilla-nspr.changes 2018-10-29 14:56:54.349728318 +0100 @@ -1,0 +2,8 @@ +Sun Oct 21 07:30:43 UTC 2018 - wr@rosenauer.org + +- update to version 4.20 + * abstract socket address support for Linux (incl. Android) + * aarch64 support for Windows + * support for riscv64 + +------------------------------------------------------------------- Old: ---- nspr-4.19.tar.gz New: ---- nspr-4.20.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mozilla-nspr.spec ++++++ --- /var/tmp/diff_new_pack.q2pWSt/_old 2018-10-29 14:56:55.253731619 +0100 +++ /var/tmp/diff_new_pack.q2pWSt/_new 2018-10-29 14:56:55.253731619 +0100 @@ -13,12 +13,12 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: mozilla-nspr -Version: 4.19 +Version: 4.20 Release: 0 Summary: Netscape Portable Runtime License: MPL-2.0 ++++++ nspr-4.19.tar.gz -> nspr-4.20.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.19/nspr/.hg_archival.txt new/nspr-4.20/nspr/.hg_archival.txt --- old/nspr-4.19/nspr/.hg_archival.txt 2018-03-05 16:50:28.000000000 +0100 +++ new/nspr-4.20/nspr/.hg_archival.txt 2018-08-28 14:42:28.000000000 +0200 @@ -1,4 +1,4 @@ repo: a4b34919bf34db2ee22acbbc305693c8980b6dc6 -node: 2fae42c03571fbcf7ebd0a064637d2ece1068a01 +node: 098415a64f86e6dd98a2afb915526b1bfaf55409 branch: default -tag: NSPR_4_19_RTM +tag: NSPR_4_20_RTM diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.19/nspr/configure new/nspr-4.20/nspr/configure --- old/nspr-4.19/nspr/configure 2018-03-05 16:50:28.000000000 +0100 +++ new/nspr-4.20/nspr/configure 2018-08-28 14:42:28.000000000 +0200 @@ -2488,7 +2488,7 @@ program_prefix=${target_alias}- MOD_MAJOR_VERSION=4 -MOD_MINOR_VERSION=19 +MOD_MINOR_VERSION=20 MOD_PATCH_VERSION=0 NSPR_MODNAME=nspr20 _HAVE_PTHREADS= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.19/nspr/configure.in new/nspr-4.20/nspr/configure.in --- old/nspr-4.19/nspr/configure.in 2018-03-05 16:50:28.000000000 +0100 +++ new/nspr-4.20/nspr/configure.in 2018-08-28 14:42:28.000000000 +0200 @@ -15,7 +15,7 @@ dnl = Defaults dnl ======================================================== MOD_MAJOR_VERSION=4 -MOD_MINOR_VERSION=19 +MOD_MINOR_VERSION=20 MOD_PATCH_VERSION=0 NSPR_MODNAME=nspr20 _HAVE_PTHREADS= @@ -2106,6 +2106,10 @@ AC_DEFINE(_AMD64_) USE_64=1 ;; + aarch64) + AC_DEFINE(_ARM64_) + USE_64=1 + ;; ia64) AC_DEFINE(_IA64_) USE_64=1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.19/nspr/lib/ds/plarena.h new/nspr-4.20/nspr/lib/ds/plarena.h --- old/nspr-4.19/nspr/lib/ds/plarena.h 2018-03-05 16:50:28.000000000 +0100 +++ new/nspr-4.20/nspr/lib/ds/plarena.h 2018-08-28 14:42:28.000000000 +0200 @@ -95,13 +95,24 @@ #if defined(PL_SANITIZE_ADDRESS) +#if defined(_MSC_VER) +/* We can't use dllimport due to DLL linkage mismatch with + * sanitizer/asan_interface.h. + */ +#define PL_ASAN_VISIBILITY(type_) type_ +#else +#define PL_ASAN_VISIBILITY(type_) PR_IMPORT(type_) +#endif + /* These definitions are usually provided through the * sanitizer/asan_interface.h header installed by ASan. * See https://github.com/google/sanitizers/wiki/AddressSanitizerManualPoisoning */ -PR_IMPORT(void) __asan_poison_memory_region(void const volatile *addr, size_t size); -PR_IMPORT(void) __asan_unpoison_memory_region(void const volatile *addr, size_t size); +PL_ASAN_VISIBILITY(void) __asan_poison_memory_region( + void const volatile *addr, size_t size); +PL_ASAN_VISIBILITY(void) __asan_unpoison_memory_region( + void const volatile *addr, size_t size); #define PL_MAKE_MEM_NOACCESS(addr, size) \ __asan_poison_memory_region((addr), (size)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.19/nspr/pr/include/md/_linux.cfg new/nspr-4.20/nspr/pr/include/md/_linux.cfg --- old/nspr-4.19/nspr/pr/include/md/_linux.cfg 2018-03-05 16:50:28.000000000 +0100 +++ new/nspr-4.20/nspr/pr/include/md/_linux.cfg 2018-08-28 14:42:28.000000000 +0200 @@ -1020,6 +1020,98 @@ #define PR_BYTES_PER_WORD_LOG2 2 #define PR_BYTES_PER_DWORD_LOG2 3 +#elif defined(__riscv) && (__riscv_xlen == 32) + +#undef IS_BIG_ENDIAN +#define IS_LITTLE_ENDIAN 1 +#undef IS_64 + +#define PR_BYTES_PER_BYTE 1 +#define PR_BYTES_PER_SHORT 2 +#define PR_BYTES_PER_INT 4 +#define PR_BYTES_PER_INT64 8 +#define PR_BYTES_PER_LONG 4 +#define PR_BYTES_PER_FLOAT 4 +#define PR_BYTES_PER_DOUBLE 8 +#define PR_BYTES_PER_WORD 4 +#define PR_BYTES_PER_DWORD 8 + +#define PR_BITS_PER_BYTE 8 +#define PR_BITS_PER_SHORT 16 +#define PR_BITS_PER_INT 32 +#define PR_BITS_PER_INT64 64 +#define PR_BITS_PER_LONG 32 +#define PR_BITS_PER_FLOAT 32 +#define PR_BITS_PER_DOUBLE 64 +#define PR_BITS_PER_WORD 32 + +#define PR_BITS_PER_BYTE_LOG2 3 +#define PR_BITS_PER_SHORT_LOG2 4 +#define PR_BITS_PER_INT_LOG2 5 +#define PR_BITS_PER_INT64_LOG2 6 +#define PR_BITS_PER_LONG_LOG2 5 +#define PR_BITS_PER_FLOAT_LOG2 5 +#define PR_BITS_PER_DOUBLE_LOG2 6 +#define PR_BITS_PER_WORD_LOG2 5 + +#define PR_ALIGN_OF_SHORT 2 +#define PR_ALIGN_OF_INT 4 +#define PR_ALIGN_OF_LONG 4 +#define PR_ALIGN_OF_INT64 8 +#define PR_ALIGN_OF_FLOAT 4 +#define PR_ALIGN_OF_DOUBLE 8 +#define PR_ALIGN_OF_POINTER 4 +#define PR_ALIGN_OF_WORD 4 + +#define PR_BYTES_PER_WORD_LOG2 2 +#define PR_BYTES_PER_DWORD_LOG2 3 + +#elif defined(__riscv) && (__riscv_xlen == 64) + +#undef IS_BIG_ENDIAN +#define IS_LITTLE_ENDIAN 1 +#define IS_64 + +#define PR_BYTES_PER_BYTE 1 +#define PR_BYTES_PER_SHORT 2 +#define PR_BYTES_PER_INT 4 +#define PR_BYTES_PER_INT64 8 +#define PR_BYTES_PER_LONG 8 +#define PR_BYTES_PER_FLOAT 4 +#define PR_BYTES_PER_DOUBLE 8 +#define PR_BYTES_PER_WORD 8 +#define PR_BYTES_PER_DWORD 8 + +#define PR_BITS_PER_BYTE 8 +#define PR_BITS_PER_SHORT 16 +#define PR_BITS_PER_INT 32 +#define PR_BITS_PER_INT64 64 +#define PR_BITS_PER_LONG 64 +#define PR_BITS_PER_FLOAT 32 +#define PR_BITS_PER_DOUBLE 64 +#define PR_BITS_PER_WORD 64 + +#define PR_BITS_PER_BYTE_LOG2 3 +#define PR_BITS_PER_SHORT_LOG2 4 +#define PR_BITS_PER_INT_LOG2 5 +#define PR_BITS_PER_INT64_LOG2 6 +#define PR_BITS_PER_LONG_LOG2 6 +#define PR_BITS_PER_FLOAT_LOG2 5 +#define PR_BITS_PER_DOUBLE_LOG2 6 +#define PR_BITS_PER_WORD_LOG2 6 + +#define PR_ALIGN_OF_SHORT 2 +#define PR_ALIGN_OF_INT 4 +#define PR_ALIGN_OF_LONG 8 +#define PR_ALIGN_OF_INT64 8 +#define PR_ALIGN_OF_FLOAT 4 +#define PR_ALIGN_OF_DOUBLE 8 +#define PR_ALIGN_OF_POINTER 8 +#define PR_ALIGN_OF_WORD 8 + +#define PR_BYTES_PER_WORD_LOG2 3 +#define PR_BYTES_PER_DWORD_LOG2 3 + #else #error "Unknown CPU architecture" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.19/nspr/pr/include/md/_linux.h new/nspr-4.20/nspr/pr/include/md/_linux.h --- old/nspr-4.19/nspr/pr/include/md/_linux.h 2018-03-05 16:50:28.000000000 +0100 +++ new/nspr-4.20/nspr/pr/include/md/_linux.h 2018-08-28 14:42:28.000000000 +0200 @@ -57,6 +57,10 @@ #define _PR_SI_ARCHITECTURE "m32r" #elif defined(__or1k__) #define _PR_SI_ARCHITECTURE "or1k" +#elif defined(__riscv) && (__riscv_xlen == 32) +#define _PR_SI_ARCHITECTURE "riscv32" +#elif defined(__riscv) && (__riscv_xlen == 64) +#define _PR_SI_ARCHITECTURE "riscv64" #else #error "Unknown CPU architecture" #endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.19/nspr/pr/include/md/_win95.cfg new/nspr-4.20/nspr/pr/include/md/_win95.cfg --- old/nspr-4.19/nspr/pr/include/md/_win95.cfg 2018-03-05 16:50:28.000000000 +0100 +++ new/nspr-4.20/nspr/pr/include/md/_win95.cfg 2018-08-28 14:42:28.000000000 +0200 @@ -214,6 +214,55 @@ #define PR_BYTES_PER_WORD_LOG2 2 #define PR_BYTES_PER_DWORD_LOG2 3 +#elif defined(_M_ARM64) || defined(_ARM64_) + +#define IS_LITTLE_ENDIAN 1 +#undef IS_BIG_ENDIAN +#define IS_64 + +#define PR_BYTES_PER_BYTE 1 +#define PR_BYTES_PER_SHORT 2 +#define PR_BYTES_PER_INT 4 +#define PR_BYTES_PER_INT64 8 +#define PR_BYTES_PER_LONG 4 +#define PR_BYTES_PER_FLOAT 4 +#define PR_BYTES_PER_WORD 8 +#define PR_BYTES_PER_DWORD 8 +#define PR_BYTES_PER_DOUBLE 8 + +#define PR_BITS_PER_BYTE 8 +#define PR_BITS_PER_SHORT 16 +#define PR_BITS_PER_INT 32 +#define PR_BITS_PER_INT64 64 +#define PR_BITS_PER_LONG 32 +#define PR_BITS_PER_FLOAT 32 +#define PR_BITS_PER_WORD 64 +#define PR_BITS_PER_DWORD 64 +#define PR_BITS_PER_DOUBLE 64 + +#define PR_BITS_PER_BYTE_LOG2 3 +#define PR_BITS_PER_SHORT_LOG2 4 +#define PR_BITS_PER_INT_LOG2 5 +#define PR_BITS_PER_INT64_LOG2 6 +#define PR_BITS_PER_LONG_LOG2 5 +#define PR_BITS_PER_FLOAT_LOG2 5 +#define PR_BITS_PER_WORD_LOG2 6 +#define PR_BITS_PER_DWORD_LOG2 6 +#define PR_BITS_PER_DOUBLE_LOG2 6 + +#define PR_ALIGN_OF_SHORT 2 +#define PR_ALIGN_OF_INT 4 +#define PR_ALIGN_OF_LONG 4 +#define PR_ALIGN_OF_INT64 8 +#define PR_ALIGN_OF_FLOAT 4 +#define PR_ALIGN_OF_WORD 8 +#define PR_ALIGN_OF_DWORD 8 +#define PR_ALIGN_OF_DOUBLE 8 +#define PR_ALIGN_OF_POINTER 8 + +#define PR_BYTES_PER_WORD_LOG2 3 +#define PR_BYTES_PER_DWORD_LOG2 3 + #else /* defined(_M_IX86) || defined(_X86_) */ #error unknown processor architecture diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.19/nspr/pr/include/md/_win95.h new/nspr-4.20/nspr/pr/include/md/_win95.h --- old/nspr-4.19/nspr/pr/include/md/_win95.h 2018-03-05 16:50:28.000000000 +0100 +++ new/nspr-4.20/nspr/pr/include/md/_win95.h 2018-08-28 14:42:28.000000000 +0200 @@ -26,6 +26,8 @@ #define _PR_SI_ARCHITECTURE "ia64" #elif defined(_M_ARM) || defined(_ARM_) #define _PR_SI_ARCHITECTURE "arm" +#elif defined(_M_ARM64) +#define _PR_SI_ARCHITECTURE "aarch64" #else #error unknown processor architecture #endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.19/nspr/pr/include/prinit.h new/nspr-4.20/nspr/pr/include/prinit.h --- old/nspr-4.19/nspr/pr/include/prinit.h 2018-03-05 16:50:28.000000000 +0100 +++ new/nspr-4.20/nspr/pr/include/prinit.h 2018-08-28 14:42:28.000000000 +0200 @@ -31,9 +31,9 @@ ** The format of the version string is ** "<major version>.<minor version>[.<patch level>] [<Beta>]" */ -#define PR_VERSION "4.19" +#define PR_VERSION "4.20" #define PR_VMAJOR 4 -#define PR_VMINOR 19 +#define PR_VMINOR 20 #define PR_VPATCH 0 #define PR_BETA PR_FALSE diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.19/nspr/pr/src/misc/prnetdb.c new/nspr-4.20/nspr/pr/src/misc/prnetdb.c --- old/nspr-4.19/nspr/pr/src/misc/prnetdb.c 2018-03-05 16:50:28.000000000 +0100 +++ new/nspr-4.20/nspr/pr/src/misc/prnetdb.c 2018-08-28 14:42:28.000000000 +0200 @@ -7,6 +7,10 @@ #include <string.h> +#if defined(LINUX) +#include <sys/un.h> +#endif + /* * On Unix, the error code for gethostbyname() and gethostbyaddr() * is returned in the global variable h_errno, instead of the usual @@ -1366,7 +1370,17 @@ #endif #if defined(XP_UNIX) || defined(XP_OS2) else if (AF_UNIX == addr->raw.family) - addrsize = sizeof(addr->local); + { +#if defined(LINUX) + if (addr->local.path[0] == 0) + /* abstract socket address is supported on Linux only */ + addrsize = strnlen(addr->local.path + 1, + sizeof(addr->local.path)) + + offsetof(struct sockaddr_un, sun_path) + 1; + else +#endif + addrsize = sizeof(addr->local); + } #endif else addrsize = 0; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.19/nspr/pr/src/pthreads/ptio.c new/nspr-4.20/nspr/pr/src/pthreads/ptio.c --- old/nspr-4.19/nspr/pr/src/pthreads/ptio.c 2018-03-05 16:50:28.000000000 +0100 +++ new/nspr-4.20/nspr/pr/src/pthreads/ptio.c 2018-08-28 14:42:28.000000000 +0200 @@ -1750,7 +1750,12 @@ if (addr->raw.family == AF_UNIX) { /* Disallow relative pathnames */ - if (addr->local.path[0] != '/') + if (addr->local.path[0] != '/' +#if defined(LINUX) + /* Linux has abstract socket address support */ + && addr->local.path[0] != 0 +#endif + ) { PR_SetError(PR_INVALID_ARGUMENT_ERROR, 0); return PR_FAILURE; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.19/nspr/pr/src/pthreads/ptsynch.c new/nspr-4.20/nspr/pr/src/pthreads/ptsynch.c --- old/nspr-4.19/nspr/pr/src/pthreads/ptsynch.c 2018-03-05 16:50:28.000000000 +0100 +++ new/nspr-4.20/nspr/pr/src/pthreads/ptsynch.c 2018-08-28 14:42:28.000000000 +0200 @@ -911,7 +911,8 @@ * From the semctl(2) man page in glibc 2.0 */ #if (defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED)) \ - || defined(FREEBSD) || defined(OPENBSD) || defined(BSDI) \ + || (defined(FREEBSD) && __FreeBSD_version < 1200059) \ + || defined(OPENBSD) || defined(BSDI) \ || defined(DARWIN) || defined(SYMBIAN) /* union semun is defined by including <sys/sem.h> */ #else diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.19/nspr/pr/tests/Makefile.in new/nspr-4.20/nspr/pr/tests/Makefile.in --- old/nspr-4.19/nspr/pr/tests/Makefile.in 2018-03-05 16:50:28.000000000 +0100 +++ new/nspr-4.20/nspr/pr/tests/Makefile.in 2018-08-28 14:42:28.000000000 +0200 @@ -18,6 +18,7 @@ DIRS = dll CSRCS = \ + abstract.c \ accept.c \ acceptread.c \ acceptreademu.c \ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.19/nspr/pr/tests/abstract.c new/nspr-4.20/nspr/pr/tests/abstract.c --- old/nspr-4.19/nspr/pr/tests/abstract.c 1970-01-01 01:00:00.000000000 +0100 +++ new/nspr-4.20/nspr/pr/tests/abstract.c 2018-08-28 14:42:28.000000000 +0200 @@ -0,0 +1,157 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#include <stdio.h> + +#if defined(LINUX) + +#include <string.h> +#include "nspr.h" + +static const char abstractSocketName[] = "\0testsocket"; + +static void +ClientThread(void* aArg) +{ + PRFileDesc* socket; + PRNetAddr addr; + PRUint8 buf[1024]; + PRInt32 len; + PRInt32 total; + + addr.local.family = PR_AF_LOCAL; + memcpy(addr.local.path, abstractSocketName, sizeof(abstractSocketName)); + + socket = PR_OpenTCPSocket(addr.raw.family); + if (!socket) { + fprintf(stderr, "PR_OpenTCPSokcet failed\n"); + exit(1); + } + + if (PR_Connect(socket, &addr, PR_INTERVAL_NO_TIMEOUT) == PR_FAILURE) { + fprintf(stderr, "PR_Connect failed\n"); + exit(1); + } + + total = 0; + while (total < sizeof(buf)) { + len = PR_Recv(socket, buf + total, sizeof(buf) - total, 0, + PR_INTERVAL_NO_TIMEOUT); + if (len < 1) { + fprintf(stderr, "PR_Recv failed\n"); + exit(1); + } + total += len; + } + + total = 0; + while (total < sizeof(buf)) { + len = PR_Send(socket, buf + total, sizeof(buf) - total, 0, + PR_INTERVAL_NO_TIMEOUT); + if (len < 1) { + fprintf(stderr, "PR_Send failed\n"); + exit(1); + } + total += len; + } + + if (PR_Close(socket) == PR_FAILURE) { + fprintf(stderr, "PR_Close failed\n"); + exit(1); + } +} + +int +main() +{ + PRFileDesc* socket; + PRFileDesc* acceptSocket; + PRThread* thread; + PRNetAddr addr; + PRUint8 buf[1024]; + PRInt32 len; + PRInt32 total; + + addr.local.family = PR_AF_LOCAL; + memcpy(addr.local.path, abstractSocketName, sizeof(abstractSocketName)); + + socket = PR_OpenTCPSocket(addr.raw.family); + if (!socket) { + fprintf(stderr, "PR_OpenTCPSocket failed\n"); + exit(1); + } + if (PR_Bind(socket, &addr) == PR_FAILURE) { + fprintf(stderr, "PR_Bind failed\n"); + exit(1); + } + + if (PR_Listen(socket, 5) == PR_FAILURE) { + fprintf(stderr, "PR_Listen failed\n"); + exit(1); + } + + thread = PR_CreateThread(PR_USER_THREAD, ClientThread, 0, PR_PRIORITY_NORMAL, + PR_GLOBAL_THREAD, PR_JOINABLE_THREAD, 0); + if (!thread) { + fprintf(stderr, "PR_CreateThread failed"); + exit(1); + } + + acceptSocket = PR_Accept(socket, NULL, PR_INTERVAL_NO_TIMEOUT); + if (!acceptSocket) { + fprintf(stderr, "PR_Accept failed\n"); + exit(1); + } + + memset(buf, 'A', sizeof(buf)); + + total = 0; + while (total < sizeof(buf)) { + len = PR_Send(acceptSocket, buf + total, sizeof(buf) - total, 0, + PR_INTERVAL_NO_TIMEOUT); + if (len < 1) { + fprintf(stderr, "PR_Send failed\n"); + exit(1); + } + total += len; + } + + total = 0; + while (total < sizeof(buf)) { + len = PR_Recv(acceptSocket, buf + total, sizeof(buf) - total, 0, + PR_INTERVAL_NO_TIMEOUT); + if (len < 1) { + fprintf(stderr, "PR_Recv failed\n"); + exit(1); + } + total += len; + } + + if (PR_Close(acceptSocket) == PR_FAILURE) { + fprintf(stderr, "PR_Close failed\n"); + exit(1); + } + + if (PR_JoinThread(thread) == PR_FAILURE) { + fprintf(stderr, "PR_JoinThread failed\n"); + exit(1); + } + + if (PR_Close(socket) == PR_FAILURE) { + fprintf(stderr, "PR_Close failed\n"); + exit(1); + } + printf("PASS\n"); + return 0; +} + +#else +int +main() +{ + prinf("PASS\n"); + return 0; +} +#endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.19/nspr/pr/tests/runtests.pl new/nspr-4.20/nspr/pr/tests/runtests.pl --- old/nspr-4.19/nspr/pr/tests/runtests.pl 2018-03-05 16:50:28.000000000 +0100 +++ new/nspr-4.20/nspr/pr/tests/runtests.pl 2018-08-28 14:42:28.000000000 +0200 @@ -241,6 +241,7 @@ # MAIN --------------- @progs = ( +"abstract", "accept", "acceptread", "acceptreademu", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.19/nspr/pr/tests/runtests.sh new/nspr-4.20/nspr/pr/tests/runtests.sh --- old/nspr-4.19/nspr/pr/tests/runtests.sh 2018-03-05 16:50:28.000000000 +0100 +++ new/nspr-4.20/nspr/pr/tests/runtests.sh 2018-08-28 14:42:28.000000000 +0200 @@ -71,6 +71,7 @@ # TESTS=" +abstract accept acceptread acceptreademu diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nspr-4.19/nspr/pr/tests/vercheck.c new/nspr-4.20/nspr/pr/tests/vercheck.c --- old/nspr-4.19/nspr/pr/tests/vercheck.c 2018-03-05 16:50:28.000000000 +0100 +++ new/nspr-4.20/nspr/pr/tests/vercheck.c 2018-08-28 14:42:28.000000000 +0200 @@ -40,7 +40,7 @@ "4.10", "4.10.1", "4.10.2", "4.10.3", "4.10.4", "4.10.5", "4.10.6", "4.10.7", "4.10.8", "4.10.9", "4.10.10", "4.11", "4.12", "4.13", "4.14", "4.15", - "4.16", "4.17", "4.18", + "4.16", "4.17", "4.18", "4.19", PR_VERSION }; @@ -56,8 +56,8 @@ "3.0", "3.0.1", "3.1", "3.1.1", "3.1.2", "3.1.3", "3.5", "3.5.1", - "4.19.1", - "4.20", "4.20.1", + "4.20.1", + "4.21", "4.21.1", "10.0", "11.1", "12.14.20" };