root/include/linux/kernel.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 #ifndef _LINUX_KERNEL_H
   2 #define _LINUX_KERNEL_H
   3 
   4 /*
   5  * 'kernel.h' contains some often-used function prototypes etc
   6  */
   7 
   8 void verify_area(void * addr,int count);
   9 volatile void panic(const char * str);
  10 volatile void do_exit(long error_code);
  11 unsigned long simple_strtoul(const char *,char **,unsigned int);
  12 int printk(const char * fmt, ...);
  13 void * malloc(unsigned int size);
  14 void free_s(void * obj, int size);
  15 
  16 #define free(x) free_s((x), 0)
  17 
  18 /*
  19  * This is defined as a macro, but at some point this might become a
  20  * real subroutine that sets a flag if it returns true (to do
  21  * BSD-style accounting where the process is flagged if it uses root
  22  * privs).  The implication of this is that you should do normal
  23  * permissions checks first, and check suser() last.
  24  */
  25 #define suser() (current->euid == 0)
  26 
  27 #endif

/* [previous][next][first][last][top][bottom][index][help] */