summaryrefslogtreecommitdiff
path: root/faq/posix_compatibility.mdwn
blob: db7989a63ee90587581e6dd4675f73f1a7559e92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
[[!meta copyright="Copyright © 2010, 2011, 2013 Free Software Foundation,
Inc."]]

[[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable
id="license" text="Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation License, Version 1.2 or
any later version published by the Free Software Foundation; with no Invariant
Sections, no Front-Cover Texts, and no Back-Cover Texts.  A copy of the license
is included in the section entitled [[GNU Free Documentation
License|/fdl]]."]]"""]]

[[!tag faq/support]]

[[!meta title="POSIX compatibility"]]

Many computer operating systems strive to be POSIX (Portable Operating System Interface) compliant, as it makes cross-compiling and program portability much easier than having to package something for every new distribution.

Is it favorable of rather a hindrance to be compatible to POSIX and similar
standards?

A lot of things in POSIX et al. are designed for [[UNIX]]-like systems with
traditional monolithic [[kernel]]s.

Thus, a [[microkernel]]-based system, as ours is, has to employ a bunch of
detours, for example to implement the [[`fork` system call|glibc/fork]].

On the other hand, (mostly) complying to these standards, made a really big
body of software *just work* without any (or just trivial) [[hurd/porting]].
Especially so for command-line programs, and libraries.

But: a large part of today's user programs are not written according to POSIX
et al. low-level interfaces, but against GNOME, GTK+2, and other high-level
frameworks and libraries.  It may be a valid option to enrich these instead of
striving for total POSIX compliance -- and the high-level programs (that is,
their users) may not even notice this, but we would avoid a lot of overhead
that comes with wrapping the [[Hurd interfaces|hurd/interface]] to be POSIX
compliant.

# External
* The Open Groups [POSIX Specification](https://pubs.opengroup.org/onlinepubs/9699919799/)
* Wikipedia [article on POSIX](https://en.wikipedia.org/wiki/POSIX)