[prev in list] [next in list] [prev in thread] [next in thread]
List: glibc-help
Subject: Type of FD_ISSET happens to be bool in C++
From: sbergman () redhat ! com (Stephan Bergmann)
Date: 2014-11-19 11:14:00
Message-ID: 546C7BAC.6080405 () redhat ! com
[Download RAW message or body]
While SUS mandates FD_ISSET to have return type int (in C, which is all
SUS is concerned with), the definition
> #define __FD_ISSET(d, set) \
> ((__FDS_BITS (set)[__FD_ELT (d)] & __FD_MASK (d)) != 0)
in bits/select.h causes it to have type bool instead in C++. Is that by
design or by accident?
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic