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>



   Date: Thu, 30 Jul 2015 17:33:47 +0200
   From: Kamil Rytarowski <n54%gmx.com@localhost>

   I'm attaching the patch adding struct timespec to <signal.h>.

   Are there any objections to commit it?

This kind of copy pasta should be avoided.  Why not just make
<signal.h> include <sys/time.h>?

If the namespace pollution of <sys/time.h> in <signal.h> is a problem,
we should have a single header file to define timespec and include
that in <sys/time.h> and <signal.h> alike.


Home | Main Index | Thread Index | Old Index