repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git]
/
clang-tools-extra
/
docs
/
clang-tidy
/
checks
/
android
/
cloexec-fopen.rst
blob
0552969848960542b5815d91e2bd6d65faa546b2
1
.. title:: clang-tidy - android-cloexec-fopen
2
3
android-cloexec-fopen
4
=====================
5
6
``fopen()`` should include ``e`` in their mode string; so ``re`` would be
7
valid. This is equivalent to having set ``FD_CLOEXEC on`` that descriptor.
8
9
Examples:
10
11
.. code-block:: c++
12
13
fopen("fn", "r");
14
15
// becomes
16
17
fopen("fn", "re");
18