[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dup3 and pipe2 syscalls on kfreebsd



Hi kFreeBSD porters,

On 2016-06-22 Dmitry Shachnev <mitya57@debian.org> wrote:
(https://lists.debian.org/debian-bsd/2016/06/msg00081.html)

> While working on Qt packaging, I noticed that it's currently
> impossible to use dup3 and pipe2 system calls on kFreeBSD. The linker
> outputs the following:
>
>   cloexec.o: In function `main':
>   cloexec.cpp:(.text.startup+0x2e): warning: dup3 is not implemented and will always fail
>   cloexec.cpp:(.text.startup+0xd): warning: pipe2 is not implemented and will always fail
>
> I have two questions about this issue:
>
> 1) It looks like upstream FreeBSD supports this since version 10.0.
>    Why does it not work in Debian?
>
> 2) If it's not easy to get them working, why should the linker accept the
>    code using them at all? I.e. why is it a warning, not an error?

I couldn't find any reply to this in the archive.  I've got a package
which uses pipe2() and thus fails on kFreeBSD.  What's the preferred
solution in such cases now?
-- 
(Please Cc me on the replies)
Thanks,
Feri


Reply to: