blob: 03187c59ebe3ef22d5bd1a77f13243dfa7de8a68 [file] [log] [blame]
// Copyright 2021 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <stdint.h>
#include <zircon/fidl.h>
// This definition of a bit of is here because llcpp has dependencies on
// new/delete, which aren't possible when this code is used in libc.
constexpr uint64_t fuchsia_io_MAX_PATH = 4096;
constexpr uint32_t fuchsia_io_OPEN_RIGHT_READABLE = 1;
constexpr uint32_t fuchsia_io_OPEN_RIGHT_WRITABLE = 2;
constexpr uint64_t fuchsia_io_DirectoryOpenOrdinal = 0x2C5044561D685EC0ull;
struct fuchsia_io_DirectoryOpenRequest {
fidl_message_header_t hdr;
uint32_t flags;
uint32_t mode;
fidl_string_t path;
zx_handle_t object;