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

Improve os::open mode handling

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • tbd
    • 13
    • 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.)

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

              Created:
              Updated:
              Resolved: