You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.4 KiB
60 lines
1.4 KiB
Date: Sun, 11 Jan 2009 22:39:17 +0100 (CET)
|
|
From: Stefan Richter <stefanr@s5r6.in-berlin.de>
|
|
Subject: [PATCH libraw1394 fix] Set errno = ENOSYS in unimplemented functions
|
|
To: Dan Dennedy <dan@dennedy.org>
|
|
Cc: linux1394-devel@lists.sourceforge.net
|
|
|
|
Most of them do this already, only a few missed it.
|
|
|
|
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
|
|
---
|
|
src/fw.c | 5 +++++
|
|
1 files changed, 5 insertions(+), 0 deletions(-)
|
|
|
|
diff --git a/src/fw.c b/src/fw.c
|
|
index 3f5d806..ba3a807 100644
|
|
--- a/src/fw.c
|
|
+++ b/src/fw.c
|
|
@@ -1104,6 +1104,7 @@ fw_start_async_stream(fw_handle_t handle, unsigned int channel,
|
|
unsigned long rawtag)
|
|
{
|
|
/* FIXME: implement this? */
|
|
+ errno = ENOSYS;
|
|
return -1;
|
|
}
|
|
|
|
@@ -1115,6 +1116,7 @@ fw_start_async_send(fw_handle_t handle,
|
|
quadlet_t *data, unsigned long rawtag)
|
|
{
|
|
/* FIXME: implement this? */
|
|
+ errno = ENOSYS;
|
|
return -1;
|
|
}
|
|
|
|
@@ -1233,6 +1235,7 @@ fw_async_stream(fw_handle_t handle, unsigned int channel,
|
|
size_t length, quadlet_t *data)
|
|
{
|
|
/* FIXME: implement this? */
|
|
+ errno = ENOSYS;
|
|
return -1;
|
|
}
|
|
|
|
@@ -1243,6 +1246,7 @@ fw_async_send(fw_handle_t handle,
|
|
quadlet_t *data)
|
|
{
|
|
/* FIXME: implement this? */
|
|
+ errno = ENOSYS;
|
|
return -1;
|
|
}
|
|
|
|
@@ -1284,6 +1288,7 @@ int
|
|
fw_update_config_rom(fw_handle_t handle, const quadlet_t *new_rom,
|
|
size_t size, unsigned char rom_version)
|
|
{
|
|
+ errno = ENOSYS;
|
|
return -1;
|
|
}
|
|
|
|
--
|
|
1.6.0.6
|