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 * 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. |
552 |
552 |
553 FILE* os::open(int fd, const char* mode) { |
553 FILE* os::open(int fd, const char* mode) { |
554 return ::fdopen(fd, mode); |
554 return ::fdopen(fd, mode); |
555 } |
555 } |
556 |
556 |
|
557 ssize_t os::read_at(int fd, void *buf, unsigned int nBytes, jlong offset) { |
|
558 return ::pread(fd, buf, nBytes, offset); |
|
559 } |
|
560 |
557 void os::flockfile(FILE* fp) { |
561 void os::flockfile(FILE* fp) { |
558 ::flockfile(fp); |
562 ::flockfile(fp); |
559 } |
563 } |
560 |
564 |
561 void os::funlockfile(FILE* fp) { |
565 void os::funlockfile(FILE* fp) { |