Re: little program, big problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



A silly thought, but is /dev/video a directory
and /dev/video0 the device you want?


Ottavio Campana wrote:

On Thu, Mar 27, 2003 at 02:12:54PM -0700, Steve Miller wrote:
MAP_SHARED requires the file to be writeable, you've opened it as read only.

changing the source to:

fd=open("/dev/video",O_RDWR);

doesn't make it works. I always have got the same problem....

When I run it I get "mmap:  Invalid argument" and then segfault. What is
invalid for mmap?

Thank you.






[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux