< prev index next >

src/os/aix/vm/os_aix.cpp

Print this page
rev 13166 : read/write APIs in class os shall return ssize_t

*** 1,8 **** /* * Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved. ! * Copyright (c) 2012, 2017 SAP SE. 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,8 ---- /* * Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved. ! * Copyright (c) 2012, 2017, SAP SE. 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.
*** 2542,2556 **** } return addr; } ! size_t os::read(int fd, void *buf, unsigned int nBytes) { return ::read(fd, buf, nBytes); } ! size_t os::read_at(int fd, void *buf, unsigned int nBytes, jlong offset) { return ::pread(fd, buf, nBytes, offset); } void os::naked_short_sleep(jlong ms) { struct timespec req; --- 2542,2556 ---- } return addr; } ! ssize_t os::read(int fd, void *buf, unsigned int nBytes) { return ::read(fd, buf, nBytes); } ! ssize_t os::read_at(int fd, void *buf, unsigned int nBytes, jlong offset) { return ::pread(fd, buf, nBytes, offset); } void os::naked_short_sleep(jlong ms) { struct timespec req;
< prev index next >