macOS and UNIX conformance (was: Faking a TTY on a pipe/socketpair)

Liste des GroupesRevenir à cu programmer 
Sujet : macOS and UNIX conformance (was: Faking a TTY on a pipe/socketpair)
De : geoff (at) *nospam* clare.See-My-Signature.invalid (Geoff Clare)
Groupes : comp.unix.programmer
Date : 16. Dec 2024, 15:05:44
Autres entêtes
Message-ID : <omo53l-38e.ln1@ID-313840.user.individual.net>
References : 1 2 3 4 5
User-Agent : Pan/0.154 (Izium; 517acf4)
Richard L. Hamilton wrote:

In article <vinp86$avd9$1@dont-email.me>,
Lawrence D'Oliveiro <ldo@nz.invalid> writes:
On Tue, 3 Dec 2024 08:20:51 -0000 (UTC), Muttley wrote:
 
I'm wondering on Linux if it would be enough on Linux to spoof ttyname()
and isatty() using LD_PRELOAD. However it seems doing something similar
on a Mac is the usual over complicated Apple hot mess.
 
macOS may be a licensee of the "Unix" trademark, but it does not work the
way people expect when they think of the term "Unix".
 
It probably does as of the version of the formal specification they met
to be allowed to use the trademark.

It is certified as conforming to "UNIX 03", which is so named because
the certification program was launched in 2003, although by coincidence
the corresponding version of The Single UNIX Specification (SUS) is
version 3.  There have since been SUSv4 (2008) and SUSv5 (2024) so
macOS is two versions behind.  (AIX and Solaris are/were certified to
SUSv4; there is no certification program yet for SUSv5.)

SUSv3/4 included dlopen(), dlsym() and dlclose() but no other
requirements related to dynamic linking.  SUSv5 adds the ability to
build shared libraries and dynamic executables using the c17 utility,
but doesn't specify how their loading can be controlled with
environment variables.

The things Lawrence said don't work on macOS the way people expect
UNIX to work are almost certainly all, just like LD_PRELOAD, not
specified by SUS.  (Otherwise macOS would fail some of the tens of
thousands of tests it has to pass in order for each new macOS version
to be certified.)

--
Geoff Clare <netnews@gclare.org.uk>

