Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

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
Task Type Bug Report
Category Kernel
Status Closed
Assigned To No-one
Architecture All
Severity High
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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.

Loading...