From ec4217b8fa3e19e03c9994b90cc4abb38d1e06e5 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Tue, 23 Dec 2014 00:55:43 +0200 Subject: [PATCH] fcntl: Implement fcntl/ioctl variants which take memory buffer as arg. --- fcntl/fcntl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fcntl/fcntl.py b/fcntl/fcntl.py index d76d181e..ed46ce3c 100644 --- a/fcntl/fcntl.py +++ b/fcntl/fcntl.py @@ -14,11 +14,11 @@ def fcntl(fd, op, arg): if type(arg) is int: return fcntl_l(fd, op, arg) else: - raise NotImplementedError + return fcntl_s(fd, op, arg) def ioctl(fd, op, arg): if type(arg) is int: return ioctl_l(fd, op, arg) else: - raise NotImplementedError + return ioctl_s(fd, op, arg)