]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(Checking for Errors): Mention EFAULT as result of stack extension failure
authorRoland McGrath <roland@gnu.org>
Sun, 16 Oct 1994 23:24:42 +0000 (23:24 +0000)
committerRoland McGrath <roland@gnu.org>
Sun, 16 Oct 1994 23:24:42 +0000 (23:24 +0000)
on Unix.

manual/errno.texi

index 07bd5fd20ce196db59b2c3a1aadeee305163f81c..683b0564def5a6e5281826e14b3ad7246c579536 100644 (file)
@@ -101,6 +101,12 @@ happen as a result of a bug in your program, and since it will not
 happen on the GNU system, we have saved space by not mentioning
 @code{EFAULT} in the descriptions of individual functions.
 
+In some Unix systems, many system calls can also return @code{EFAULT} if
+given as an argument a pointer into the stack, and the kernel for some
+obscure reason fails in its attempt to extend the stack.  If this ever
+happens, you should probably try using statically or dynamically
+allocated memory instead of stack memory on that system.
+
 @node Error Codes, Error Messages, Checking for Errors, Error Reporting
 @section Error Codes