mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
7c93eabffe
`mkstemps` generates a unique temporary file name from a pattern like `prefixXXXXXXsuffix` where `prefix` and `suffix` can be any string with only characters that are valid in a filename. The second parameter is the length of the suffix. `mkstemp` is `mkstemps` with suffix length 0, so to avoid code duplication it calls `mkstemps`. It is unlikely this has any significant performance impact on SerenityOS. `generate_unique_filename` now takes the suffix length as a `size_t`. The original behavior of this function is preserved when specifying a suffix length of 0. All original uses of this function have been adapted. `mkstemps()` was added because it is required by version 4.6.3 of the ccache port. |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
TestAbort.cpp | ||
TestAssert.cpp | ||
TestCType.cpp | ||
TestIo.cpp | ||
TestLibCDirEnt.cpp | ||
TestLibCExec.cpp | ||
TestLibCInodeWatcher.cpp | ||
TestLibCMkTemp.cpp | ||
TestLibCSetjmp.cpp | ||
TestLibCString.cpp | ||
TestLibCTime.cpp | ||
TestMalloc.cpp | ||
TestMath.cpp | ||
TestMemalign.cpp | ||
TestMemmem.cpp | ||
TestMkDir.cpp | ||
TestPthreadCancel.cpp | ||
TestPthreadCleanup.cpp | ||
TestPthreadRWLocks.cpp | ||
TestPthreadSpinLocks.cpp | ||
TestQsort.cpp | ||
TestRaise.cpp | ||
TestRealpath.cpp | ||
TestScanf.cpp | ||
TestSearch.cpp | ||
TestSnprintf.cpp | ||
TestStackSmash.cpp | ||
TestStdio.cpp | ||
TestStrlcpy.cpp | ||
TestStrtodAccuracy.cpp | ||
TestWchar.cpp | ||
TestWctype.cpp |