Improve os::open mode handling

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Won't Fix
    • Priority: P4
    • tbd
    • Affects Version/s: 13
    • Component/s: hotspot
    • generic
    • generic

      We presently have

        int os::open(const char* pathname, int flags, int mode);

      where the 3rd argument is only meaningful when flags contains certain values, and is otherwise effectively ignored. It would be better to have two overloads

        int os::open(const char* pathname, int flags, int mode);
        int os::open(const char* pathname, int flags);

      where the 2-arg form asserts flags doesn't contain a value that requires mode.

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

            Assignee:
            Unassigned
            Reporter:
            Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: