blob: 0a3f7d1d0dc3f88258a8b4aa28940ad4564b30d1 [file] [log] [blame]
// Copyright 2017 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_FDIO_INCLUDE_LIB_FDIO_LIMITS_H_
#define LIB_FDIO_INCLUDE_LIB_FDIO_LIMITS_H_
#include <limits.h>
// Maximum number of fds per process.
// TODO(fxbug.dev/33737): Investigate making the array expand dynamically to avoid
// having to increase this further.
#define FDIO_MAX_FD 1024
// fdio_ops_t's read/write are able to do io of
// at least this size.
#define FDIO_CHUNK_SIZE 8192
// Maximum length of a filename.
#define FDIO_MAX_FILENAME NAME_MAX
#endif // LIB_FDIO_INCLUDE_LIB_FDIO_LIMITS_H_