user.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (C) 2000 Jeff Dike (jdike@karaya.com)
  3. * Licensed under the GPL
  4. */
  5. #ifndef __USER_H__
  6. #define __USER_H__
  7. extern void panic(const char *fmt, ...);
  8. extern int printk(const char *fmt, ...);
  9. extern void schedule(void);
  10. extern void *um_kmalloc(int size);
  11. extern void *um_kmalloc_atomic(int size);
  12. extern void kfree(void *ptr);
  13. extern int in_aton(char *str);
  14. extern int open_gdb_chan(void);
  15. /* These use size_t, however unsigned long is correct on both i386 and x86_64. */
  16. extern unsigned long strlcpy(char *, const char *, unsigned long);
  17. extern unsigned long strlcat(char *, const char *, unsigned long);
  18. extern void *um_vmalloc(int size);
  19. extern void vfree(void *ptr);
  20. #endif
  21. /*
  22. * Overrides for Emacs so that we follow Linus's tabbing style.
  23. * Emacs will notice this stuff at the end of the file and automatically
  24. * adjust the settings for this buffer only. This must remain at the end
  25. * of the file.
  26. * ---------------------------------------------------------------------------
  27. * Local variables:
  28. * c-file-style: "linux"
  29. * End:
  30. */