freebsd-nq/lib
Xin LI da4ab3aa26 In DCE 1.1, the time_low value is defined as an unsigned 32-bit
integer.  Presently, our implementation employs an approach that
converts the value to int64_t, then back to int, unfortunately,
this approach can be problematic when the the difference between
the two time_low is larger than 0x7fffffff, as the value is then
truncated to int.

To quote the test case from the original PR, the following is
true with the current implementation:

865e1a56-b9d9-11d9-ba27-0003476f2e88 < 062ac45c-b9d9-11d9-ba27-0003476f2e88

However, according to the DCE specification, the expected result
should be:

865e1a56-b9d9-11d9-ba27-0003476f2e88 > 062ac45c-b9d9-11d9-ba27-0003476f2e88

This commit adds a new intermediate variable which uses int64_t
to store the result of subtraction between the two time_low values,
which would not introduce different semantic of the MSB found in
time_low value.

PR:		83107
Submitted by:	Steve Sears <sjs at acm dot org>
MFC After:	1 month
2006-08-03 03:34:36 +00:00
..
bind Reimplementation of world/kernel build options. For details, see: 2006-03-17 18:54:44 +00:00
csu GC these crt{begin,end}.c, which are unused since the last FreeBSD platform 2006-05-22 19:30:02 +00:00
libalias Bump the shared library version number of all libraries that have not 2005-07-22 17:19:05 +00:00
libarchive If skip_file_dev and skip_file_ino haven't been set (are still == 0), 2006-08-01 05:31:29 +00:00
libatm Bump library majro version for gethostbyaddr(3). 2006-05-21 15:15:21 +00:00
libautofs Fix all the spelling mistakes I could find in the man pages for words 2005-07-31 03:30:48 +00:00
libbegemot Bump the shared library version number of all libraries that have not 2005-07-22 17:19:05 +00:00
libbluetooth Bump the shared library version number of all libraries that have not 2005-07-22 17:19:05 +00:00
libbsm Add audit_submit.3 to the set of man pages built and installed with 2006-06-05 12:53:44 +00:00
libbsnmp Catch up with the import of bsnmp-1.11. Add a couple of new 2005-10-04 15:02:07 +00:00
libbz2 Bump the shared library version number of all libraries that have not 2005-07-22 17:19:05 +00:00
libc In DCE 1.1, the time_low value is defined as an unsigned 32-bit 2006-08-03 03:34:36 +00:00
libc_r Fix a symlink. 2006-04-12 19:51:14 +00:00
libcalendar
libcam Go with a different version of the previous patch so to preserve errno. 2006-04-30 07:08:43 +00:00
libcom_err
libcompat
libcrypt Provide alternate default for SHLIBDIR before bsd.own.mk does this. 2006-03-18 11:01:06 +00:00
libdevinfo Make the variadic macro debug() comply to C99. 2006-07-17 09:33:24 +00:00
libdevstat Remove an unused variable. 2005-10-04 22:00:35 +00:00
libdisk o Add IDs for Plan9, QNX4.X, Mac OS-X, Linux exteneded partitions. 2006-04-25 20:42:15 +00:00
libedit Merge NetBSD's revision 1.27. This bug can be observed eg. when browsing 2005-12-04 09:34:56 +00:00
libexpat Bump the shared library version number of all libraries that have not 2005-07-22 17:19:05 +00:00
libfetch Respect MK_INET6_SUPPORT. 2006-07-27 04:54:03 +00:00
libform Add missing shared library interdependencies. 2005-11-10 18:07:07 +00:00
libftpio Respect MK_INET6_SUPPORT. 2006-07-27 04:54:03 +00:00
libgeom Fix prototype. 2005-11-24 10:43:35 +00:00
libgpib Apply style.Makefile(5) here. 2006-04-13 08:12:31 +00:00
libgssapi The function isspace does not take a string argument. I have no idea how 2006-02-04 09:40:21 +00:00
libio NO_MAN is not needed here. 2006-03-16 15:18:17 +00:00
libipsec Provide alternate default for SHLIBDIR before bsd.own.mk does this. 2006-03-18 11:01:06 +00:00
libipx
libkiconv - Fix checking range of strings of struct iconv_add_in in libsmb and libkiconv, 2005-08-24 12:38:26 +00:00
libkse o Remove a cruft prevented libpthread sigaction(2) wrapper to 2006-06-09 14:23:40 +00:00
libkvm Rev. 1.44 of this file didn't introduce a right solution, 2006-07-25 22:39:57 +00:00
libmagic Update for the 'file' 4.17 import. 2006-06-19 08:10:23 +00:00
libmd Fix an 11 year old mistake: Let the hash functions take a void* instead 2006-01-17 15:35:57 +00:00
libmemstat Increase the number of CPUs to 32 to suit sun4v. 2006-07-26 07:46:32 +00:00
libmenu Add missing shared library interdependencies. 2005-11-10 18:07:07 +00:00
libmilter Reimplementation of world/kernel build options. For details, see: 2006-03-17 18:54:44 +00:00
libmp Pass BN_CTX to internal functions instead of allocating it internally. 2006-07-30 19:29:26 +00:00
libncp NO_MAN is not needed here. 2006-03-16 15:18:17 +00:00
libncurses Convert NO_PROFILE and NO_LIB32 to new style. 2006-03-18 21:37:05 +00:00
libnetgraph In the splnet(9) times netgraph(4) was synchronous and if a message 2006-01-12 19:14:40 +00:00
libngatm Bump the shared library version number of all libraries that have not 2005-07-22 17:19:05 +00:00
libopie Bump the shared library version number of all libraries that have not 2005-07-22 17:19:05 +00:00
libpam Change the GCC specific __FUNCTION__ to C99's __func__. 2006-07-17 11:48:52 +00:00
libpanel Add missing shared library interdependencies. 2005-11-10 18:07:07 +00:00
libpcap Place shared libpcap library under /lib, currently needed by 2006-04-13 07:25:02 +00:00
libpmc MFP4: Support for profiling dynamically loaded objects. 2006-03-26 12:20:54 +00:00
libpthread o Remove a cruft prevented libpthread sigaction(2) wrapper to 2006-06-09 14:23:40 +00:00
libradius Reimplementation of world/kernel build options. For details, see: 2006-03-17 18:54:44 +00:00
librpcsvc Reimplementation of world/kernel build options. For details, see: 2006-03-17 18:54:44 +00:00
librt Account for recent changes in namespace.h. Use _pthread_create 2006-03-29 04:20:53 +00:00
libsbuf
libsdp Fix an unwanted gcc4 warning. 2006-06-06 16:58:19 +00:00
libsm Add new libsm file from sendmail 8.13.6 2006-03-22 16:58:15 +00:00
libsmb NO_MAN is not needed here. 2006-03-16 15:18:17 +00:00
libsmdb
libsmutil
libstand Implement printf 'X' conversion for both libstand and kernel. 2006-03-09 22:37:34 +00:00
libtacplus Bump the shared library version number of all libraries that have not 2005-07-22 17:19:05 +00:00
libtelnet Stop enforcing dependencies between MK_* options at Makefile level. 2006-07-31 13:29:36 +00:00
libthr 1. Don't override underscore version of aio_suspend(), system(), 2006-07-25 12:50:05 +00:00
libthread_db Fix return value. 2006-05-17 05:14:45 +00:00
libufs minor style.Makefile(5) fixes: 2005-09-26 06:23:43 +00:00
libugidfw Add some new options to mac_bsdestended. We can now match on: 2006-04-23 17:06:18 +00:00
libusbhid Fix prototypes. 2005-11-24 11:26:36 +00:00
libutil style.Makefile(5) is good for our eyes. 2006-07-27 12:36:46 +00:00
libvgl Bump the shared library version number of all libraries that have not 2005-07-22 17:19:05 +00:00
libwrap Reimplementation of world/kernel build options. For details, see: 2006-03-17 18:54:44 +00:00
liby Drop useless with NO_PIC SHLIB_MAJOR. 2005-07-20 14:35:26 +00:00
libypclnt Remove debug code. 2006-07-28 21:34:37 +00:00
libz Resolve conflicts. 2006-03-23 14:09:21 +00:00
msun Fixed the threshold for using the simple Taylor approximation. 2006-07-07 04:33:08 +00:00
ncurses Convert NO_PROFILE and NO_LIB32 to new style. 2006-03-18 21:37:05 +00:00
Makefile Extend coverage of the MK_IPX build option to the following: 2006-03-20 14:24:58 +00:00
Makefile.inc Bump the shared library version number of all libraries that have not 2005-07-22 17:19:05 +00:00