digitalmars.D - linux vs posix (changeset 578).
- Leandro Lucarella (17/17) Feb 15 2008 Hi, I saw Walter added new functions (getgid, getuid and such) to the li...
- Walter Bright (3/17) Feb 15 2008 Yes, it would probably be nice to create a unistd.d. Would you like to
- jcc7 (4/23) Feb 15 2008 Hasn't Sean Kelly already done this for Tango?
- Walter Bright (3/6) Feb 15 2008 Even better!
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 -- Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/ ---------------------------------------------------------------------------- GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05) ---------------------------------------------------------------------------- Cómo ser inconmensurablemente atractivo a la mujer del sexo opuesto. -- Libro de autoayuda de Hector Mesina.
Feb 15 2008
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/578Yes, it would probably be nice to create a unistd.d. Would you like to do it?
Feb 15 2008
== Quote from Walter Bright (newshound1 digitalmars.com)'s articleLeandro Lucarella wrote: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".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/578Yes, it would probably be nice to create a unistd.d. Would you like to do it?
Feb 15 2008
jcc7 wrote:Hasn't Sean Kelly already done this for Tango? http://www.dsource.org/projects/tango/browser/trunk/tango/stdc/posix/unistd.dLooks like he has! Great!It says "Public Domain".Even better!
Feb 15 2008