tech-userlevel archive

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

Re: The <signal.h> header shall define the timespec structure as described in <time.h>



On 22.06.2015 16:14, Christos Zoulas wrote:
> In article <5587B93B.5020108%gmx.com@localhost>, Kamil Rytarowski  <n54%gmx.com@localhost> wrote:
>> http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/signal.h.html says:
>> 'The <signal.h> header shall define the timespec structure as described
>> in <time.h>.'
>>
>> For the following code:
>> #include <signal.h>
>> struct timespec ts;
>> int main(){}
>>
>> I get:
>> error: storage size of ‘ts’ isn’t known
>> struct timespec ts;
>>
>> I added <sys/time.h> to <sys/siginfo.h>  to follow
>> http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/sys/siginfo.h.diff?r1=1.5&r2=1.6&f=h
>>
>> Is this change ok?
> 
> Yes, I think it is fine since siginfo.h is not included from any other
> userland visible posix headers aside signal related ones (it is included
> in sys/proc.h too but that is not posix).
> 
> christos
> 

Thanks, I request to commit it for -current. I've run into a situation
when a piece of software requires this POSIX behavior.



Home | Main Index | Thread Index | Old Index