Re: STREAMS pipes - ioctl I_SENDFD



On Wed, 28 Mar 2007 21:30:38 +0200, Hallvard B Furuseth
<h.b.furuseth@xxxxxxxxxxx> wrote:

How do I send a file descriptor over a pipe with ioctl I_SENDFD?

Reading up on "STREAMS", I see the pipe must be a "STREAMS" file
descriptor, but I'm not sure what a "stream" is in that context -
is a pipe one, or must one do some magic to turn it into one?

The following program works on Solaris, but on Linux, OSF1 and HP
the ioctls say "Invalid argument" or "Not a typewriter":

Linux doesn't have STREAMS, which are the System V way of doing this
task. BSD defined a different mechanism using sockets and the
SCM_RIGHTS message type with snedmsg() and recvmsg(), and this method
is more or less standardised in POSIX.1-2001.

Cheers,

Michael
.



Relevant Pages

  • Re: 128k WMA problem solved on Wi-Fi radios
    ... then it'll actually be that Linux ... proprietary codecs. ... websites use browser sniffing to determine which browser is asking ... out or offered a stream of a different quality. ...
    (alt.radio.digital)
  • Re: RFC: Sony Playstation-3 the next IBM PC?
    ... >Blu-Ray to a Gnu/Linux box? ... >requiring HDMI for 1080p playback of Blu-Ray, ... Recording is already done in transport stream format. ... I do not know if there will be Linux drivers soon. ...
    (comp.sys.ibm.pc.hardware.chips)
  • Re: web camera or else ? 15-30 fps processing of camera videos.
    ... setup works fine with my digital camera working as a webcam - real £10 ... these days - for that I know for a fact that the Hauppauge USB WinTV ... thing works with Linux. ... today's standards 1.4ghz pc, using a 320x240 stream. ...
    (comp.lang.python)
  • Re: web camera or else ? 15-30 fps processing of camera videos.
    ... For Linux based system, xawt seems to be the solution: ... where one can get access to the stream from any device that has a video ... where one has to use the python programming language. ... > setup works fine with my digital camera working as a webcam - real ...
    (comp.lang.python)
  • Re: good wireless webcam for linux?
    ... >> streams the video in Windows Media format or some other linux unfriendly ... web server and then you don't have to worry about support", ... always build your own stream". ...
    (comp.os.linux.hardware)