wok-current diff linld/stuff/src/CRTL.H @ rev 19636
linld: check asm instructions again processor type
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 20 09:55:25 2017 +0100 (2017-01-20) |
parents | 38eb1fe036b4 |
children | 6f494adb2c71 |
line diff
1.1 --- a/linld/stuff/src/CRTL.H Mon Jan 16 10:15:15 2017 +0100 1.2 +++ b/linld/stuff/src/CRTL.H Fri Jan 20 09:55:25 2017 +0100 1.3 @@ -9,16 +9,16 @@ 1.4 const unsigned MIN_STACK = 0x400; 1.5 const unsigned MAX_MALLOC = 0xF000; 1.6 1.7 -const A_RDONLY = 1; // for fileattr() 1.8 -const A_HIDDEN = 2; 1.9 -const A_SYSTEM = 4; 1.10 -const A_LABEL = 8; 1.11 -const A_DIRECTORY = 16; 1.12 -const A_ARCHIVE = 32; 1.13 +const char A_RDONLY = 1; // for fileattr() 1.14 +const char A_HIDDEN = 2; 1.15 +const char A_SYSTEM = 4; 1.16 +const char A_LABEL = 8; 1.17 +const char A_DIRECTORY = 16; 1.18 +const char A_ARCHIVE = 32; 1.19 1.20 1.21 -const O_RDONLY = 0; // for open() 1.22 -const O_BINARY = 0; 1.23 +const char O_RDONLY = 0; // for open() 1.24 +const char O_BINARY = 0; 1.25 1.26 extern char text_start; extern char text_end; 1.27 extern char data_start; extern char data_end; 1.28 @@ -42,7 +42,7 @@ 1.29 extern "C" int write(int fd, const void* data, int sz); 1.30 extern "C" long lseekset(int fd, long sz); 1.31 extern "C" void* malloc(unsigned sz); 1.32 -extern "C" void puts(const char* s); 1.33 +extern "C" int puts(const char* s); 1.34 extern "C" unsigned long strtol(const char *s); 1.35 1.36 // Extensions