Skip to contentSkip to conversation

ioctl command FIONREAD

DISCUSSION Bubulac Tatiana 3 participants 3 messages May 20, 2002

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 2 lines · Bubulac Tatiana

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.

Quoted 1 line

In Linux this command does not exist.

Yes it does.

Signature · 1 line
Glynn Clements <[email protected]>
#2 lore raw
In reply to Bubulac Tatiana
Quoted 3 lines · Bubulac Tatiana

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

Signature · 1 line
http://gnewtellium.sourceforge.net			MP3 is not a crime.