Forum > macOS / Mac OS X
mkstemps method
(1/1)
comdora:
Hi,
Does anyone know if the mkstemps function is implemented in Lazarus/freepascal?
https://man7.org/linux/man-pages/man3/mkstemps.3.html
Thanks in advance
Bojan
Leledumbo:
Searching FPC source code:
--- Code: Bash [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---$ grep -ir mkstemp *packages/gtk2/src/glib/gfileutils.inc:function g_mkstemp(tmpl:Pchar):longint;cdecl;external gliblib name 'g_mkstemp';packages/libc/src/stdlibh.inc:function mkstemp(__template:Pchar):longint;cdecl;external clib name 'mkstemp';packages/libc/src/stdlibh.inc:function mkstemp64(__template:Pchar):longint;cdecl;external clib name 'mkstemp64';rtl/netwlibc/libc.imp: mkstemp,rtl/netwlibc/libc.pp:function mkstemp(_para1:Pchar):longint;cdecl;external libc_nlm name 'mkstemp';$ grep -ir stdlibh.inc *packages/libc/fpmake.pp: AddInclude('stdlibh.inc');packages/libc/src/libc.pp:{$i stdlibh.inc} // stdlib.h seems defined in libc unit. It's a deprecated unit, though. You might want to use the native Pascal cross platform SysUtils.GetTempDir and SysUtils.GetTempFileName, although for setting the permission and ownership you will still need *nix specific calls to BaseUnix.fpChown and BaseUnix.fpChmod.
Navigation
[0] Message Index