| Deutsch English Français Italiano |
|
<v40qt1$2fuud$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: James Kuyper <jameskuyper@alumni.caltech.edu> Newsgroups: comp.lang.c Subject: Re: Running an editor from ANSI C Date: Sat, 8 Jun 2024 01:40:48 -0400 Organization: A noiseless patient Spider Lines: 45 Message-ID: <v40qt1$2fuud$1@dont-email.me> References: <v3pge7$uf2i$1@dont-email.me> <v3r2pl$16mtl$1@dont-email.me> <v3r7v8$1b57j$1@dont-email.me> <v3rek5$1c4i5$1@dont-email.me> <v3rrtm$1e6g8$1@dont-email.me> <v3ru84$1eafb$1@dont-email.me> <87o78dzw1a.fsf@nosuchdomain.example.com> <v3tkmb$1o860$3@dont-email.me> <v3uk0l$20s0s$2@dont-email.me> <v3uoeo$21g4g$5@dont-email.me> <v3v25a$2369h$1@dont-email.me> <v406ta$29fla$6@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 08 Jun 2024 07:40:49 +0200 (CEST) Injection-Info: dont-email.me; posting-host="447ef11239a3655ed74a8f7f5605db70"; logging-data="2620365"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19RJq/B0sKwjugqSZozmnU6IprtQg1NwOI=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:Cad7yAVQOM0T3inClmHNJ/XfNjs= Content-Language: en-US In-Reply-To: <v406ta$29fla$6@dont-email.me> Bytes: 3579 On 6/7/24 19:59, Lawrence D'Oliveiro wrote: > On Fri, 7 Jun 2024 09:32:26 -0400, James Kuyper wrote: > >> On 6/7/24 06:46, Lawrence D'Oliveiro wrote: >>> >>> On Fri, 7 Jun 2024 11:31:01 +0200, David Brown wrote: >>> >>>> But many people have lots of use of programming in C without any kind >>>> of POSIX functionality ... >>> >>> And all those same programs work in the presence of POSIX >>> functionality, >> >> Even those that rely upon some other operating system's corresponding >> functionality instead? > > If it really was “corresponding”, then it would already be available via > some POSIX-compatible wrapper for that OS. I didn't mean that kind of "corresponding". It might correspond only in the sense that it serves a similar purpose - but does so in a very different way. That doesn't necessarily make a fully POSIX compatible wrapper impossible (though it might be), but it does mean that even if such wrappers do exist, they might suffer serious disadvantages compared to making direct calls to operation-system specific functions that aren't POSIX compatible. When that is the case, it's very likely that the code was not written to use such wrappers. >> ... POSIX is not the be-all and end-all of operating systems. > > You’re right. It’s not. Linux is. I've been programming on Unix-like operating systems for more than 30 years, and most of that time was on Linux systems, but even I'm not foolish enough to make such a claim for Linux. The last few years before I retired I worked on Windows systems doing maintenance on huge code bases that were required to work on both Windows and Linux systems. They didn't do so by being written to use only POSIX functionality, and rely upon POSIX-compatible wrappers on to work on Windows systems. They relied upon non-POSIX functions that did different things on POSIX and Windows systems. The code was built quite differently on the two operating systems - CMake was involved. I don't know a lot of the details of how all of that worked, my assigned tasks kept me far away from that part of the code - but I was aware of the complications that it caused for building the software.