2021-07-13 00:49:51 +02:00
|
|
|
#include <syscall.h>
|
2010-02-12 21:11:35 +01:00
|
|
|
|
|
|
|
int write_file(const char *path,const void *buff,
|
|
|
|
unsigned offset,unsigned count,unsigned *writes)
|
|
|
|
{
|
2021-07-13 00:49:51 +02:00
|
|
|
ksys70_t k;
|
|
|
|
k.p00 = 3;
|
|
|
|
k.p04 = offset;
|
|
|
|
k.p12 = count;
|
|
|
|
k.cbuf16 = buff;
|
|
|
|
k.p20 = 0;
|
|
|
|
k.p21 = path;
|
2021-09-10 20:50:14 +02:00
|
|
|
return FS_Service(&k, writes);
|
2021-07-13 00:49:51 +02:00
|
|
|
}
|