uuid(3): Document return valuesPR: 204449Reported by: Michael Cress <[email protected]>(cherry picked from commit f6842865d3367217f2df3e5ae7ecb5b66caf9451)
libc: further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using mis-identified many licenses so this was mostly a manual - errorp
libc: further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using mis-identified many licenses so this was mostly a manual - errorprone - task.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.
show more ...
libc: replace 0 with NULL for pointers.While here also cleanup some surrounding code; particularlydrop some malloc() casts.Found with devel/coccinelle.Reviewed by: bde (previous version - all
libc: replace 0 with NULL for pointers.While here also cleanup some surrounding code; particularlydrop some malloc() casts.Found with devel/coccinelle.Reviewed by: bde (previous version - all new bugs are mine)
Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP}if not already defined. This allows building libc from outside oflib/libc using a reach-over makefile.A typical use-case is to
Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP}if not already defined. This allows building libc from outside oflib/libc using a reach-over makefile.A typical use-case is to build a standard ILP32 version and a COMPAT32version in a single iteration by building the COMPAT32 version using areach-over makefile.Obtained from: Juniper Networks, Inc.
Note that memory should be freed after uuid_to_string(3) call.MFC after: 1 week
mdoc: drop redundant .Pp and .LP callsThey have no effect when coming in pairs, or before .Bl/.Bd
Move uuid_enc_le, uuid_dec_le, uuid_enc_be and uuid_dec_be symbolsinto FBSD_1.1 section where they should be.Pointed out by: kib, deischenMFC after: 3 days
Add uuid_enc,dec_le,be() functions to Symbol.mapPointy hat goes to me.MFC after: 3 days
Import the uuid_enc_le(), uuid_dec_le(), uuid_enc_be() anduuid_dec_be() functions. These routines are not part of theDCE RPC API. They are provided for convenience.Reviewed by: marcelObtained fr
Import the uuid_enc_le(), uuid_dec_le(), uuid_enc_be() anduuid_dec_be() functions. These routines are not part of theDCE RPC API. They are provided for convenience.Reviewed by: marcelObtained from: NetBSDMFC after: 1 week
Use C comments since we now preprocess these files with CPP.
Avoid using intermediate variables by just comparing betweentwo values, the latter does not tend to have sign extensionand/or overflow bugs, and makes the code more obvious.While I'm there, make
Avoid using intermediate variables by just comparing betweentwo values, the latter does not tend to have sign extensionand/or overflow bugs, and makes the code more obvious.While I'm there, make use of a macro which is derived frombin/ps/ps.c: ps_compat() to improve the readability of thecode.Suggested by: bdeMFC after: 1 week
In DCE 1.1, the time_low value is defined as an unsigned 32-bitinteger. Presently, our implementation employs an approach thatconverts the value to int64_t, then back to int, unfortunately,this a
In DCE 1.1, the time_low value is defined as an unsigned 32-bitinteger. Presently, our implementation employs an approach thatconverts the value to int64_t, then back to int, unfortunately,this approach can be problematic when the the difference betweenthe two time_low is larger than 0x7fffffff, as the value is thentruncated to int.To quote the test case from the original PR, the following istrue with the current implementation:865e1a56-b9d9-11d9-ba27-0003476f2e88 < 062ac45c-b9d9-11d9-ba27-0003476f2e88However, according to the DCE specification, the expected resultshould be:865e1a56-b9d9-11d9-ba27-0003476f2e88 > 062ac45c-b9d9-11d9-ba27-0003476f2e88This commit adds a new intermediate variable which uses int64_tto store the result of subtraction between the two time_low values,which would not introduce different semantic of the MSB found intime_low value.PR: 83107Submitted by: Steve Sears <sjs at acm dot org>MFC After: 1 month
Add each directory's symbol map file to SYM_MAPS.
Add symbol maps and initial symbol version definitions to libc.Reviewed by: davidxu
Keep up with const poisoning in uuid.h,v 1.3.
Avoid (unnecessarily) casting away const within uuid_is_nil.
Sort sections.
Constify arguments.
Remove stale DCE 1.1 pointers to the IBM site. The URLs aren't validanymore. This also fixes long line bugs caused by the lengthy URLs :-)
Fix markup for uuid_equal()
Fix two (2) bugs in one (1) statement:o fix the len argument of memcmp(3) to be the size of the node field of the uuid structure, not the size of the uuid structure itself. We're comparing th
Fix two (2) bugs in one (1) statement:o fix the len argument of memcmp(3) to be the size of the node field of the uuid structure, not the size of the uuid structure itself. We're comparing the node fields...o uuid_compare(3) is specified to return -1, 0 or 1, depending on the outcome of the comparison. memcmp(3) returns the difference between the first differing bytes. Hence, we cannot ever return the return value of memcmp(3) as-is.PR: standards/55370Submitted by: Konstantin Oznobihin <[email protected]>
mdoc(7) police: "The .Fa argument.".
mdoc(7) police: nits.Approved by: re
libc_r wasn't so tied to libc for 22 months.
This file has reincarnated as src/include/uuid.h with a whole newfuture ahead of it.
12