From c673c9d3035548dfba771d6fd3efdba3d84d5fa7 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Wed, 11 Dec 2019 10:41:41 -0500 Subject: [PATCH] mescc: Mes C Library: Add ioctl3 stub. --- lib/stub/ioctl.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/stub/ioctl.c b/lib/stub/ioctl.c index 06699aeb..1d6e63b7 100644 --- a/lib/stub/ioctl.c +++ b/lib/stub/ioctl.c @@ -32,3 +32,14 @@ ioctl (int filedes, unsigned long command, ...) errno = 0; return 0; } + +int +ioctl3 (int filedes, unsigned long command, long data) +{ + static int stub = 0; + if (__mes_debug () && !stub) + eputs ("ioctl3 stub\n"); + stub = 1; + errno = 0; + return 0; +}