Passed
Push — master ( 37fa88...c1bba9 )
by Guangyu
07:34 queued 13s
created

fcntl   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 5
eloc 11
dl 0
loc 18
rs 10
c 0
b 0
f 0

4 Functions

Rating   Name   Duplication   Size   Complexity  
A flock() 0 2 1
A lockf() 0 2 1
A ioctl() 0 5 2
A fcntl() 0 2 1
1
def fcntl(fd, op, arg=0):
2
    return 0
3
4
5
def ioctl(fd, op, arg=0, mutable_flag=True):
6
    if mutable_flag:
7
        return 0
8
    else:
9
        return ""
10
11
12
def flock(fd, op):
13
    return
14
15
16
def lockf(fd, operation, length=0, start=0, whence=0):
17
    return
18