• 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: CFFileDescriptor and stdin
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFFileDescriptor and stdin


  • Subject: Re: CFFileDescriptor and stdin
  • From: Nicolas Roussel <email@hidden>
  • Date: Sat, 6 Sep 2008 22:37:48 +0200

In general, you should avoid multiple layers of buffering. I would suggest turning buffering off at the stdio layer using setbuf(3).

I agree. But I'm not using stdio. I shouldn't have said "stdin"...

I'm simply passing 0 as the file descriptor parameter to CFFileDescriptorCreate. And I'm not using any Carbon or Coca stuff for the moment (check the code in my first message).

It seems others have had problems try to detect user input on the terminal with kqueue:

	http://lists.apple.com/archives/Unix-porting/2006/Jan/msg00072.html
	http://lists.apple.com/archives/Unix-porting/2006/Jan/msg00084.html

Could this be related to my problem with the CFFileDescriptor?

Nicolas
_______________________________________________
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: CFFileDescriptor and stdin
      • From: Terry Lambert <email@hidden>
References: 
 >CFFileDescriptor and stdin (From: Nicolas Roussel <email@hidden>)
 >Re: CFFileDescriptor and stdin (From: Terry Lambert <email@hidden>)

  • Prev by Date: Re: CFFileDescriptor and stdin
  • Next by Date: multiple symbols of select(), do they matter?
  • Previous by thread: Re: CFFileDescriptor and stdin
  • Next by thread: Re: CFFileDescriptor and stdin
  • Index(es):
    • Date
    • Thread