Skip to content

Commit

Permalink
newlib: define PATH_MAX and ARG_MAX consistently
Browse files Browse the repository at this point in the history
Fixes #289.
Fixes #534.
  • Loading branch information
igrr committed May 5, 2017
1 parent 53d5c5f commit 9f0dae4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/newlib/include/limits.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,5 +142,5 @@
#endif

#ifndef PATH_MAX
#define PATH_MAX 4096
#define PATH_MAX 1024
#endif
2 changes: 1 addition & 1 deletion components/newlib/include/sys/syslimits.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#ifndef _SYS_SYSLIMITS_H_
#define _SYS_SYSLIMITS_H_

#define ARG_MAX 65536 /* max bytes for an exec function */
#define ARG_MAX 4096 /* max bytes for an exec function */
#ifndef CHILD_MAX
#define CHILD_MAX 40 /* max simultaneous processes */
#endif
Expand Down

0 comments on commit 9f0dae4

Please sign in to comment.