Date Sujet#  Auteur
16 Nov 24 * Faking a TTY on a pipe/socketpair95Muttley
16 Nov 24 +* Re: Faking a TTY on a pipe/socketpair5Kenny McCormack
17 Nov 24 i`* Re: Faking a TTY on a pipe/socketpair4Muttley
17 Nov 24 i +- Re: Faking a TTY on a pipe/socketpair1Wolfgang Agnes
17 Nov 24 i `* Re: Faking a TTY on a pipe/socketpair2Kenny McCormack
17 Nov 24 i  `- Re: Faking a TTY on a pipe/socketpair1Muttley
17 Nov 24 +* Re: Faking a TTY on a pipe/socketpair5Kaz Kylheku
17 Nov 24 i+- Re: Faking a TTY on a pipe/socketpair1Muttley
18 Nov 24 i`* Re: Faking a TTY on a pipe/socketpair3Eric Pozharski
18 Nov 24 i `* Re: Faking a TTY on a pipe/socketpair2Kaz Kylheku
19 Nov 24 i  `- Re: Faking a TTY on a pipe/socketpair1Eric Pozharski
18 Nov 24 +* Re: Faking a TTY on a pipe/socketpair4Janis Papanagnou
18 Nov 24 i+- Re: Faking a TTY on a pipe/socketpair1Muttley
18 Nov 24 i`* Re: Faking a TTY on a pipe/socketpair2Richard Kettlewell
18 Nov 24 i `- Re: Faking a TTY on a pipe/socketpair1Muttley
3 Dec 24 +* Re: Faking a TTY on a pipe/socketpair79Muttley
3 Dec 24 i`* Re: Faking a TTY on a pipe/socketpair78Lawrence D'Oliveiro
4 Dec 24 i +* Re: Faking a TTY on a pipe/socketpair75Muttley
5 Dec 24 i i`* Re: Faking a TTY on a pipe/socketpair74Lawrence D'Oliveiro
5 Dec 24 i i +* Re: Faking a TTY on a pipe/socketpair4Kenny McCormack
5 Dec 24 i i i`* Re: Faking a TTY on a pipe/socketpair3Dan Cross
5 Dec 24 i i i `* Re: Faking a TTY on a pipe/socketpair2Kenny McCormack
5 Dec 24 i i i  `- Re: Faking a TTY on a pipe/socketpair1Muttley
5 Dec 24 i i +- Re: Faking a TTY on a pipe/socketpair1Nicolas George
5 Dec 24 i i `* Re: Faking a TTY on a pipe/socketpair68Muttley
5 Dec 24 i i  `* Re: Faking a TTY on a pipe/socketpair67Lawrence D'Oliveiro
6 Dec 24 i i   +* Re: Faking a TTY on a pipe/socketpair10Muttley
6 Dec 24 i i   i`* Re: Faking a TTY on a pipe/socketpair9Lawrence D'Oliveiro
6 Dec 24 i i   i +- Re: Faking a TTY on a pipe/socketpair1John Ames
7 Dec 24 i i   i `* Re: Faking a TTY on a pipe/socketpair7Muttley
7 Dec 24 i i   i  +* Windows-think and systemd (Was: Something completely unrelated to what we're yapping about now)5Kenny McCormack
7 Dec 24 i i   i  i+* Re: Windows-think and systemd (Was: Something completely unrelated to what we're yapping about now)2Muttley
14 Dec 24 i i   i  ii`- AIX (was Re: Windows-think and systemd)1Janis Papanagnou
8 Dec 24 i i   i  i+- Re: Windows-think and systemd (Was: Something completely unrelated to what we're yapping about now)1Kaz Kylheku
9 Dec 24 i i   i  i`- Re: Windows-think and systemd (Was: Something completely unrelated to what we're yapping about now)1Jim Jackson
9 Dec 24 i i   i  `- Re: Faking a TTY on a pipe/socketpair1Rainer Weikusat
6 Dec 24 i i   +- Re: Faking a TTY on a pipe/socketpair1Rainer Weikusat
9 Dec 24 i i   +* Re: Faking a TTY on a pipe/socketpair53Jim Jackson
10 Dec 24 i i   i+* Re: Faking a TTY on a pipe/socketpair2Lawrence D'Oliveiro
10 Dec 24 i i   ii`- Re: Faking a TTY on a pipe/socketpair1Rainer Weikusat
10 Dec 24 i i   i`* Re: Faking a TTY on a pipe/socketpair50Richard Kettlewell
10 Dec 24 i i   i `* Re: Faking a TTY on a pipe/socketpair49Muttley
10 Dec 24 i i   i  +- Re: Faking a TTY on a pipe/socketpair1Jim Jackson
10 Dec 24 i i   i  `* Re: Faking a TTY on a pipe/socketpair47Lawrence D'Oliveiro
10 Dec 24 i i   i   +- Re: Faking a TTY on a pipe/socketpair1Rainer Weikusat
11 Dec 24 i i   i   `* Re: Faking a TTY on a pipe/socketpair45Muttley
11 Dec 24 i i   i    `* Re: Faking a TTY on a pipe/socketpair44Lawrence D'Oliveiro
11 Dec 24 i i   i     +* Re: Faking a TTY on a pipe/socketpair15Jim Jackson
12 Dec 24 i i   i     i`* Re: Faking a TTY on a pipe/socketpair14Nicolas George
12 Dec 24 i i   i     i +* Re: Faking a TTY on a pipe/socketpair2Alexis
12 Dec 24 i i   i     i i`- Re: Faking a TTY on a pipe/socketpair1Nicolas George
12 Dec 24 i i   i     i +* Re: Faking a TTY on a pipe/socketpair3Lawrence D'Oliveiro
12 Dec 24 i i   i     i i`* Re: Faking a TTY on a pipe/socketpair2Muttley
12 Dec 24 i i   i     i i `- Re: Faking a TTY on a pipe/socketpair1Lawrence D'Oliveiro
13 Dec 24 i i   i     i `* Re: Faking a TTY on a pipe/socketpair8Jim Jackson
13 Dec 24 i i   i     i  `* Re: Faking a TTY on a pipe/socketpair7Lawrence D'Oliveiro
14 Dec 24 i i   i     i   `* Re: Faking a TTY on a pipe/socketpair6Jim Jackson
14 Dec 24 i i   i     i    `* Re: Faking a TTY on a pipe/socketpair5Lawrence D'Oliveiro
17 Dec00:03 i i   i     i     `* Re: Faking a TTY on a pipe/socketpair4Jim Jackson
17 Dec03:39 i i   i     i      `* Re: Faking a TTY on a pipe/socketpair3Lawrence D'Oliveiro
18 Dec22:19 i i   i     i       `* Re: Faking a TTY on a pipe/socketpair2Jim Jackson
18 Dec23:25 i i   i     i        `- Re: Faking a TTY on a pipe/socketpair1Jim Jackson
12 Dec 24 i i   i     `* Re: Faking a TTY on a pipe/socketpair28Muttley
12 Dec 24 i i   i      `* Re: Faking a TTY on a pipe/socketpair27Lawrence D'Oliveiro
13 Dec 24 i i   i       +* Re: Faking a TTY on a pipe/socketpair24Muttley
13 Dec 24 i i   i       i`* Re: Faking a TTY on a pipe/socketpair23John Ames
14 Dec 24 i i   i       i +* Re: Faking a TTY on a pipe/socketpair21Lawrence D'Oliveiro
14 Dec 24 i i   i       i i+* Re: Faking a TTY on a pipe/socketpair8Rainer Weikusat
15 Dec 24 i i   i       i ii`* Re: Faking a TTY on a pipe/socketpair7Muttley
15 Dec 24 i i   i       i ii `* Re: Faking a TTY on a pipe/socketpair6Rainer Weikusat
16 Dec09:16 i i   i       i ii  `* Re: Faking a TTY on a pipe/socketpair5Muttley
16 Dec20:51 i i   i       i ii   `* Re: Faking a TTY on a pipe/socketpair4Lawrence D'Oliveiro
17 Dec09:34 i i   i       i ii    +* Re: Faking a TTY on a pipe/socketpair2Muttley
17 Dec20:44 i i   i       i ii    i`- Re: Faking a TTY on a pipe/socketpair1Lawrence D'Oliveiro
17 Dec18:27 i i   i       i ii    `- Re: Faking a TTY on a pipe/socketpair1Rainer Weikusat
16 Dec16:55 i i   i       i i`* Re: Faking a TTY on a pipe/socketpair12John Ames
16 Dec21:15 i i   i       i i `* Re: Faking a TTY on a pipe/socketpair11Lawrence D'Oliveiro
16 Dec21:44 i i   i       i i  +- Re: Faking a TTY on a pipe/socketpair1John Ames
17 Dec00:07 i i   i       i i  +* Re: Faking a TTY on a pipe/socketpair8Jim Jackson
17 Dec03:37 i i   i       i i  i+* Re: Faking a TTY on a pipe/socketpair3Lawrence D'Oliveiro
17 Dec09:35 i i   i       i i  ii`* Re: Faking a TTY on a pipe/socketpair2Muttley
17 Dec20:45 i i   i       i i  ii `- Re: Faking a TTY on a pipe/socketpair1Lawrence D'Oliveiro
17 Dec20:48 i i   i       i i  i`* Re: Faking a TTY on a pipe/socketpair4Richard Kettlewell
17 Dec21:45 i i   i       i i  i +* Re: Faking a TTY on a pipe/socketpair2Lawrence D'Oliveiro
17 Dec23:00 i i   i       i i  i i`- Re: Faking a TTY on a pipe/socketpair1Kenny McCormack
17 Dec21:54 i i   i       i i  i `- Re: Faking a TTY on a pipe/socketpair1Rainer Weikusat
17 Dec18:28 i i   i       i i  `- Re: Faking a TTY on a pipe/socketpair1Rainer Weikusat
14 Dec 24 i i   i       i `- Re: Faking a TTY on a pipe/socketpair1Muttley
13 Dec 24 i i   i       +- Re: Faking a TTY on a pipe/socketpair1Rainer Weikusat
13 Dec 24 i i   i       `- Re: Faking a TTY on a pipe/socketpair1Jim Jackson
14 Dec 24 i i   +- Re: Faking a TTY on a pipe/socketpair1Muttley
14 Dec 24 i i   `- Re: Faking a TTY on a pipe/socketpair1Lawrence D'Oliveiro
14 Dec 24 i +- Re: Faking a TTY on a pipe/socketpair1Muttley
16 Dec15:05 i `- macOS and UNIX conformance (was: Faking a TTY on a pipe/socketpair)1Geoff Clare
3 Dec 24 `- Re: Faking a TTY on a pipe/socketpair1Richard Kettlewell

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal