wok-current diff linld/stuff/src/CRTL.H @ rev 25725
Patch openssh CVE-2024-6387
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Mon Jul 01 15:09:44 2024 +0000 (2 months ago) |
parents | d70f7cc6e3ac |
children |
line diff
1.1 --- a/linld/stuff/src/CRTL.H Sun May 24 16:16:52 2020 +0000 1.2 +++ b/linld/stuff/src/CRTL.H Mon Jul 01 15:09:44 2024 +0000 1.3 @@ -22,22 +22,19 @@ 1.4 void parse_cmdline(); 1.5 extern _fastcall void strcatb(const char* a,const char* b); 1.6 extern _fastcall void strcpy(const char* a,const char* b); 1.7 -#ifdef USE_ARGSTR 1.8 extern _fastcall int argstr(const char *s, const char keywords[], const char **var); 1.9 extern _fastcall int argnum(char *s, const char keywords[], unsigned long *var); 1.10 extern _fastcall void set_cmdline(const char *filename); 1.11 -#ifndef ISOHOOK 1.12 -#define strhead(a,b) (strstr(a,b) != (int) (a)) 1.13 -#else 1.14 -extern _fastcall int strhead(const char* a,const char* head); 1.15 -#endif 1.16 -#else 1.17 -extern _fastcall int strhead(const char* a,const char* head); 1.18 -#endif 1.19 +extern _fastcall int strcmp(const char* a,const char* b); 1.20 +extern _fastcall int strhead(const char* a,const char* b); 1.21 extern _fastcall int fileexist(const char* name); 1.22 //extern "C" int open(const char* name, int flags); 1.23 extern _fastcall int open(const char* name); 1.24 +#ifdef NO_CLOSE 1.25 +#define close(x) 1.26 +#else 1.27 extern _fastcall int close(int fd); 1.28 +#endif 1.29 extern _fastcall int moverm(unsigned short *p); 1.30 extern _fastcall int readrm(struct image_himem *m, int sz); 1.31 extern _fastcall int read(int fd, void* data, int sz); 1.32 @@ -59,3 +56,5 @@ 1.33 extern char cpu_features[]; 1.34 #define CPUMASKLM (0x20) 1.35 #define cpuhaslm() (cpu_features[3]&CPUMASKLM) 1.36 + 1.37 +extern void loadfailure(void);