1 // Copyright 2017 The Fuchsia Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #pragma once 6 7 #include <limits.h> 8 9 // Maximum number of fds per process. 10 #define FDIO_MAX_FD 256 11 12 // Maximum handles used in open/clone/create. 13 #define FDIO_MAX_HANDLES 3 14 15 // fdio_ops_t's read/write are able to do io of 16 // at least this size. 17 #define FDIO_CHUNK_SIZE 8192 18 19 // Maximum size for an ioctl input. 20 #define FDIO_IOCTL_MAX_INPUT 1024 21 22 // Maximum length of a filename. 23 #define FDIO_MAX_FILENAME NAME_MAX 24