site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com The ioctl is TIOCSETA. -- Terry I have no idea... :( Googling came up with this page: http://home.ipe.uni-stuttgart.de/cgi-bin/man/man2html?tty_ioctl+4 Thanks, Cem Karan -----Original Message----- From: Godfrey van der Linden [mailto:gvdl@me.com] Sent: Monday, April 27, 2009 2:18 PM To: Karan, Cem (Civ, ARL/CISD) Cc: darwin-dev@lists.apple.com Subject: Re: ioctl() TCSETS equivalent? What does TCSETS do? Godfrey On 27/04/2009, at 10:57, "Karan, Cem (Civ, ARL/CISD)" <CKaran@arl.army.mil > 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/gvdl%40mac.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/tlambert%40apple.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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. On Apr 27, 2009, at 11:25 AM, Karan, Cem (Civ, ARL/CISD) wrote: 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? This email sent to gvdl@mac.com This email sent to tlambert@apple.com This email sent to site_archiver@lists.apple.com