This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Comment wrong in libc/include/sys/wait.h ?
- From: Stefan Heinzmann <stefan_heinzmann at gmx dot de>
- To: newlib at sourceware dot org
- Date: Thu, 28 May 2015 14:22:39 +0200
- Subject: Comment wrong in libc/include/sys/wait.h ?
- Authentication-results: sourceware.org; auth=none
Hi all,
there's a comment in libc/include/sys/wait.h describing the format of a
status. According to this comment, there's 2 bytes of info and 2 bytes
of code in a status. The following macros, however, seem to work on the
assumption that info and code are a single byte each.
Do you agree that there's an inconsistency? Can I assume that the macros
are right and the comment is wrong?
Cheers
Stefan