summaryrefslogtreecommitdiffstats
path: root/coccinelle/dup-fcntl.cocci
blob: ef1356428223aaf2d8378cd86f0dc2305613214b (plain)
1
2
3
4
5
@@
expression fd;
@@
- dup(fd)
+ fcntl(fd, F_DUPFD, 3)