From: Gregor Jasny <jasny@vidsoft.de>
To: Hans de Goede <j.w.r.degoede@hhs.nl>
Cc: video4linux-list@redhat.com, v4l2 library <v4l2-library@linuxtv.org>
Subject: Re: Announcing libv4l 0.3.1 aka "the vlc release"
Date: Thu, 3 Jul 2008 22:36:23 +0200 [thread overview]
Message-ID: <20080703203623.GI18818@vidsoft.de> (raw)
In-Reply-To: <4867F380.1040803@hhs.nl>
Hi,
I've just included libv4l2 in our app. After after a short debugging
session I noticed the following:
In the man page the ioctl prototype is defined as
int ioctl(int d, int request, ...). To catch the EINTR case I wrote a
wrapper function:
int xioctl (int fd, int request, void *arg)
But as long as the request argument is int instead of unsigned long, the
request gets sign extended:
xioctl (fd, VIDIOC_TRY_FMT, &fmt)
(gdb) p/x request
$2 = 0xc0d05640
int v4l2_ioctl (int fd, unsigned long int request, ...);
(gdb) p/x request
$3 = 0xffffffffc0d05640
Maybe you should mention this "issue" in the FAQ or documentaion.
Cheers,
Gregor
PS: Should I submit the sar-constraint patch to Thierry myself?
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
next prev parent reply other threads:[~2008-07-03 20:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-29 20:41 Announcing libv4l 0.3.1 aka "the vlc release" Hans de Goede
2008-06-29 21:03 ` Antoine Cellerier
2008-06-29 21:20 ` Hans de Goede
2008-06-30 9:39 ` Gregor Jasny
2008-07-03 20:36 ` Gregor Jasny [this message]
2008-07-07 22:00 ` Hans de Goede
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080703203623.GI18818@vidsoft.de \
--to=jasny@vidsoft.de \
--cc=j.w.r.degoede@hhs.nl \
--cc=v4l2-library@linuxtv.org \
--cc=video4linux-list@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.