limits.h: define PIPE_BUF.
This commit is contained in:
@@ -40,6 +40,7 @@
|
|||||||
#define OPEN_MAX (128)
|
#define OPEN_MAX (128)
|
||||||
#define PAGESIZE (4096)
|
#define PAGESIZE (4096)
|
||||||
#define PATH_MAX (1024)
|
#define PATH_MAX (1024)
|
||||||
|
#define PIPE_BUF (4 * 1024)
|
||||||
#define PIPE_MAX (512)
|
#define PIPE_MAX (512)
|
||||||
#define PTHREAD_KEYS_MAX 256
|
#define PTHREAD_KEYS_MAX 256
|
||||||
#define PTHREAD_STACK_MIN (2 * PAGESIZE)
|
#define PTHREAD_STACK_MIN (2 * PAGESIZE)
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ struct fd_info {
|
|||||||
|
|
||||||
/* maximum write size to a pipe/FIFO that is guaranteed not to be interleaved
|
/* maximum write size to a pipe/FIFO that is guaranteed not to be interleaved
|
||||||
with other writes (aka {PIPE_BUF}; must be >= _POSIX_PIPE_BUF) */
|
with other writes (aka {PIPE_BUF}; must be >= _POSIX_PIPE_BUF) */
|
||||||
#define VFS_FIFO_ATOMIC_WRITE_SIZE (4 * 1024)
|
#define VFS_FIFO_ATOMIC_WRITE_SIZE PIPE_BUF
|
||||||
|
|
||||||
/* pipe/FIFO buffer capacity */
|
/* pipe/FIFO buffer capacity */
|
||||||
#define VFS_FIFO_BUFFER_CAPACITY (64 * 1024)
|
#define VFS_FIFO_BUFFER_CAPACITY (64 * 1024)
|
||||||
|
|||||||
Reference in New Issue
Block a user