Skip to content

Commit

Permalink
limits.h: define PIPE_BUF.
Browse files Browse the repository at this point in the history
  • Loading branch information
korli committed Apr 19, 2017
1 parent 15d60d5 commit 41458d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions headers/posix/limits.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#define OPEN_MAX (128)
#define PAGESIZE (4096)
#define PATH_MAX (1024)
#define PIPE_BUF (4 * 1024)
#define PIPE_MAX (512)
#define PTHREAD_KEYS_MAX 256
#define PTHREAD_STACK_MIN (2 * PAGESIZE)
Expand Down
2 changes: 1 addition & 1 deletion headers/private/system/vfs_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ struct fd_info {

/* 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) */
#define VFS_FIFO_ATOMIC_WRITE_SIZE (4 * 1024)
#define VFS_FIFO_ATOMIC_WRITE_SIZE PIPE_BUF

/* pipe/FIFO buffer capacity */
#define VFS_FIFO_BUFFER_CAPACITY (64 * 1024)
Expand Down

0 comments on commit 41458d9

Please sign in to comment.