equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
4537 |
4537 |
4538 jlong os::lseek(int fd, jlong offset, int whence) { |
4538 jlong os::lseek(int fd, jlong offset, int whence) { |
4539 return (jlong) ::_lseeki64(fd, offset, whence); |
4539 return (jlong) ::_lseeki64(fd, offset, whence); |
4540 } |
4540 } |
4541 |
4541 |
4542 size_t os::read_at(int fd, void *buf, unsigned int nBytes, jlong offset) { |
4542 ssize_t os::read_at(int fd, void *buf, unsigned int nBytes, jlong offset) { |
4543 OVERLAPPED ov; |
4543 OVERLAPPED ov; |
4544 DWORD nread; |
4544 DWORD nread; |
4545 BOOL result; |
4545 BOOL result; |
4546 |
4546 |
4547 ZeroMemory(&ov, sizeof(ov)); |
4547 ZeroMemory(&ov, sizeof(ov)); |