mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-18 18:39:11 +08:00
implement _sys_tmpnam()
This commit is contained in:
parent
652d98bca6
commit
bb35f07bf2
@ -12,6 +12,7 @@
|
||||
* 2020-08-05 Meco Man fixed _sys_flen() compiling-warning when
|
||||
* RT_USING_DFS is not defined
|
||||
* 2020-02-13 Meco Man re-implement exit() and abort()
|
||||
* 2020-02-14 Meco Man implement _sys_tmpnam()
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
@ -234,7 +235,8 @@ int _sys_seek(FILEHANDLE fh, long pos)
|
||||
*/
|
||||
int _sys_tmpnam(char *name, int fileno, unsigned maxlength)
|
||||
{
|
||||
return -1;
|
||||
rt_snprintf(name, maxlength, "tem%03d", fileno);
|
||||
return 1;
|
||||
}
|
||||
|
||||
char *_sys_command_string(char *cmd, int len)
|
Loading…
x
Reference in New Issue
Block a user