diff --git a/fcntl/fcntl.py b/fcntl/fcntl.py index ed46ce3c..152f5e3a 100644 --- a/fcntl/fcntl.py +++ b/fcntl/fcntl.py @@ -10,14 +10,14 @@ ioctl_l = libc.func("i", "ioctl", "iil") ioctl_s = libc.func("i", "ioctl", "iip") -def fcntl(fd, op, arg): +def fcntl(fd, op, arg=0): if type(arg) is int: return fcntl_l(fd, op, arg) else: return fcntl_s(fd, op, arg) -def ioctl(fd, op, arg): +def ioctl(fd, op, arg=0): if type(arg) is int: return ioctl_l(fd, op, arg) else: