bug-hurd
[Top][All Lists]
Advanced

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

Re: Please comment out constants in header files for features not being


From: Samuel Thibault
Subject: Re: Please comment out constants in header files for features not being supported yet. And remove stubs??
Date: Thu, 17 Dec 2020 17:11:36 +0100
User-agent: NeoMutt/20170609 (1.8.3)

Svante Signell, le jeu. 17 déc. 2020 15:54:28 +0100, a ecrit:
> # define CLOCK_REALTIME_COARSE          5
> 
> The problem with that option is that it is not yet supported, resulting
> in EINVAL and a crash message on the console: /hurd/crash: host
> <address> crashed ...

We could comment this out indeed.

But the program assuming that "it's defined so it works" is completely
bogus on Linux as well: one may run an application built against a
recent libc, on an old Linux kernel...

> Maybe even the stubs, like: posix_fadvise, acct, getrandom,
> msg{ctl,get,rcv,snd}, sem{ctl,op,get}, vhangup, pthread_getcpuclockid,
> etc from gnu/stubs.h should be hidden too?

./configure knows that they are stubs, and thus correctly detects them
as not being available.

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]