Re: ioctl() TCSETS equivalent?
Re: ioctl() TCSETS equivalent?
- Subject: Re: ioctl() TCSETS equivalent?
- From: Terry Lambert <email@hidden>
- Date: Mon, 27 Apr 2009 12:40:23 -0700
The ioctl is TIOCSETA.
But you are better off using tcsetattr(), since that's the portable,
standards compliant way to do it:
<http://www.opengroup.org/onlinepubs/009695399/functions/
tcsetattr.html>
It'd be a good idea to pass the change back to the software
maintainers, since it will make their code more portable.
-- Terry
On Apr 27, 2009, at 11:25 AM, Karan, Cem (Civ, ARL/CISD) wrote:
I have no idea... :(
Googling came up with this page:
http://home.ipe.uni-stuttgart.de/cgi-bin/man/man2html?tty_ioctl+4
which suggests tcsetattr(fd, TCSANOW, argp) as an alternative, and
that
DOES exist on Darwin, but I don't know if they are truly equivalent
between the platforms... anyone out there know?
Thanks,
Cem Karan
-----Original Message-----
From: Godfrey van der Linden [mailto:email@hidden]
Sent: Monday, April 27, 2009 2:18 PM
To: Karan, Cem (Civ, ARL/CISD)
Cc: email@hidden
Subject: Re: ioctl() TCSETS equivalent?
What does TCSETS do?
Godfrey
On 27/04/2009, at 10:57, "Karan, Cem (Civ, ARL/CISD)"
<email@hidden > wrote:
Hi all, I'm in the process of porting some code from Linux to run
under Darwin. I have a call to ioctl() that is using TCSETS as its
request, but Darwin doesn't seem to have TCSETS as an available
option. So, what is the equivalent that I should be using?
Thanks,
Cem Karan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden