kolibrios-fun/drivers/ddk/io/ssize.c
turbocat be90c91c89 ddk:
- Fixed Makefile
- Added FS_Service instead of calling system call 70

git-svn-id: svn://kolibrios.org@9057 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-07-12 22:49:51 +00:00

14 lines
249 B
C

#include <syscall.h>
int set_file_size(const char *path, unsigned size)
{
ksys70_t k;
int err;
k.p00 = 4;
k.p04dw = size;
k.p08dw = 0;
k.p20 = 0;
k.p21 = path;
return FS_Service(&k, &err);
}