Re: [COMMITTERS] pgsql: Add pg_strnlen() a portable implementationof strlen.

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: [COMMITTERS] pgsql: Add pg_strnlen() a portable implementationof strlen.
Дата
Msg-id 20171010204603.sgcia7xtuhqvjumj@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: [COMMITTERS] pgsql: Add pg_strnlen() a portable implementation of strlen.  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-committers
On 2017-10-10 16:37:04 -0400, Tom Lane wrote:
> Andres Freund <andres@anarazel.de> writes:
> > (there's definitely fixes to be made to where strnlen's replacement is
> > located, but regardless, this needs to be fixed too)
> 
> Given that strnlen is standardized by POSIX, and has been for nigh a
> decade, I think it'd be all right for us to treat it as a straight
> port replacement function, a la strlcpy() for instance.  That is,
> forget the pg_ prefix and just create a strnlen() function if the
> platform has not got it.

Yea, I'm ok with that. But can't do that before the configure issue on
these boxes is fixed, otherwise we'll likely get symbol conflicts...

Greetings,

Andres Freund


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Add pg_strnlen() a portable implementation of strlen.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Add pg_strnlen() a portable implementation of strlen.