> lines 517-518, elsewhere:  What happens if alloca fails (is such a thing 
 > possible)? 

It is no more or less possible than a stack allocation failing -- e.g., if
we're going to worry that:

        char buf[2048];

... might "fail" (in some equally undefined way), then we need to worry
about alloca().  But I think worrying about such things for any reasonable
buffer size (e.g., <8K) is needless.

 > The man page indicates that its behavior is undefined if there is not
 > enough space available to service the request, and also includes a
 > warning that its use is strongly discouraged.

That warning -- at least as it pertains to Solaris -- is ancient and
probably should've been removed a decade ago.

-- 
meem
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to