Sign in
third-party-mirror
/
systemd
/
2398d87694e8af48e92ff8fb5f9cf273f706fb00
/
.
/
coccinelle
/
dup-fcntl.cocci
blob: 8b133b3a24f6547062dd1c0d803dace33c94cd6a [
file
] [
log
] [
blame
]
@@
/* We want to stick with dup() in test-fd-util.c */
position p
:
script
:
python
()
{
p
[
0
].
file
!=
"src/test/test-fd-util.c"
};
expression fd
;
@@
-
dup@p
(
fd
)
+
fcntl
(
fd
,
F_DUPFD
,
3
)