lkml.org 
[lkml]   [2006]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: CRTSCTS wrong in man tcsetattr
Date
From
In linux.kernel, you wrote:
> Man tcsetattr in gentoo implicitly states that after
> #include <termios.h>
> #include <unistd.h>
>
> CRTSCTS constant will be defined. This is however false:
> tty.c:38: error: `CRTSCTS' undeclared (first use in this function)
>
> CRTSCTS is defined in bits/termios.h and in asm/termbits.h The question
> is what is the correct state of affairs?
> 1) the manpage should say bits/termios.h instead of termios.h
> 2) the manpage should say asm/termbits.h instead of termios.h
> 3) the termios.h should include bits/termios.h or asm/termbits.h
> 4) the manpage should not mention CRTSCTS at all
5) there is a bug in your installation

Works for me in Debian testing

cat <<'EOF' > z.c
#include <termios.h>
#include <unistd.h>
#include <stdio.h>

int main(void)
{
printf("0x%08X", CRTSCTS);
return 0;
}
EOF
gcc -Wall z.c -o z
./z

Gives

0x80000000

--
Nick Craig-Wood <nick@craig-wood.com> -- http://www.craig-wood.com/nick
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-04-12 16:22    [W:0.032 / U:0.656 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site