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
F108171530: D2420.diff
Wed, Jan 22, 4:57 AM
F108117959: D2420.id5138.diff
Tue, Jan 21, 2:00 PM
Unknown Object (File)
Mon, Jan 20, 8:07 AM
Unknown Object (File)
Thu, Jan 16, 9:16 AM
Unknown Object (File)
Wed, Jan 8, 2:53 PM
Unknown Object (File)
Sun, Jan 5, 9:00 AM
Unknown Object (File)
Nov 25 2024, 10:47 PM
Unknown Object (File)
Nov 22 2024, 11:33 PM
Subscribers

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage

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
18

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.

35

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

38

return (NULL);

40

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.