linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ioctl command FIONREAD
@ 2002-05-20  8:41 Bubulac Tatiana
  2002-05-20 12:59 ` Glynn Clements
  2002-05-20 18:01 ` Elias Athanasopoulos
  0 siblings, 2 replies; 4+ messages in thread
From: Bubulac Tatiana @ 2002-05-20  8:41 UTC (permalink / raw)
  To: linux-c-programming

Hello,


Does anyone know what FIONREAD ioctl command does means? I use SCO Open
Server 5.05.
In Linux this command does not exist.

TIA
Bubulac Angela



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ioctl command FIONREAD
@ 2002-05-20  8:43 hbajaj
  0 siblings, 0 replies; 4+ messages in thread
From: hbajaj @ 2002-05-20  8:43 UTC (permalink / raw)
  To: Bubulac Tatiana; +Cc: linux-c-programming



Hiii

FIONREAD returns in arg the number of bytes available to read from the file
descriptor.

for further refrence and how to use it you can check the book
Unix for Network Programming By Richard Stevens
ioctl System Call   -> Page 323

Rgds
Harvinder Bajaj




Bubulac Tatiana <bubulac@unidec.ro> on 05/20/2002 02:11:12 PM

To:   linux-c-programming@vger.kernel.org
cc:    (bcc: Harvinder Bajaj/HSS)

Subject:  ioctl command FIONREAD




Hello,


Does anyone know what FIONREAD ioctl command does means? I use SCO Open
Server 5.05.
In Linux this command does not exist.

TIA
Bubulac Angela


-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming"
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ioctl command FIONREAD
  2002-05-20  8:41 ioctl command FIONREAD Bubulac Tatiana
@ 2002-05-20 12:59 ` Glynn Clements
  2002-05-20 18:01 ` Elias Athanasopoulos
  1 sibling, 0 replies; 4+ messages in thread
From: Glynn Clements @ 2002-05-20 12:59 UTC (permalink / raw)
  To: Bubulac Tatiana; +Cc: linux-c-programming


Bubulac Tatiana wrote:

> Does anyone know what FIONREAD ioctl command does means? I use SCO Open
> Server 5.05.

As Harvinder says, it reports the number of bytes available for
reading from a descriptor.

> In Linux this command does not exist.

Yes it does.

-- 
Glynn Clements <glynn.clements@virgin.net>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ioctl command FIONREAD
  2002-05-20  8:41 ioctl command FIONREAD Bubulac Tatiana
  2002-05-20 12:59 ` Glynn Clements
@ 2002-05-20 18:01 ` Elias Athanasopoulos
  1 sibling, 0 replies; 4+ messages in thread
From: Elias Athanasopoulos @ 2002-05-20 18:01 UTC (permalink / raw)
  To: Bubulac Tatiana; +Cc: linux-c-programming

On Mon, May 20, 2002 at 11:41:12AM +0300, Bubulac Tatiana wrote:

> Does anyone know what FIONREAD ioctl command does means? I use SCO Open
> Server 5.05.
> In Linux this command does not exist.

You have already got the answer. Just to add that FIONREAD applies only to
non-blocking I/O.

Elias

-- 
http://gnewtellium.sourceforge.net			MP3 is not a crime.	

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-05-20 18:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-20  8:41 ioctl command FIONREAD Bubulac Tatiana
2002-05-20 12:59 ` Glynn Clements
2002-05-20 18:01 ` Elias Athanasopoulos
  -- strict thread matches above, loose matches on Subject: below --
2002-05-20  8:43 hbajaj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).