blob: df27cb81214a725285f301d6d9f4fb27b79bd410 [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.
#ifndef LIB_C_SANITIZERS_FUCHSIA_IO_CONSTANTS_H_
#define LIB_C_SANITIZERS_FUCHSIA_IO_CONSTANTS_H_
#include <stdint.h>
#include <zircon/fidl.h>
// TODO(https://fxbug.dev/42072760): This should be generated by Zither
constexpr uint64_t fuchsia_io_MAX_PATH_LENGTH = 4095;
constexpr uint64_t fuchsia_io_MAX_NAME_LENGTH = 255;
// This definition of a bit of fuchsia.io.Directory/Open 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_DirectoryOpenOrdinal = 0x568ddcb9a9cbb6d9lu;
struct fuchsia_io_DirectoryOpenRequest {
FIDL_ALIGNDECL
fidl_message_header_t hdr;
fidl_string_t path;
uint64_t flags;
fidl_table_t options;
zx_handle_t object;
};
#endif // LIB_C_SANITIZERS_FUCHSIA_IO_CONSTANTS_H_