< prev index next >
src/os/linux/vm/os_linux.inline.hpp
Print this page
rev 13166 : read/write APIs in class os shall return ssize_t
*** 1,7 ****
/*
! * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 131,149 ****
} while(false)
inline bool os::numa_has_static_binding() { return true; }
inline bool os::numa_has_group_homing() { return false; }
! inline size_t os::restartable_read(int fd, void *buf, unsigned int nBytes) {
! size_t res;
! RESTARTABLE( (size_t) ::read(fd, buf, (size_t) nBytes), res);
return res;
}
! inline size_t os::write(int fd, const void *buf, unsigned int nBytes) {
! size_t res;
! RESTARTABLE((size_t) ::write(fd, buf, (size_t) nBytes), res);
return res;
}
inline int os::close(int fd) {
return ::close(fd);
--- 131,149 ----
} while(false)
inline bool os::numa_has_static_binding() { return true; }
inline bool os::numa_has_group_homing() { return false; }
! inline ssize_t os::restartable_read(int fd, void *buf, unsigned int nBytes) {
! ssize_t res;
! RESTARTABLE(::read(fd, buf, (size_t) nBytes), res);
return res;
}
! inline ssize_t os::write(int fd, const void *buf, unsigned int nBytes) {
! ssize_t res;
! RESTARTABLE(::write(fd, buf, (size_t) nBytes), res);
return res;
}
inline int os::close(int fd) {
return ::close(fd);
< prev index next >