From 8b17c2a49f8421f7d931eef7fbf2ea1bb2b04950 Mon Sep 17 00:00:00 2001 From: Stefan Richter Date: Sun, 11 Jan 2009 22:39:17 +0100 Subject: [PATCH] Set errno = ENOSYS in unimplemented functions Most of them do this already, only a few missed it. Signed-off-by: Stefan Richter Signed-off-by: Dan Dennedy --- src/fw.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/fw.c b/src/fw.c index dd2a968..8cca403 100644 --- a/src/fw.c +++ b/src/fw.c @@ -1105,6 +1105,7 @@ fw_start_async_stream(fw_handle_t handle, unsigned int channel, unsigned long rawtag) { /* FIXME: implement this? */ + errno = ENOSYS; return -1; } @@ -1116,6 +1117,7 @@ fw_start_async_send(fw_handle_t handle, quadlet_t *data, unsigned long rawtag) { /* FIXME: implement this? */ + errno = ENOSYS; return -1; } @@ -1234,6 +1236,7 @@ fw_async_stream(fw_handle_t handle, unsigned int channel, size_t length, quadlet_t *data) { /* FIXME: implement this? */ + errno = ENOSYS; return -1; } @@ -1244,6 +1247,7 @@ fw_async_send(fw_handle_t handle, quadlet_t *data) { /* FIXME: implement this? */ + errno = ENOSYS; return -1; } @@ -1285,6 +1289,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; }