This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
conversion of cyg_io_handle_t type to filedescriptor of type integer
- To: ecos-discuss at sources dot redhat dot com
- Subject: [ECOS] conversion of cyg_io_handle_t type to filedescriptor of type integer
- From: Thiagarajan Rajasekaran <rajt at connecttel dot com>
- Date: Tue, 17 Jul 2001 12:45:08 -0500
Hi,
I'm trying to use the ioctl(int fd, u_long cmd, void *data) defined in
ecos/packages/net/tcpip/src/lib/ioctl.c for my task. This function needs
filedescriptor fd as one of the parameters. In ECOS when you open a
serial device it gives you a handle of type cyg_io_handle_t. Is there a
way to get the filedescriptor from cyg_io_handle_t or I should write my
own version of ioctl()?. Please reply to me asap.
thanks,
Raj
--
****************************************************************
* Thiagarajan Rajasekaran *
* ConnectTel, Inc. Austin, Texas. *
* Phone : 512-338-1111 Ext-104 Fax : 512-918-0449 *
* Email : rajt@connecttel.com *
* Site : http://www.connecttel.com *
****************************************************************