Thread overview
[Issue 8273] New: FreeBSD core.sys.posix.unistd enums severely lacking
Jun 20, 2012
Walter Bright
Jun 20, 2012
Walter Bright
June 20, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8273

           Summary: FreeBSD core.sys.posix.unistd enums severely lacking
           Product: D
           Version: D2
          Platform: All
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: nobody@puremagic.com
        ReportedBy: alex@lycus.org


--- Comment #0 from Alex Rønne Petersen <alex@lycus.org> 2012-06-20 21:02:57 CEST ---
The enums in core.sys.posix.unistd are not at all in sync with FreeBSD's unistd.h.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 20, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8273


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com


--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> 2012-06-20 12:59:41 PDT ---
Which ones are you talking about? I checked these:

else version( FreeBSD )
{
    enum F_OK       = 0;
    enum R_OK       = 0x04;
    enum W_OK       = 0x02;
    enum X_OK       = 0x01;

    enum F_ULOCK    = 0;
    enum F_LOCK     = 1;
    enum F_TLOCK    = 2;
    enum F_TEST     = 3;
}

from unistd.d and they are correct.

Please be specific about what is in error.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 20, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8273



--- Comment #2 from Alex Rønne Petersen <alex@lycus.org> 2012-06-20 22:00:54 CEST ---
More specifically, all the _SC_* constants that are specified in POSIX
(_SC_PAGESIZE for example) are not there (but are in unistd.h). Note that they
are there for Linux, but not FreeBSD (and also note that FreeBSD's definitions
are completely different).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 20, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8273


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 24, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8273



--- Comment #3 from Alex Rønne Petersen <alex@lycus.org> 2012-06-25 00:21:29 CEST ---
The enums also seem to be severely lacking on OS X (same identifiers).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 10, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8273


Alex Rønne Petersen <alex@lycus.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |alex@lycus.org
         AssignedTo|nobody@puremagic.com        |alex@lycus.org


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------