From a78dbc7becc64d9c7395d2dcbfca9e9bc89a3fac Mon Sep 17 00:00:00 2001 From: "Magomed Kostoev (mkostoevr)" Date: Tue, 19 May 2020 12:05:54 +0000 Subject: [PATCH] Typo in dlfcn.c git-svn-id: svn://kolibrios.org@7950 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/develop/ktcc/trunk/libc/dlfcn/dlfcn.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/programs/develop/ktcc/trunk/libc/dlfcn/dlfcn.c b/programs/develop/ktcc/trunk/libc/dlfcn/dlfcn.c index e5b1768e01..c45969e0bf 100644 --- a/programs/develop/ktcc/trunk/libc/dlfcn/dlfcn.c +++ b/programs/develop/ktcc/trunk/libc/dlfcn/dlfcn.c @@ -14,9 +14,9 @@ typedef struct { char * libraryName; } KosImp; -static const char *__error; +static int stdcall dll_Load(KosImp *importTableEntry); -static int stdcall dll_Load(KosImp *importTable); +static const char *__error; static int stdcall dll_Load(KosImp *importTableEntry) { for (; importTableEntry->importNames; importTableEntry++) { @@ -38,7 +38,7 @@ static int stdcall dll_Load(KosImp *importTableEntry) { void *dlopen(const char *name, int mode) { KosExp *exports = NULL; - // загрузить либу сискаллом + // load library using syscall asm volatile ("int $0x40":"=a"(exports):"a"(68), "b"(19), "c"(name)); if (!exports) { char libPath[256] = "/sys/lib/"; @@ -50,7 +50,7 @@ void *dlopen(const char *name, int mode) { return NULL; } } - // Вызвать что-нибудь что начинается с "lib_" + // call anything starting with "lib_" for (KosExp *export = exports; export->name; export++) { if (!memcmp(export->name, "lib_", 4)) { asm volatile (