-
Enhancement
-
Resolution: Fixed
-
P4
-
10
-
b05
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8333818 | 17.0.13 | Paul Hohensee | P4 | Resolved | Fixed | b01 |
As most operating system's read/write APIs return a signed value where -1 reflects an error condition, the I/O methods in class os shall return an ssize_t type.
For reference, here are the API documentations of read
Solaris:
https://docs.oracle.com/cd/E26502_01/html/E29032/read-2.html#scrolltoc
BSD:
https://www.freebsd.org/cgi/man.cgi?read(2)
Linux:
https://linux.die.net/man/3/read
Windows:
https://msdn.microsoft.com/en-us/library/wyssk1bs.aspx
AIX:
https://www.ibm.com/support/knowledgecenter/en/ssw_aix_71/com.ibm.aix.basetrf2/read.htm
For reference, here are the API documentations of read
Solaris:
https://docs.oracle.com/cd/E26502_01/html/E29032/read-2.html#scrolltoc
BSD:
https://www.freebsd.org/cgi/man.cgi?read(2)
Linux:
https://linux.die.net/man/3/read
Windows:
https://msdn.microsoft.com/en-us/library/wyssk1bs.aspx
AIX:
https://www.ibm.com/support/knowledgecenter/en/ssw_aix_71/com.ibm.aix.basetrf2/read.htm
- backported by
-
JDK-8333818 read/write APIs in class os shall return ssize_t
- Resolved
- relates to
-
JDK-8214816 os::read() should not transition to _thread_blocked with safepoint check on Solaris
- Resolved
- links to
-
Commit openjdk/jdk17u-dev/2d9b1a66
-
Commit openjdk/jdk/4ff67205
-
Review openjdk/jdk17u-dev/2490
-
Review openjdk/jdk/6992
(1 links to)