aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/uuid
Commit message (Collapse)AuthorAgeFilesLines
* Remove residual blank line at start of MakefileWarner Losh2024-07-151-1/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* libc: Remove empty comments in Symbol.mapBrooks Davis2023-11-151-3/+0
| | | | | | | These were left over from $FreeBSD$ removal. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D42612
* libc: Purge unneeded cdefs.hWarner Losh2023-11-011-1/+0
| | | | | | | | | These sys/cdefs.h are not needed. Purge them. They are mostly left-over from the $FreeBSD$ removal. A few in libc are still required for macros that cdefs.h defines. Keep those. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D42385
* libc: Fix missing or misspelled MLINKS.Dag-Erling Smørgrav2023-10-181-2/+8
| | | | Differential Revision: https://reviews.freebsd.org/D42192
* Remove $FreeBSD$: two-line nroff patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* Remove $FreeBSD$: one-line .h patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-168-16/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-129-9/+9
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* uuid(3): Document return valuesFelix Johnson2021-11-191-9/+54
| | | | | | PR: 204449 MFC after: 3 days Reported by: Michael Cress <michael.cress@cress.us>
* libc: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-259-0/+18
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326193
* libc: replace 0 with NULL for pointers.Pedro F. Giffuni2016-04-101-1/+1
| | | | | | | | | | | | While here also cleanup some surrounding code; particularly drop some malloc() casts. Found with devel/coccinelle. Reviewed by: bde (previous version - all new bugs are mine) Notes: svn path=/head/; revision=297790
* Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP}Marcel Moolenaar2014-03-041-2/+2
| | | | | | | | | | | | | | if not already defined. This allows building libc from outside of lib/libc using a reach-over makefile. A typical use-case is to build a standard ILP32 version and a COMPAT32 version in a single iteration by building the COMPAT32 version using a reach-over makefile. Obtained from: Juniper Networks, Inc. Notes: svn path=/head/; revision=262722
* Note that memory should be freed after uuid_to_string(3) call.Andrey V. Elsukov2012-03-011-2/+11
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=232339
* mdoc: drop redundant .Pp and .LP callsUlrich Spörlein2010-10-081-1/+0
| | | | | | | They have no effect when coming in pairs, or before .Bl/.Bd Notes: svn path=/head/; revision=213573
* Move uuid_enc_le, uuid_dec_le, uuid_enc_be and uuid_dec_be symbolsMaksim Yevmenkin2008-09-191-0/+3
| | | | | | | | | | into FBSD_1.1 section where they should be. Pointed out by: kib, deischen MFC after: 3 days Notes: svn path=/head/; revision=183192
* Add uuid_enc,dec_le,be() functions to Symbol.mapMaksim Yevmenkin2008-09-151-0/+4
| | | | | | | | | Pointy hat goes to me. MFC after: 3 days Notes: svn path=/head/; revision=183058
* Import the uuid_enc_le(), uuid_dec_le(), uuid_enc_be() andMaksim Yevmenkin2008-08-143-2/+148
| | | | | | | | | | | | uuid_dec_be() functions. These routines are not part of the DCE RPC API. They are provided for convenience. Reviewed by: marcel Obtained from: NetBSD MFC after: 1 week Notes: svn path=/head/; revision=181743
* Use C comments since we now preprocess these files with CPP.Daniel Eischen2007-04-291-1/+3
| | | | Notes: svn path=/head/; revision=169092
* Avoid using intermediate variables by just comparing betweenXin LI2007-04-051-27/+15
| | | | | | | | | | | | | | | two values, the latter does not tend to have sign extension and/or overflow bugs, and makes the code more obvious. While I'm there, make use of a macro which is derived from bin/ps/ps.c: ps_compat() to improve the readability of the code. Suggested by: bde MFC after: 1 week Notes: svn path=/head/; revision=168377
* In DCE 1.1, the time_low value is defined as an unsigned 32-bitXin LI2006-08-031-5/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=160938
* Add each directory's symbol map file to SYM_MAPS.Daniel Eischen2006-03-131-0/+1
| | | | Notes: svn path=/head/; revision=156613
* Add symbol maps and initial symbol version definitions to libc.Daniel Eischen2006-03-131-0/+12
| | | | | | | Reviewed by: davidxu Notes: svn path=/head/; revision=156608
* Keep up with const poisoning in uuid.h,v 1.3.Ruslan Ermilov2005-11-241-6/+6
| | | | Notes: svn path=/head/; revision=152748
* Avoid (unnecessarily) casting away const within uuid_is_nil.Xin LI2005-05-111-2/+2
| | | | Notes: svn path=/head/; revision=146098
* Sort sections.Ruslan Ermilov2005-01-201-2/+2
| | | | Notes: svn path=/head/; revision=140505
* Constify arguments.Marcel Moolenaar2005-01-035-11/+11
| | | | Notes: svn path=/head/; revision=139601
* Remove stale DCE 1.1 pointers to the IBM site. The URLs aren't validMarcel Moolenaar2003-08-088-8/+0
| | | | | | | anymore. This also fixes long line bugs caused by the lengthy URLs :-) Notes: svn path=/head/; revision=118670
* Fix markup for uuid_equal()Marcel Moolenaar2003-08-081-1/+2
| | | | Notes: svn path=/head/; revision=118669
* Fix two (2) bugs in one (1) statement:Marcel Moolenaar2003-08-081-1/+4
| | | | | | | | | | | | | | | | 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/55370 Submitted by: Konstantin Oznobihin <bork@rsu.ru> Notes: svn path=/head/; revision=118668
* mdoc(7) police: "The .Fa argument.".Ruslan Ermilov2002-12-191-1/+1
| | | | Notes: svn path=/head/; revision=108087
* mdoc(7) police: nits.Ruslan Ermilov2002-12-091-2/+3
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107702
* libc_r wasn't so tied to libc for 22 months.Ruslan Ermilov2002-11-181-3/+1
| | | | Notes: svn path=/head/; revision=107052
* This file has reincarnated as src/include/uuid.h with a whole newMarcel Moolenaar2002-11-181-59/+0
| | | | | | | future ahead of it. Notes: svn path=/head/; revision=107047
* libc header files are normally in src/include. Therefore, uuid.h hasMarcel Moolenaar2002-11-181-2/+0
| | | | | | | | | | | | | been repo-copied from src/lib/libc/uuid to src/include. Update the makefiles. While in src/include/Makefile, reformat and resort INCS. Reverting the functional change only involves removing uuid.h. Pompted by: ru Notes: svn path=/head/; revision=107046
* Wrap function prototype declarations in __BEGIN_DECLS to do the right thingJuli Mallett2002-11-051-0/+2
| | | | | | | | | with them in non-C cases. Requested by: Patrick Hartling <patrick@137.org> Notes: svn path=/head/; revision=106452
* Implement DCE 1.1 compliant UUID functions. Immediate use of theseMarcel Moolenaar2002-10-3011-0/+668
functions is expected for uuidgen(1), mca(8) and gpt(8). Given the generic use of UUIDs beyond the scope of the DCE 1.1 specification, visibility of the data structure at all levels of the machine, including firmware and the wish to not create a permanent build- time FreeBSD-ism for DCE compliant applications by creating a new library, it was decided that libc would be the least inappropriate place. Also, because the UUID functions live in libc under IRIX as well, we have maximized our portability and left as many options open as possible. This implementation introduces an extension not found in the specification: the status parameter is allowed to be a NULL- pointer. The reason for introducing the extension is because the status is almost never of any use. The manpage that's part of this commit is a minimal place-holder and is further fleshed-out in the near future. Approved by: re@ Contributed by: Hiten Mahesh Pandya <hiten@unixdaemons.com> Sponsored by: marcel :-) Tested on: alpha, i386, ia64 Notes: svn path=/head/; revision=106184