From 9d2e5a6e3a729973f7f6d90dbc8b290ee325dabf Mon Sep 17 00:00:00 2001 From: turbocat Date: Mon, 6 Sep 2021 20:24:26 +0000 Subject: [PATCH] libc.obj: - Extra zero for use with gcc git-svn-id: svn://kolibrios.org@9179 a494cfbc-eb01-0410-851d-a64ba20cac60 --- .../ktcc/trunk/libc.obj/include/sys/ksys.h | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/programs/develop/ktcc/trunk/libc.obj/include/sys/ksys.h b/programs/develop/ktcc/trunk/libc.obj/include/sys/ksys.h index 2b33facc02..82bfb5dd77 100644 --- a/programs/develop/ktcc/trunk/libc.obj/include/sys/ksys.h +++ b/programs/develop/ktcc/trunk/libc.obj/include/sys/ksys.h @@ -1319,9 +1319,11 @@ int _ksys_file_read_file(const char *name, unsigned long long offset, unsigned s static inline int _ksys_file_create(const char* name){ ksys70_t k; - k.p00 = 2; - k.p12 = 0; - k.p21 = name; + k.p00 = 2; + k.p04dw = 0; + k.p08dw = 0; + k.p12 = 0; + k.p21 = name; return _ksys_work_files(&k); } @@ -1354,10 +1356,13 @@ static inline int _ksys_file_get_info(const char *name, ksys_bdfe_t *bdfe) { ksys70_t k; - k.p00 = 5; - k.bdfe = bdfe; - k.p20 = 0; - k.p21 = name; + k.p00 = 5; + k.p04dw = 0; + k.p08dw = 0; + k.p12 = 0; + k.bdfe = bdfe; + k.p20 = 0; + k.p21 = name; return _ksys_work_files(&k); }