< prev index next >

src/hotspot/share/gc/z/zErrno.cpp

Print this page
rev 52870 : 8214944: replace strerror by os::strerror


  29 
  30 ZErrno::ZErrno() :
  31     _error(errno) {}
  32 
  33 ZErrno::ZErrno(int error) :
  34     _error(error) {}
  35 
  36 ZErrno::operator bool() const {
  37   return _error != 0;
  38 }
  39 
  40 bool ZErrno::operator==(int error) const {
  41   return _error == error;
  42 }
  43 
  44 bool ZErrno::operator!=(int error) const {
  45   return _error != error;
  46 }
  47 
  48 const char* ZErrno::to_string() const {
  49   return strerror(_error);
  50 }


  29 
  30 ZErrno::ZErrno() :
  31     _error(errno) {}
  32 
  33 ZErrno::ZErrno(int error) :
  34     _error(error) {}
  35 
  36 ZErrno::operator bool() const {
  37   return _error != 0;
  38 }
  39 
  40 bool ZErrno::operator==(int error) const {
  41   return _error == error;
  42 }
  43 
  44 bool ZErrno::operator!=(int error) const {
  45   return _error != error;
  46 }
  47 
  48 const char* ZErrno::to_string() const {
  49   return os::strerror(_error);
  50 }
< prev index next >