Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8183227

read/write APIs in class os shall return ssize_t

XMLWordPrintable

    • b05
    • generic

        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

              hseigel Harold Seigel (Inactive)
              clanger Christoph Langer
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: