Re: [hackers] [sic] add support for pledge()

From: Anselm R Garbe <garbeam_AT_gmail.com>
Date: Sat, 18 Mar 2017 19:26:25 +0100

On 8 March 2017 at 14:51, Joerg Jung <mail_AT_umaxx.net> wrote:
>> On 22 Aug 2016, at 11:19, Anselm R Garbe <garbeam_AT_gmail.com> wrote:
>> On 14 August 2016 at 11:11, Hiltjo Posthuma <hiltjo_AT_codemadness.org> wrote:
>>> In general we should try to avoid ifdefs asmuch as possible. But I would not
>>> mind the pledge in the form:
>>>
>>> #ifdef __OpenBSD__
>>> if (pledge("stdio", NULL) == -1)
>>> eprint("error: pledge:");
>>> #endif
>>>
>>> Also in my opinion we should just import the OpenBSD strlcpy() version or
>>> rename the current one, it has not the same behaviour as strlcpy and is
>>> confusing.
>>>
>>> Attached is my proposed patch.
>>
>> ACK
>
> …back on this topic, makes one feel like a corpse vulture :)
> Any chance to get this committed?

Thanks for the reminder.
Done.
Received on Sat Mar 18 2017 - 19:26:25 CET

This archive was generated by hypermail 2.3.0 : Sat Mar 18 2017 - 19:36:21 CET