Skip to content

Commit 7771290

Browse files
author
Paul Sokolovsky
committed
fcntl: fcntl/ioctl arg defaults to 0 per CPython.
1 parent ec4217b commit 7771290

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fcntl/fcntl.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
ioctl_s = libc.func("i", "ioctl", "iip")
1111

1212

13-
def fcntl(fd, op, arg):
13+
def fcntl(fd, op, arg=0):
1414
if type(arg) is int:
1515
return fcntl_l(fd, op, arg)
1616
else:
1717
return fcntl_s(fd, op, arg)
1818

1919

20-
def ioctl(fd, op, arg):
20+
def ioctl(fd, op, arg=0):
2121
if type(arg) is int:
2222
return ioctl_l(fd, op, arg)
2323
else:

0 commit comments

Comments
 (0)