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

2017-03-18 Thread Anselm R Garbe
On 8 March 2017 at 14:51, Joerg Jung wrote: >> On 22 Aug 2016, at 11:19, Anselm R Garbe wrote: >> On 14 August 2016 at 11:11, Hiltjo Posthuma wrote: >>> In general we should try to avoid ifdefs asmuch as possible. But I would not >>> mind the pledge in the form: >>> >>>#ifdef __OpenBSD__

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

2017-03-08 Thread Joerg Jung
> On 22 Aug 2016, at 11:19, Anselm R Garbe wrote: > On 14 August 2016 at 11:11, Hiltjo Posthuma 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) >>

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

2016-08-22 Thread Anselm R Garbe
On 14 August 2016 at 11:11, Hiltjo Posthuma 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 >

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

2016-08-22 Thread Joerg Jung
> On 14 Aug 2016, at 11:11, Hiltjo Posthuma wrote: > > On Sun, Aug 14, 2016 at 12:30:46AM +0200, Joerg Jung wrote: >> Hi, >> >> please find below a diff for sic to enable pledge() to be used on >> OpenBSD. This diff was originally submitted by Ali H. Fardan via >> po...@openbsd.org. While her

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

2016-08-14 Thread Hiltjo Posthuma
On Sun, Aug 14, 2016 at 12:30:46AM +0200, Joerg Jung wrote: > Hi, > > please find below a diff for sic to enable pledge() to be used on > OpenBSD. This diff was originally submitted by Ali H. Fardan via > po...@openbsd.org. While here, I enabled the usage of strlcpy() > from libc on OpenBSD. >

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

2016-08-13 Thread Joerg Jung
Hi, please find below a diff for sic to enable pledge() to be used on OpenBSD. This diff was originally submitted by Ali H. Fardan via po...@openbsd.org. While here, I enabled the usage of strlcpy() from libc on OpenBSD. Honestly, I'm not sure about how such portability goo should be handled