equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * Copyright (c) 2012, 2018 SAP SE. All rights reserved. |
3 * Copyright (c) 2012, 2018 SAP SE. All rights reserved. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 * |
5 * |
6 * This code is free software; you can redistribute it and/or modify it |
6 * This code is free software; you can redistribute it and/or modify it |
7 * under the terms of the GNU General Public License version 2 only, as |
7 * under the terms of the GNU General Public License version 2 only, as |
2592 } |
2592 } |
2593 |
2593 |
2594 return addr; |
2594 return addr; |
2595 } |
2595 } |
2596 |
2596 |
2597 size_t os::read(int fd, void *buf, unsigned int nBytes) { |
|
2598 return ::read(fd, buf, nBytes); |
|
2599 } |
|
2600 |
|
2601 size_t os::read_at(int fd, void *buf, unsigned int nBytes, jlong offset) { |
|
2602 return ::pread(fd, buf, nBytes, offset); |
|
2603 } |
|
2604 |
|
2605 // Sleep forever; naked call to OS-specific sleep; use with CAUTION |
2597 // Sleep forever; naked call to OS-specific sleep; use with CAUTION |
2606 void os::infinite_sleep() { |
2598 void os::infinite_sleep() { |
2607 while (true) { // sleep forever ... |
2599 while (true) { // sleep forever ... |
2608 ::sleep(100); // ... 100 seconds at a time |
2600 ::sleep(100); // ... 100 seconds at a time |
2609 } |
2601 } |