2021-07-13 00:49:51 +02:00
|
|
|
#include <syscall.h>
|
2010-02-12 21:11:35 +01:00
|
|
|
|
|
|
|
int set_file_size(const char *path, unsigned size)
|
|
|
|
{
|
2021-09-10 20:50:14 +02:00
|
|
|
ksys70_t k;
|
2021-07-13 00:49:51 +02:00
|
|
|
int err;
|
2021-09-10 20:50:14 +02:00
|
|
|
k.p00 = 4;
|
2021-07-13 00:49:51 +02:00
|
|
|
k.p04dw = size;
|
|
|
|
k.p08dw = 0;
|
|
|
|
k.p20 = 0;
|
|
|
|
k.p21 = path;
|
|
|
|
return FS_Service(&k, &err);
|
|
|
|
}
|