Page MenuHomeFreeBSD

Import reallocarray from OpenBSD Write a manpage about it (assign copyright to openbsd given the manpage is maintly copy/paste from OpenBSD malloc(3))
ClosedPublic

Authored by bapt on May 1 2015, 1:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jun 23, 12:14 PM
Unknown Object (File)
Sun, Jun 23, 12:12 PM
Unknown Object (File)
Tue, Jun 4, 10:11 PM
Unknown Object (File)
May 13 2024, 4:44 PM
Unknown Object (File)
May 1 2024, 6:46 PM
Unknown Object (File)
May 1 2024, 6:46 PM
Unknown Object (File)
May 1 2024, 6:46 PM
Unknown Object (File)
May 1 2024, 6:46 PM
Subscribers

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bapt retitled this revision from to Import reallocarray from OpenBSD Write a manpage about it (assign copyright to openbsd given the manpage is maintly copy/paste from OpenBSD malloc(3)).
bapt updated this object.
bapt edited the test plan for this revision. (Show Details)
bapt added a reviewer: emaste.

Remove not intended changes

Updating D2420: Import reallocarray from OpenBSD

Write a manpage about it (assign copyright to openbsd given the manpage is
maintly copy/paste from OpenBSD malloc(3))

Add to version map

Updating D2420: Import reallocarray from OpenBSD

Write a manpage about it (assign copyright to openbsd given the manpage is
maintly copy/paste from OpenBSD malloc(3))

erg I forgot the Makefile in the review

Updating D2420: Import reallocarray from OpenBSD

Write a manpage about it (assign copyright to openbsd given the manpage is
maintly copy/paste from OpenBSD malloc(3))

netbsd ended up with there own implementation and an openbsd compatible stub

http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/stdlib/reallocarray.c
http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/stdlib/reallocarray.c

I can switch to their version if that is preferred

I do not want to participate in the discussion about the API design.

The symver usage seems correct.

lib/libc/stdlib/reallocarray.c
17 ↗(On Diff #5135)

The $FreeBSD$ should not appear in the license comment for the non-vendor .c source. The approved way to introduce idtag is to use __FBSDID(), look at the other sources for examples.

34 ↗(On Diff #5135)

There should be empty line after '{' if no local vars are declared.

37 ↗(On Diff #5135)

return (NULL);

39 ↗(On Diff #5135)

Again, return (realloc());

bapt edited edge metadata.

Fix issues reported by kib

Updating D2420: Import reallocarray from OpenBSD

Write a manpage about it (assign copyright to openbsd given the manpage is
maintly copy/paste from OpenBSD malloc(3))

Fixed a missed one

Updating D2420: Import reallocarray from OpenBSD

Write a manpage about it (assign copyright to openbsd given the manpage is
maintly copy/paste from OpenBSD malloc(3))

kib edited edge metadata.
This revision is now accepted and ready to land.May 1 2015, 4:36 PM
This revision was automatically updated to reflect the committed changes.