3 ms·
POSIX is not linked to C. POSIX is a specification and that can be implemented in any language. What POSIX is is outside of the control of Linux. Linux wants t
by HippoBaro 4y ago
POSIX is not linked to C. POSIX is a specification and that can be implemented in any language.
What POSIX is is outside of the control of Linux. Linux wants to be POSIX compliant for compatibility. Changing POSIX would not make sense.
- thesuperbigfrog 4y ago>> POSIX is not linked to C. POSIX is a specification and that can be implemented in any language. Here is an excerpt from the introduction to the POSIX standard: "POSIX.1-2017 defines a standard operating system interface and environment, including a command interpreter (or "shell"), and common utility programs to support applications portability at the source code level. It is intended to be used by both application developers and system implementors. POSIX.1-2017 comprises four major components (each in an associated volume): General terms, concepts, and interfaces common to all volumes of POSIX.1-2017, including utility conventions and C-language header definitions, are included in the Base Definitions volume of POSIX.1-2017. Definitions for system service functions and subroutines, language-specific system services for the C programming language, function issues, including portability, error handling, and error recovery, are included in the System Interfaces volume of POSIX.1-2017. Definitions for a standard source code-level interface to command interpretation services (a "shell") and common utility programs for application programs are included in the Shell and Utilities volume of POSIX.1-2017. Extended rationale that did not fit well into the rest of the document structure, containing historical information concerning the contents of POSIX.1-2017 and why features were included or discarded by the standard developers, is included in the Rationale (Informative) volume of POSIX.1-2017." Source: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap01.html https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1... Implementing POSIX in Rust would require implementing C-language interfaces so that programs written in C could compile and call into the implemented interfaces the same way that POSIX-compliant implementations work today. Do you really want to re-implement POSIX C APIs in Rust? Or would it make more sense to have a redesigned, Rust-native API that replaces POSIX?