This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Comment wrong in libc/include/sys/wait.h ?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]