Andres Freund <andres(at)anarazel(dot)de> writes:
> I think the current split between common and port isn't particularly
> meaningful. But as long as we have it, this probably belongs more in
> port than in common.
Well, port is supposed to be for stuff that we expect to find in libc
on common platforms, but is missing some places. strnlen seems to
fall in that category well enough.
regards, tom lane