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

Confusing overloads for os::open

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b05
    • CPU:
      generic
    • OS:
      generic

      Description

      os::open presently has the following overloads:

        int open(const char* pathname, int flags, int mode);
        FILE* open(int fd, const char* mode);

      The present 2-arg overload is really fdopen, and should be renamed accordingly. Two overloads in the same "namespace" with completely different semantics is just confusing, even more so with JDK-8218856.

      (This suggestion came out of the review for JDK-8218811.)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              hseigel Harold Seigel
              Reporter:
              kbarrett Kim Barrett
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: