257 } 258 259 inline int os::get_sock_opt(int fd, int level, int optname, 260 char *optval, socklen_t* optlen) { 261 return ::getsockopt(fd, level, optname, optval, optlen); 262 } 263 264 inline int os::set_sock_opt(int fd, int level, int optname, 265 const char* optval, socklen_t optlen) { 266 return ::setsockopt(fd, level, optname, optval, optlen); 267 } 268 269 inline bool os::supports_monotonic_clock() { 270 #ifdef __APPLE__ 271 return true; 272 #else 273 return Bsd::_clock_gettime != NULL; 274 #endif 275 } 276 277 #endif // OS_BSD_VM_OS_BSD_INLINE_HPP | 257 } 258 259 inline int os::get_sock_opt(int fd, int level, int optname, 260 char *optval, socklen_t* optlen) { 261 return ::getsockopt(fd, level, optname, optval, optlen); 262 } 263 264 inline int os::set_sock_opt(int fd, int level, int optname, 265 const char* optval, socklen_t optlen) { 266 return ::setsockopt(fd, level, optname, optval, optlen); 267 } 268 269 inline bool os::supports_monotonic_clock() { 270 #ifdef __APPLE__ 271 return true; 272 #else 273 return Bsd::_clock_gettime != NULL; 274 #endif 275 } 276 277 inline void os::exit(int num) { 278 ::exit(num); 279 } 280 281 #endif // OS_BSD_VM_OS_BSD_INLINE_HPP |