Hi, Nicholas Marriott wrote on Tue, Oct 06, 2015 at 11:53:48AM +0100: > On Tue, Oct 06, 2015 at 12:25:57PM +0200, Benny Lofgren wrote:
>> In any case, I hope you at least agree with me that the documentation >> should reflect actual behaviour? :-) I've updated my diff to tame.2 to >> describe the error returns more accurately, minus the errno change. Committed with minimal tweaks, thanks. >> (And I hope I got it right, I suck at mdoc...) > this is ok with me Thanks for checking it. Ingo >> Index: tame.2 >> =================================================================== >> RCS file: /cvs/src/lib/libc/sys/tame.2,v >> retrieving revision 1.31 >> diff -u -p -r1.31 tame.2 >> --- tame.2 4 Oct 2015 20:47:16 -0000 1.31 >> +++ tame.2 6 Oct 2015 10:13:13 -0000 >> @@ -424,17 +424,24 @@ will fail if: >> .Bl -tag -width Er >> .It Bq Er EFAULT >> .Fa paths >> +or one of its elements, or >> +.Fa request >> points outside the process's allocated address space. >> .It Bq Er ENAMETOOLONG >> An element of >> .Fa paths >> -is too large, or prepending >> +is too large, prepending >> .Fa cwd >> to it would exceed >> .Dv PATH_MAX >> -bytes. >> +bytes, or >> +.Fa request >> +is too long. >> .It Bq Er EPERM >> -This process is attempting to increase permissions. >> +This process is attempting to increase its permissions. >> +.It Bq Er EINVAL >> +.Ar request >> +is malformed or contains invalid keywords. >> .It Bq Er E2BIG >> The >> .Ar paths
