akaros/kern/include/ros/limits.h
<<
>>
Prefs
   1#pragma once
   2
   3/* Keep this 255 to stay in sync with glibc (expects d_name[256]) */
   4#define MAX_FILENAME_SZ 255
   5/* POSIX / glibc name: */
   6#define NAME_MAX MAX_FILENAME_SZ
   7
   8#define PATH_MAX 4096 /* includes null-termination */
   9
  10/* # bytes of args + environ for exec()  (i.e. max size of argenv) */
  11#define ARG_MAX (32 * 4096) /* Good chunk of our 256 page stack */
  12
  13/* This partitions the FD space.  Negative values are errors (bit 31).  Bits
  14 * 0-19 are for kernel FDs.  Bits 20-30 are for userspace shims. */
  15#define NR_FILE_DESC_MAX (1 << 19)
  16