Repository navigation
Add OS/2 kLIBC support - #826
Conversation
|
I didn't actually try to follow the exact changes, so this is not a review. Just general and random comments.
As an extentsion of the "describe how to build" in an earlier comment, the 1st commit seems to add support at At the "fix warnings" commit there's this change: size_t length;
- char *p;
+ char *p = NULL; /* Make compiler happy. */
char *qfilename;
DECL_GLOB_LIST(list)Why does it warn about missing init with |
|
Hi/2.
Do you think about AI? ^^ I wrote this PR entirely myself. The reason the time differences between commits are too small is because I commited the patches at the last after writing code.
Sure. I'm running OS/2. Less ported to OS/2 has the problem that scrolling down is not efficiency, To overcome this with the native APIs is the purpose of this PR.
I think, Windows NT was the initial purpose. But it has not been realized. kLIBC is only for OS/2. EMX is not maintained and on modern env kLIBC is more proper. I'll write the docs to build with OS/2 kLIBC.
It's my mistake.
I think, I've fixed.
Because I want to build with both methods, and both works. defines.o2k is the result of configure and I edited some comments.
Hmm... It's jsut the compiiler's complain. Should I analyze this and explain, too? It's not reasonable requst. Anyway, |
Did you try to fix it in the existing OS/2 build? Also, again, the reason for this build should be mentioned someplace. If this is the sole reason this platform exists in "less", then users should know it. By the way, does it build with this klibc too - https://trac.netlabs.org/libc ? because that's the first klibc google result. |
Yes.
I think, I said this at d81e007.
It's the original version of kLIBC, which has been forked to LIBCn I said before. So it may be built with it but I didn't test with it. |
|
@komh There are some conflicts between this patch and the current HEAD. They look pretty simple to resolve, but since I don't have an OS/2 system to test on, I'd prefer that you resolve them. |
kLIBC is the successor of EMX, and now is being maintained as LIBCn at
https://github.com/bitwiseworks/libc
Generated defines.o2k from the result of configure on OS/2 kLIBC.
__open() was removed on OS/2 kLIBC.
OS/2 kLIBC does not support terminal attributes. Because of this, read() cannot read 1 byte by 1 byte. So use a kLIBC specific funciton.
OS/2 does not provide ansi escapes to scroll down. Repainting whenever scrolling down is slow and causes visual confusion.
ttyname() on OS/2 kLIBC is a dummy function.
|
I've resolved, thanks! |
Hi/2.
This PR is to add OS/2 kLIBC support.
Review, please...