Reference fuchsia.io/OpenFlags

$ git grep -l 'wire::kOpenRight' | xargs sed -E -i 's/wire::kOpenRight/wire::OpenFlags::kRight/g'

Change-Id: Iae77b46968947564745330353521012d5c1ec5ea
Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/Vulkan-Loader/+/663787
Reviewed-by: Adam Barth <abarth@google.com>
diff --git a/fuchsia/dlopen_fuchsia.cc b/fuchsia/dlopen_fuchsia.cc
index 4542ed3..85df706 100644
--- a/fuchsia/dlopen_fuchsia.cc
+++ b/fuchsia/dlopen_fuchsia.cc
@@ -79,8 +79,8 @@
 // have access to. They can only be loaded by opening the file and using dlopen_vmo.
 static void *dlopen_using_vmo(const char *name, int mode) {
     int fd;
-    zx_status_t status =
-        fdio_open_fd(name, static_cast<uint32_t>(fio::wire::kOpenRightReadable | fio::wire::kOpenRightExecutable), &fd);
+    zx_status_t status = fdio_open_fd(
+        name, static_cast<uint32_t>(fio::wire::OpenFlags::kRightReadable | fio::wire::OpenFlags::kRightExecutable), &fd);
     if (status != ZX_OK) {
         append_to_error("libvulkan.so:dlopen_using_vmo: couldn't open fd, %d\n", status);
         return nullptr;
diff --git a/fuchsia/loader_extensions.cc b/fuchsia/loader_extensions.cc
index e240346..bf92981 100644
--- a/fuchsia/loader_extensions.cc
+++ b/fuchsia/loader_extensions.cc
@@ -42,18 +42,18 @@
         size_t prefix_size = strlen(kGpuDevicePrefix);
         size_t name_size = strlen(pName);
         if (prefix_size == name_size) {
-            status = fdio_open_at(device_fs, ".", static_cast<uint32_t>(fuchsia_io::wire::kOpenRightReadable), handle);
+            status = fdio_open_at(device_fs, ".", static_cast<uint32_t>(fuchsia_io::wire::OpenFlags::kRightReadable), handle);
         } else {
             const char *new_name = pName + prefix_size;
             if (new_name[0] != '/') {
                 // Name must be "/loader-gpu-devices/", or that's a bug.
                 return VK_ERROR_INITIALIZATION_FAILED;
             }
-            status = fdio_open_at(device_fs, new_name, static_cast<uint32_t>(fuchsia_io::wire::kOpenRightReadable), handle);
+            status = fdio_open_at(device_fs, new_name, static_cast<uint32_t>(fuchsia_io::wire::OpenFlags::kRightReadable), handle);
         }
     } else {
         // fdio_service_connect specifies READ+WRITE, which fails for read-only files
-        status = fdio_open(pName, static_cast<uint32_t>(fuchsia_io::wire::kOpenRightReadable), handle);
+        status = fdio_open(pName, static_cast<uint32_t>(fuchsia_io::wire::OpenFlags::kRightReadable), handle);
     }
 
     if (status == ZX_OK) {