Syscall tests for PATH_MAX
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 20 Apr 2015 22:38:40 +0000 (18:38 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 20 Apr 2015 22:38:40 +0000 (18:38 -0400)
commitc34d074cd200620b19a2536652ed156b4d0e207d
treea0453d8039e5eba3db7a8baa24e867f157f2d5fb
parent572f500f0f636d54a55336dafa84f2bce8c3742a
Syscall tests for PATH_MAX

Even though it's possible for the user to build a path longer than
PATH_MAX (e.g. 16 NAME_MAX filenames), we still need a limit.  If
anything 4096 seems ridiculously large (and will trigger 2-contig page
allocs...).
kern/src/syscall.c