home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.arch      Apparently more than just beeps & boops      131,241 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 129,387 of 131,241   
   Dan Cross to Scott Lurndal   
   Re: System calls (was: VAX)   
   13 Aug 25 19:40:17   
   
   From: cross@spitfire.i.gajendra.net   
      
   In article <%C4nQ.6540$CQJe.2438@fx14.iad>,   
   Scott Lurndal  wrote:   
   >[snip]   
   >all that said, my initial point about -1 was that applications   
   >should always check for -1 (or MAP_FAILED), not for return   
   >values less than zero.  The actual kernel interface to the   
   >C library is clearly implementation dependent although it   
   >must preserve the user-visible required semantics.   
      
   For some reason, I have a vague memory of reading somewhere that   
   it was considered "more robust" to check for a negative return   
   value, and not just -1 specifically.  Perhaps this was just   
   superstition, or perhaps someone had been bit by an overly   
   permissive environment.  It certainly seems like advice that we   
   can safely discard at this point.   
      
   	- Dan C.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca