This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/2363] New: EOPNOTSUPP and ENOTSUP in errno.h must be different, according to SUSv3


The values of EOPNOTSUPP and ENOTSUP must be different according to SUSv3,
whereas in glibc they are the same.

Steps to Reproduce:
0. Create a source file including a switch statement with both EOPNOTSUPP and
ENOTSUP as case values.
1. Attempt to compile said file.
2. Scream in frustration.

Actual Results:
gcc complains about duplicate case values because the two errors are the same.

Expected Results:
gcc doesn't complain because there is no syntax error.

Build Date and Platform:
Debian GNU/Linux i386/sid, using libc6 2.3.6-1.

Additional Builds and Platforms:
- Also Occurs On:
  Debian GNU/Linux powerpc/sid, using libc6 2.3.6-1.

-- 
           Summary: EOPNOTSUPP and ENOTSUP in errno.h must be different,
                    according to SUSv3
           Product: glibc
           Version: 2.3.6
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: sandals at crustytoothpaste dot ath dot cx
                CC: glibc-bugs at sources dot redhat dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=2363

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]