• 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: /dev/cu.* vs /dev/tty.* ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: /dev/cu.* vs /dev/tty.* ?


  • Subject: Re: /dev/cu.* vs /dev/tty.* ?
  • From: "Justin C. Walker" <email@hidden>
  • Date: Thu, 15 Jun 2006 12:36:05 -0700


On Jun 15, 2006, at 12:26 , Andre-John Mas wrote:

Hi,

I am using the Java Communications API, implemented at rxtx.org and whe I call the API it lists both the /dev/cu and /dev/tty devices. I am not sure that both need to be listed, especially if this is presented to the user. Some people feel both should be listed, others like myself don't think so.

I hoping someone who is more familiar with the inner workings can tell me what the difference is between the two, and more specifically which one a serial communication tool should use.

Typically, the tty* and cu* are different versions of the same "physical" thing: the tty's are for incoming (to the system) calls; the cu's are for outgoing (from the system) calls ("cu" == "call unix"; don't ask :-}). You can match them with their major/minor pairs, noting that the cu devices have odd minors, while the tty devices have even minors ('OR'ing a low-order bits gets you the "cu" for a corresponding "tty").


I don't know that this helps you much :-}

Cheers,

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Absorption of Federal Funds
--------
Some people have a mental horizon of radius zero, and
call it their point of view.
  -- David Hilbert
--------


_______________________________________________ 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
References: 
 >/dev/cu.* vs /dev/tty.* ? (From: Andre-John Mas <email@hidden>)

  • Prev by Date: /dev/cu.* vs /dev/tty.* ?
  • Next by Date: DirectoryServices-258: dsDataListInsertAfter() logic bug
  • Previous by thread: /dev/cu.* vs /dev/tty.* ?
  • Next by thread: DirectoryServices-258: dsDataListInsertAfter() logic bug
  • Index(es):
    • Date
    • Thread