lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Mon, Nov 28, 2005 at 03:26:02PM -0500, Glenn Maynard wrote:
> On Mon, Nov 28, 2005 at 07:17:08AM -0200, Luiz Henrique de Figueiredo wrote:
> > No API function tests anything. In C, you're on your own, as in any
> > other C library.
> 
> Well, a great many libraries do consistency checks (and a great many
> others don't).  eg. open(NULL, O_RDONLY) will return errno EFAULT, not
> segfault (at least in Linux).  It's just a design choice.
not exactly, as it's not a library function, but a syscall
(or really some small wrapper for it).
For the kernel crashing is not a design choice (on non-windows systems).