Welcome to The Fiwix Project
A UNIX-like kernel for the i386 architecture
1 /* 2 * fiwix/include/fiwix/limits.h 3 * 4 * Copyright 2018, Jordi Sanfeliu. All rights reserved. 5 * Distributed under the terms of the Fiwix License. 6 */ 7 8 #ifndef _FIWIX_LIMITS_H 9 #define _FIWIX_LIMITS_H 10 11 #define DEVNAME_MAX 50 /* device name length in mount table */ 12 #define ARG_MAX 32 /* length (in pages) of argv+env in 'execve' */ 13 #define CHILD_MAX 64 /* simultaneous processes per real user ID */ 14 #define LINK_MAX 255 /* maximum number of links to a file */ 15 #define MAX_CANON 255 /* bytes in a terminal canonical input queue */ 16 #define MAX_INPUT 255 /* bytes for which space will be available in a 17 terminal input queue */ 18 #define NGROUPS_MAX 32 /* simultaneous supplementary group IDs */ 19 #define OPEN_MAX 256 /* files one process can have opened at once */ 20 #define FD_SETSIZE OPEN_MAX /* descriptors that a process may examine with 21 'pselect' or 'select' */ 22 #define NAME_MAX 255 /* bytes in a filename */ 23 #define PATH_MAX 1024 /* bytes in a pathname */ 24 #define PIPE_BUF 4096 /* bytes than can be written atomically to a 25 pipe */ 26 27 #endif /* _FIWIX_LIMITS_H */