Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.os.linux    |    Getting to be as bloated as Windows!    |    107,822 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 105,888 of 107,822    |
|    Lew Pitcher to Paul Edwards    |
|    Re: O_TEXT for PDOS/386    |
|    21 Feb 24 20:28:35    |
      From: lew.pitcher@digitalfreehold.ca              On Wed, 21 Feb 2024 21:54:02 +0800, Paul Edwards wrote:       [snip]       > When the ELF executable is run on PDOS/386, I will       > have no way of knowing that this open is text, and       > thus PDOS/386 (the OS) should add CRs whenever it       > sees a LF.              ISTM that you are looking at this from the wrong end.              POSIX open() does not make a distinction between a "text"       and a "binary" file; all files are "binary". Programs       (including Linux programs) that are coded to the POSIX       standard already accommodate this. So, any code you port       from a Linux environment (either source code or ELF       executable) is already in a state to read and write       a binary file. Given this, then there is no need for       an O_TEXT flag for a Linux program, as no Linux program       expects open() to provide special conditions for text       data.              Given this, there only one problem to resolve: how to       allow for text data to be interchanged transparently       between the MSDOS/Windows side of your PDOS/386 and       the Linux side.              And, that's not the problem you are chasing ATM.              [snip]              --       Lew Pitcher       "In Skills We Trust"              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca