FS#10731 - Bad macro in bits/termios.h
Attached to Project:
Arch Linux
Opened by SKOCDOPOLE Tomas (skocdopolet) - Sunday, 22 June 2008, 19:37 GMT
Last edited by Jan de Groot (JGC) - Sunday, 22 June 2008, 19:43 GMT
Opened by SKOCDOPOLE Tomas (skocdopolet) - Sunday, 22 June 2008, 19:37 GMT
Last edited by Jan de Groot (JGC) - Sunday, 22 June 2008, 19:43 GMT
|
Details
Hi,
in file /usr/include/bits/termios.h is defined this macro: #define B0 0000000 ... #define B300 0000007 #define B600 0000010 ... I have small program: #include <termios.h> ... printf("%i", B300); // program print 0000007 printf("%i", B600); // program print 0000008 instead of 0000010 defined in bits/termios.h |
This task depends upon
Closed by Jan de Groot (JGC)
Sunday, 22 June 2008, 19:43 GMT
Reason for closing: Not a bug
Additional comments about closing: These constants are octal numbers, as they're prepended with one or more zeroes (when opening the file with vim, the syntax highlighting will also make that clear).
010 is the octal notation for the integer 8.
Sunday, 22 June 2008, 19:43 GMT
Reason for closing: Not a bug
Additional comments about closing: These constants are octal numbers, as they're prepended with one or more zeroes (when opening the file with vim, the syntax highlighting will also make that clear).
010 is the octal notation for the integer 8.