From: Matt Clay <mattclay@hevanet.com>
To: Allen Chan <allen@home0.com>
Cc: user-mode-linux-devel@lists.sourceforge.net,
Jeff Dike <jdike@addtoit.com>,
260111@bugs.debian.org
Subject: [uml-devel] Re: Bug#260111: user-mode-linux: upgrade hangs at "NET4: Linux TCP/IP 1.0 for NET4.0 "
Date: Mon, 02 Aug 2004 00:33:43 -0700 [thread overview]
Message-ID: <410DEE57.9000503@hevanet.com> (raw)
In-Reply-To: <200408020115.47228.allen@home0.com>
Allen Chan wrote:
> After a little poking around, it appears that chan_kern.c and
> chan_user.c have very different interpretations of what struct
> termios should be . On my debian unstable system,
Now that you point it out, I see the same thing on my Slackware 10 system.
Here is the definition in my /usr/include/bits/termios.h
typedef unsigned char cc_t;
typedef unsigned int speed_t;
typedef unsigned int tcflag_t;
#define NCCS 32
struct termios
{
tcflag_t c_iflag; /* input mode flags */
tcflag_t c_oflag; /* output mode flags */
tcflag_t c_cflag; /* control mode flags */
tcflag_t c_lflag; /* local mode flags */
cc_t c_line; /* line discipline */
cc_t c_cc[NCCS]; /* control characters */
speed_t c_ispeed; /* input speed */
speed_t c_ospeed; /* output speed */
};
And the one from um/include/asm/arch/termbits.h
typedef unsigned char cc_t;
typedef unsigned int speed_t;
typedef unsigned int tcflag_t;
#define NCCS 19
struct termios {
tcflag_t c_iflag; /* input mode flags */
tcflag_t c_oflag; /* output mode flags */
tcflag_t c_cflag; /* control mode flags */
tcflag_t c_lflag; /* local mode flags */
cc_t c_line; /* line discipline */
cc_t c_cc[NCCS]; /* control characters */
};
This would certainly explain the random behavior I've been seeing with calls
to tcsetattr failing sometimes.
- Matt
-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2004-08-02 7:33 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-28 7:15 [uml-devel] Re: Bug#260111: user-mode-linux: upgrade hangs at "NET4: Linux TCP/IP 1.0 for NET4.0 " Allen Chan
2004-07-28 17:22 ` Jeff Dike
2004-07-29 18:30 ` Allen Chan
2004-07-30 2:34 ` Allen Chan
2004-07-30 17:23 ` Jeff Dike
2004-07-30 17:19 ` Matt Clay
2004-07-30 17:43 ` Allen Chan
2004-07-30 18:49 ` Jeff Dike
2004-07-30 21:44 ` Allen Chan
2004-07-31 5:08 ` Jeff Dike
2004-07-31 7:59 ` Matt Clay
2004-08-01 3:28 ` Matt Clay
2004-08-01 3:46 ` Matt Clay
2004-08-01 15:52 ` Jeff Dike
2004-08-01 20:10 ` Matt Clay
2004-08-02 5:15 ` Allen Chan
2004-08-02 7:33 ` Matt Clay [this message]
2004-08-02 8:14 ` Matt Clay
2004-08-02 19:19 ` Jeff Dike
2004-08-03 6:06 ` Matt Clay
2004-07-30 23:51 ` Daniel Heemann
2004-07-31 0:30 ` Nicholas Lee
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=410DEE57.9000503@hevanet.com \
--to=mattclay@hevanet.com \
--cc=260111@bugs.debian.org \
--cc=allen@home0.com \
--cc=jdike@addtoit.com \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.