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
[OpenACC] Implement 'collapse' for combined constructs.
[llvm-project.git]
/
clang-tools-extra
/
docs
/
clang-tidy
/
checks
/
android
/
cloexec-creat.rst
blob
d2892a0fdc5608cf1c1bf7a94d7e27b90e654f27
1
.. title:: clang-tidy - android-cloexec-creat
2
3
android-cloexec-creat
4
=====================
5
6
The usage of ``creat()`` is not recommended, it's better to use ``open()``.
7
8
Examples:
9
10
.. code-block:: c++
11
12
int fd = creat(path, mode);
13
14
// becomes
15
16
int fd = open(path, O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC, mode);