← Back to team overview

desktop-packages team mailing list archive

[Bug 514965] Re: raw1394_start_read return values not as documented

 

There is no support on such deprecated version; that one has died long
time ago.

** Changed in: libraw1394 (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libraw1394 in Ubuntu.
https://bugs.launchpad.net/bugs/514965

Title:
  raw1394_start_read return values not as documented

Status in libraw1394 package in Ubuntu:
  Invalid

Bug description:
  In /usr/include/libraw1394/raw1394.h and /usr/share/doc/libraw1394-doc
  the raw1394_start_read function is defined to:

  'Returns: 0 on success or -1 on failure (sets errno)'

  however, this doesn't seem to be the whole story.

  It looks like if you are using the raw1394 module and it's opening that device then
  internally it uses a ieee1394_start_read function that returns the size of the write done on the
  device, not a 0/-1 return.
  If you use the firewire_core set of kernel modules then the library uses fw_start_read that via a send_request
  function calls an ioctl that looks like it does return a 0/-1 as defined.

  An added worry is that ieee1394_start_read returns the size of the write, that in itself is the size of raw1394_request
  whose size varies between 32 and 64bit hosts (5 32bit values, 4 64bit values - I think it's getting an alignment after the 32bits on a 64bit host); so actually the 'correct' return value varies between platforms. (although the variation in size is apparently correct looking at the kernel code - which has a gross hack to figure out which it should do).

  Dave

  ProblemType: Bug
  Architecture: amd64
  CheckboxSubmission: f2d10bd9f943a85b486a282e7840a570
  CheckboxSystem: 0531969bcfd4f03af7405c98dc94a948
  Date: Sun Jan 31 00:48:04 2010
  DistroRelease: Ubuntu 10.04
  InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
  Package: libraw1394-11 2.0.4-1ubuntu1
  ProcEnviron:
   PATH=(custom, user)
   LANG=en_GB.utf8
   SHELL=/bin/bash
  SourcePackage: libraw1394
  Uname: Linux 2.6.33-999-generic x86_64

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libraw1394/+bug/514965/+subscriptions