David Reid writes:
> OK, agreed (up to a point).  So, you want easier maintenance?  The ONLY
> way that I can think of doing it is to have the platform specific IPC
> stuff in it's own file, hence this patch.
What I was thinking about is that you essentially create a wrapper library
of SysV-like functions that call the BEOS-specific functions, like
int
semctl(int semid, int semnum, int cmd, union semun arg)
{
    switch (cmd)
    {
        case IPC_RMID:
            delete_sem(semid);
            break;
    ...
    }
}
int
semget(key_t key, int nsems, int semflg)
{
    create_sem(...);
}
etc. That way there's essentially zero maintenance overhead for both the
Unix and the Beos factions. And you'd be doing yourself and the world a
big favour when you're trying to port the next IPC heavy program.
--
Peter Eisentraut                  Sernanders väg 10:115
peter_e@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden