Penguin

Differences between version 6 and predecessor to the previous major change of ENOMEM.

Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History

Newer page: version 6 Last edited on Saturday, February 22, 2003 9:08:27 pm by JohnMcPherson Revert
Older page: version 4 Last edited on Saturday, February 22, 2003 11:21:34 am by MarekShnur Revert
@@ -1,7 +1,17 @@
 !!!Out of memory 
  
 Insufficient kernel memory was available for your request. 
+  
+This almost certainly means that one or more programs on your machine has gone out of control and has used up all of the virtual memory (physical and swap) on the machine. Expect lots of weird things to happen as many programs don't check for this (for example if malloc(3) failed).  
  
 I found that ENOMEM is declared in /usr/include/sys/errno.h 
 %%% 
 but in mine linux distribution it is defined in /usr/include/asm/errno.h 
+  
+You should never need to include anything from asm/ bits/ or linux/ directly. For example:  
+* errno.h includes bits/errno.h  
+* bits/errno.h includes linux/errno.h and defines [ENOTSUP] as an alias for [ENOTSUPPORTED], and [EDOM], [EILSEQ] and [ERANGE], since these are only ever generated by libc, not by the kernel  
+* linux/errno.h includes asm/errno.h and defines [ERESTARTSYS], [ERESTARTNOINTR], [ERESTARTNOHAND], [ENOIOCTLCMD], [EBADHANDLE], [ENOTSYNC], [EBADCOOKIE], [ENOTSUPP], [ESERVERFAULT], [ETOOSMALL], [EBADTYPE], [EJUKEBOX] (but only for the kernel, these are never defined in userspace)  
+* asm/errno.h has the #define's for all the usual errno's  
+  
+so, you should #include <errno.h> to get all the errno's, or you'll miss some :)  
The following authors of this page have not agreed to the WlugWikiLicense. As such copyright to all content on this page is retained by the original authors.
  • MarekShnur
The following authors of this page have agreed to the WlugWikiLicense.

lib/plugin/WlugLicense.php (In template 'html'):99: Warning: Invalid argument supplied for foreach()

lib/plugin/WlugLicense.php (In template 'html'):111: Notice: Undefined variable: ignore_authors

lib/plugin/WlugLicense.php (In template 'html'):111: Notice: Undefined variable: ignore_authors