linux vs posix (changeset 578).

jcc7 technocrat7 at gmail.com
Fri Feb 15 12:38:19 PST 2008


== Quote from Walter Bright (newshound1 at digitalmars.com)'s article
> Leandro Lucarella wrote:
> > Hi, I saw Walter added new functions (getgid, getuid and such) to
> > the linux module that are POSIX functions[1] on Phobos changeset
> > 578[2].
> >
> > Wouldn't be better to create a posix module with all POSIX
> > functionality (or event better, a posix package, with the same
> > structure as the standard suggests for grouping the functionality,
> > like std.posix.unistd, std.posix.fcntl, etc.)? And leave the linux
> > package for Linux specific stuff, like epoll, tipc, eventfd,
> > clone, etc.?
> >
> > I think D2 is a good place to do that...
> >
> > [1] http://www.opengroup.org/onlinepubs/009695399/basedefs/unistd.h.html
> > [2] http://www.dsource.org/projects/phobos/changeset/578
> >
> Yes, it would probably be nice to create a unistd.d. Would you like
> to do it?

Hasn't Sean Kelly already done this for Tango?
http://www.dsource.org/projects/tango/browser/trunk/tango/stdc/posix/unistd.d

It says "Public Domain".



More information about the Digitalmars-d mailing list