The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: schily@schily.net (Joerg Schilling)
Subject: [TUHS] MacOS X is Unix (tm)
Date: Mon, 02 Jan 2017 12:31:47 +0100	[thread overview]
Message-ID: <586a3a23.udW0nRrOopzHoQbP%schily@schily.net> (raw)
In-Reply-To: <52C99F50-E24A-4BBF-A129-180A1271B4E3@kdbarto.org>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1860 bytes --]

David <david at kdbarto.org> wrote:

> MacOS X is a certified Unix (tm) OS. Not Unix-Like.

Given that MacOS X is not POSIX compliant, I would call it a UNIX-alike.

Note that passing the certification tests unfortunately does not grant 
POSIX compliance :-(

Try e.g. this program on Mac OS X:

#include <stdlib.h>
#include <unistd.h>
#include <sys/wait.h>
#include <stdio.h>
/*
 * Non-standard compliant platforms may need 
 * #include <signal.h> or something similar
 * in addition to the include files above.
 */

int
main()
{
        siginfo_t       si;
        pid_t   pid;
        int     ret;

        if ((pid = fork()) < 0)
                exit(1);
        if (pid == 0) {
                _exit(1234567890);
        }
        ret = waitid(P_PID, pid, &si, WEXITED);
        printf("ret: %d si_pid: %ld si_status: %d si_code: %d\n",
                ret,
                (long) si.si_pid, si.si_status, si.si_code);
        if (pid != si.si_pid)
                printf("si_pid in struct siginfo should be %ld but is %ld\n",
                        (long) pid, (long) si.si_pid);
        if (si.si_status != 1234567890)
                printf("si_status in struct siginfo should be %d (0x%x) but is %d (0x%x)\n",
                        1234567890, 1234567890, si.si_status, si.si_status);
        if (si.si_code != CLD_EXITED)
		printf("si_code in struct siginfo should be %d (0x%x) but is %d (0x%x)\n",
			CLD_EXITED,  CLD_EXITED, si.si_code, si.si_code);
        if (CLD_EXITED != 1)
                printf("CLD_EXITED is %d on this platform\n", CLD_EXITED);
        return (0);
}

Jörg

-- 
 EMail:joerg at schily.net                  (home) Jörg Schilling D-13353 Berlin
       joerg.schilling at fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.org/private/ http://sourceforge.net/projects/schilytools/files/


  parent reply	other threads:[~2017-01-02 11:31 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.31.1483203495.3779.tuhs@minnie.tuhs.org>
2016-12-31 22:37 ` David
2016-12-31 23:00   ` Kurt H Maier
     [not found]   ` <CAH1jEzZ7bqmxtJLSnmd8-_MT4BrgnjgFA2+SvKBQAKou8bZzQw@mail.gmail.com>
     [not found]     ` <CAH1jEzZMJQAMeZSFFHy1qouDXnq3GqqRa_Fw25i+h9z2FBprHw@mail.gmail.com>
     [not found]       ` <CAH1jEzYJhRsWhf0BiViignp7_Z-HxNbP7=+ChVbmYErrDQXmsQ@mail.gmail.com>
     [not found]         ` <CAH1jEzbxDAtpMxCRu1hO2ot2K=Ted0HvpBSx67zOg-FcmqrpaQ@mail.gmail.com>
     [not found]           ` <CAH1jEzaBMMXdxD7xCaSMM4Ciu0Gg7NktQDeVyLEoHkfYoyerTw@mail.gmail.com>
     [not found]             ` <CAH1jEzZ6mTDqiGu9pkjg2g3S+Lz2sPVY9Y+16dKSf4dkp5j56Q@mail.gmail.com>
     [not found]               ` <CAH1jEzaMCWR2xYf-FbifnTj4gWJbCEDJBpCx3r3ErxCnEoXSPg@mail.gmail.com>
     [not found]                 ` <CAH1jEzZWkZ6J0NOifZK05gS+fdKiXQaUZDfvdh56Wm-gsbT4rQ@mail.gmail.com>
     [not found]                   ` <CAH1jEza+2i6jEU5wbxFZ-WUOcGi06zyj5g9Si7RAe5xiety42g@mail.gmail.com>
     [not found]                     ` <CAH1jEza7dHxPmhocSE_CkCPafBgaSS3uYF2g4E_J8gYYdRoVwA@mail.gmail.com>
     [not found]                       ` <CAH1jEzYFXowgA3f=GpJ4HBnAYsyUQLOiZ-uoxryMLZAy5BcsXQ@mail.gmail.com>
     [not found]                         ` <CAH1jEzYcZHkfmFYZRZkmapZxx6q-ZZDSQ-qCzVxDvLsQ0XL6Hg@mail.gmail.com>
     [not found]                           ` <CAH1jEzaqJAuKXOnSvaadoavuQKHf-dT-rtywpdCyFoaWR1k ydQ@mail.gmail.com>
     [not found]                           ` <CAH1jEzaqJAuKXOnSvaadoavuQKHf-dT-rtywpdCyFoaWR1kydQ@mail.gmail.com>
     [not found]                             ` <CAH1jEzbwsEZoADTzBxQQ=OArVc4CLCW8U3e3JmK_BaZzfRjc4A@mail.gmail.com>
     [not found]                               ` <CAH1jEzZ7EG_xYL51uog1ZdaZ1ZMuznS1OkUYYMa9bSJxkQxWrQ@mail.gmail.com>
     [not found]                                 ` <CAH1jEzaSJuRkGnVO970JuMnFeht7at2c-L44i1zZ-ejTMdr8Sg@mail.gmail.com>
     [not found]                                   ` <CAH1jEzZi2erJEz3fUajE5VxH+3XiWosxfr7ib_r1ZHbdqSFWNg@mail.gmail.com>
     [not found]                                     ` <CAH1jEzZmx_4JfdU+HseZzM+F=BvRgUU5brX6A+xkaFbosp8PLg@mail.gmail.com>
     [not found]                                       ` <CAH1jEzYjaNVccZtuu4znPPddhGK-DxFdeuV-higNK6dpc9gSqQ@mail.gmail.com>
     [not found]                                         ` <CAH1jEzarFb_S4EZ0SAqxTdQr1eD58_G3f3ae0Xtwrmg8VxZGAA@mail.gmail.com>
     [not found]                                           ` <CAH1jEzav7rijjpvDrogQKS5dJb09azgnogdGtSsqmPpTHFL7Hg@mail.gmail.com>
     [not found]                                             ` <CAH1jEza_oXr33-mjKV7aOVO2U4E953OpQ7dqMABVUp-uix4pJQ@mail.gmail.com>
     [not found]                                               ` <CAH1jEzZqs6H9zCyLL1eveAHfEq3SminYBGDyLYwNUxE-h9nDng@mail.gmail.com>
     [not found]                                                 ` <CAH1jEzb_28daq6EOV1GMg8g-OM_sevbf8_EVE7dprgaVvrMiqA@mail.gmail.com>
2017-01-01  0:43                                                   ` Nick Downing
2017-01-01 10:26                                                     ` Tim Bradshaw
2017-01-01 13:01                                                       ` Ron Natalie
     [not found]                                                         ` <95D6B274-6D3F-4610-873A-76F4707AE89B@tfe b.org>
2017-01-01 13:56                                                         ` Tim Bradshaw
2017-01-01 19:33                                                           ` David
2017-01-01 20:12                                                             ` Tim Bradshaw
2017-01-03 14:11                                                               ` David
2017-01-01 20:28                                                             ` Kurt H Maier
2017-01-01 20:38                                                               ` Larry McVoy
2017-01-03 13:17                                                                 ` Joerg Schilling
2017-01-03 15:52                                                                   ` [TUHS] ZFS (was: Re: MacOS X is Unix (tm)) Michael Kjörling
2017-01-03 16:41                                                                     ` Joerg Schilling
2017-01-03 18:20                                                                   ` [TUHS] MacOS X is Unix (tm) Larry McVoy
2017-01-06 12:56                                                                     ` Joerg Schilling
2017-01-02 10:06                                                         ` arnold
2017-01-02 11:34                                                           ` Ron Natalie
2017-01-02 12:24                                                             ` arnold
2017-01-02 16:42                                                             ` Chet Ramey
2017-01-01 13:28                                                     ` Michael Kjörling
2017-01-02 11:31   ` Joerg Schilling [this message]
2017-01-02 16:32     ` Nemo
2017-01-02 16:53       ` Joerg Schilling
2017-01-02 16:44     ` Chet Ramey
2017-01-02 16:49       ` Larry McVoy
2017-01-02 17:02         ` Joerg Schilling
2017-01-02 17:05         ` Chet Ramey
2017-01-02 17:32           ` Larry McVoy
2017-01-02 17:53             ` Chet Ramey
2017-01-02 17:37           ` Christian Neukirchen
2017-01-03 14:06     ` David
2017-01-03 14:33       ` Random832
2017-01-03 15:08         ` Joerg Schilling
2017-01-03 16:09           ` Derek Fawcus
2017-01-03 16:47             ` Joerg Schilling
2017-01-03 17:29           ` Random832
2017-01-03 17:51             ` Joerg Schilling
2017-01-03 14:49       ` Joerg Schilling
2017-01-03 17:39         ` David
2017-01-03 17:59           ` Derek Fawcus
2017-01-03 18:04           ` Joerg Schilling
2017-01-03 18:32             ` Ron Natalie
2017-01-03 18:33             ` Clem Cole
2017-01-03 18:35               ` Clem Cole
2017-01-03 18:45               ` Ron Natalie
2017-03-11  6:35                 ` jsteve
2017-03-11 15:36                   ` Derrik Walker v2.0
2017-03-11 16:33                   ` Paul Winalski
2017-01-03 22:31             ` Random832

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=586a3a23.udW0nRrOopzHoQbP%schily@schily.net \
    --to=schily@schily.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).