• 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: Diff. between ioctl and fcntl
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Diff. between ioctl and fcntl


  • Subject: Re: Diff. between ioctl and fcntl
  • From: Mike Cohen <email@hidden>
  • Date: Wed, 21 Aug 2002 11:20:04 -0400

At 5:56 PM +0530 8/21/02, Pranav Kumar Sahu wrote:
I have a blocking socket. When i am trying to make it nonblocking by
using ioctl it works. but when i am trying with

fcntl(socket,F_SETFD, O_NONBLOCK);

It does not make it nonblocking. Is here something i am doing wrong
? Really want to know diff. between these function. Can anyone give a brief
description bout it.


They're very different functions. ioctl is for manipulating the device or file itself; fcntl is for manipulating the file descriptor, read/write mode, file locking, etc. In the terminal you can type 'man ioctl' or 'man fcntl' for information on the usage of those functions.
--
[ Mike Cohen | http://www.macmegasite.com/ ]
[ email@hidden | http://www.worldbeatplanet.com/ ]
[ email@hidden | http://www.mc-development.com/ ]

You can blow out a candle, but you can't blow out a fire. Once the flame
begins to catch, the wind will blow it higher. - Peter Gabriel, "Biko"
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

References: 
 >Diff. between ioctl and fcntl (From: Pranav Kumar Sahu <email@hidden>)

  • Prev by Date: Diff. between ioctl and fcntl
  • Next by Date: OSX PPPoE Debug
  • Previous by thread: Diff. between ioctl and fcntl
  • Next by thread: OSX PPPoE Debug
  • Index(es):
    • Date
    • Thread