|Non-Confidential||PDF version||ARM DUI0471M|
|Home > What is Semihosting? > SYS_TMPNAM (0x0D)|
Returns a temporary name for a file identified by a system file identifier.
R1 contains a pointer to a three-word
A pointer to a buffer.
A target identifier for this filename. Its value must be an integer in the range 0 to 255.
Contains the length of the buffer. The length must
be at least the value of
L_tmpnam on the host
0 if the call is successful
–1 if an error occurs.
The buffer pointed to by
R1 contains the
filename, prefixed with a suitable directory name.
If you use the same target identifier again, the same filename is returned.
The returned string must be null-terminated.