1994 1995 1996 1997 1998 1999 2000 <2001> 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 <2001> 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | drvSerial/ioctl question |
From: | Pedro Gigoux <[email protected]> |
To: | EPICS Tech-Talk <[email protected]> |
Date: | Tue, 18 Dec 2001 18:51:06 -0300 |
I'm currently using drvSerial in my device support routine to talk to a serial port. Because of hardware limitations I need to change the speed of the port. drvSerial provides a routine (drvSerialGetFile) that returns the file pointer (FILE *) for ioctl manipulation. The problem is that ioctl expects file descriptor (int). Does anyone know how to get the file descriptor from the file pointer? Thank you, Pedro.