[fpc-pascal] GetTempFileName in Linux
Michael Van Canneyt
michael at freepascal.org
Fri Oct 8 10:03:52 CEST 2010
On Fri, 8 Oct 2010, Sven Barth wrote:
> Am 07.10.2010 20:02, schrieb Jonathan:
>> On Thu, 07 Oct 2010 11:01:44 +0200
>> Sven Barth<pascaldragon at googlemail.com> wrote:
>>
>>> Btw: What are Tomoyo and Apparmour (I can imagine what the second one
>>> is, but I don't know what functionality they provide)?
>>
>> http://tomoyo.sourceforge.jp/
>> https://wiki.ubuntu.com/AppArmor
>
> Thanks.
>
> So when changing/improving GetTempFileName we could also try to make it
> compatible to such applications by creating a directory in TEMP for the
> temporary file that contains the appname and the user.
The current implementation does just that. It uses GetTempDir which checks
TEMP and TMP (in that order), and if neither is set, uses /tmp.
Note also that you can hook in the temporary filename mechanism by setting
OnGetTempFile and doing it all yourself.
Michael.
More information about the fpc-pascal
mailing list