News for hackers. Stuff that matters.
Re:C library system-call wrappers, or the lack thereof by jancsika on Wednesday November 14, 2018 @06:37PM (#18455337)
Still trying to get my bearings, so bear with me...

Here are two different types of backward compatibility:

1. will old binary work with the new version?

2. will old code build and run correctly with the new version?

So when I talk about extant interface changes, I'm speculating that old code that leverages the public Linux interface is more likely to work and work correctly vs. old code that leverages the public glibc interface.

For example: suppose foodev built a Linux driver for a very popular piece of hardware in 2003, abandoned it, and in 2018 there are problems getting it to run correctly. Are those problems more likely due to Linux public interface churn or glibc public interface churn?

Re:C library system-call wrappers, or the lack thereof by cesarb on Wednesday November 14, 2018 @10:03PM (#18456545)
For a driver, there would be problems getting it to run correctly in 2004 already, since the internal Linux kernel API used by drivers is not stable and changes very rapidly. Unless the driver has been upstreamed, because developers updating the kernel internal APIs also update all the in-tree drivers at the same time.

About leveraging one interface or the other: when you use the glibc interface, you are also using the Linux interface behind it, so a change in either can affect your program. On the other hand, if you are using the Linux interface directly instead of going through the C library, chances are you are doing something unusual, which increases the risk of it breaking by accident. And there are some things which exist only on the glibc interface, like nameserver lookups (getaddrinfo), user database lookups (getpwnam/getpwuid), and many more.

Re:C library system-call wrappers, or the lack thereof by Annatar on Thursday November 15, 2018 @02:41AM (#18457573)
"For a driver, there would be problems getting it to run correctly in 2004 already,"

This is unthinkable on Solaris / illumos kernels because of DDI / DDK interfaces: I can take a driver from 1993 for Solaris 2.5.1 and modload(1M) it into the latest nightly illumos build and I'm guaranteed that it will work.