HALF ECHO LEARN / REFERENCE COLLECTION

v262.2

coccinelle/dup-fcntl.cocci

Git blob: 434e48d51415a682abde9387932d8a660fc87a8b

Lines 1–8 of 8

/* SPDX-License-Identifier: LGPL-2.1-or-later */
/* We want to stick with dup() in test-fd-util.c */
@ depends on !(file in "src/test/test-fd-util.c") @
expression fd;
@@
- dup(fd)
+ fcntl(fd, F_DUPFD, 3)