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>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On 23.06.2015 00:46, Kamil Rytarowski wrote:
> 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.ht
ml
>>> 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.
>
I'm going to commit this change after 24h. In case of comments please
let me know.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJVoRLmAAoJEEuzCOmwLnZsSOwP/3RhPDZtqGLaq0HW5VH3a1sV
F6jyLZ1+pBLxR1gwX7p4Q0NhnCdHj/royH13pHoQ3nsyXIZ7QpohcT7TzZS6OWxn
sZ4T9lyAiGW0w3Bwe1OUHPY0El/5k68x31OqRybkXzoKzhj50nC+4OukxnRsijzh
klQWEt0J8a6rn69GpeXJttavhyCDFYo91WwpSrq7+V05DFPW5brZ8cVsfV7GM7qN
pT6YmZC6LIh8OLd3QFmtsD8kgdEQ5LUwI78nNBzok9u4dqPeVu7sQdR64ipY0ZuD
1bdTcFvBuet+D5E8tEjAncMRGdrO4DuJvtGLGYFfHx9OWI+OZ73KC9rgcue9AaRu
DkxA0Y8N1BMYVn2QGja4EoUDP8HmX0pwgxg7wnZJ+yGkAgOgqxziWZkhfB9nOAoc
Z0EUd3ANd7zFhjSuuZSpb9PV54iTwjzepcII3/QFqlsbA7pCXqfL0awX2L7Mk0Vz
KaYCJwjSaVGD/lB3DRa8byh4lzpt545tBPzcKoVr0ka4QejbSzk7pmxLSwy/bIum
IGG8TN9aZF8g0vIttnb5g5WqABxHQ8X01S3mW7HmvlbjtO+iYz4TH6U9HEVBT542
newXeBaWIDiKGRd2vP731DOPwyzwVUFWmpMUz9ttTqRsUmY0Lak9+hdmZUGbLaL2
a39r8pu/EMnqLQ1Jqt/D
=1OXF
-----END PGP SIGNATURE-----
Home |
Main Index |
Thread Index |
Old Index