• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ioctl() TCSETS equivalent?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • RE: ioctl() TCSETS equivalent?
      • From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>
References: 
 >ioctl() TCSETS equivalent? (From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>)
 >RE: ioctl() TCSETS equivalent? (From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>)

  • Prev by Date: Re: Determining architecture type at run time
  • Next by Date: RE: ioctl() TCSETS equivalent?
  • Previous by thread: RE: ioctl() TCSETS equivalent?
  • Next by thread: RE: ioctl() TCSETS equivalent?
  • Index(es):
    • Date
    • Thread