user.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. __attribute__ ((format (printf, 1, 2)));
  9. extern int printk(const char *fmt, ...)
  10. __attribute__ ((format (printf, 1, 2)));
  11. extern void schedule(void);
  12. extern void *um_kmalloc(int size);
  13. extern void *um_kmalloc_atomic(int size);
  14. extern void kfree(void *ptr);
  15. extern int in_aton(char *str);
  16. extern int open_gdb_chan(void);
  17. /* These use size_t, however unsigned long is correct on both i386 and x86_64. */
  18. extern unsigned long strlcpy(char *, const char *, unsigned long);
  19. extern unsigned long strlcat(char *, const char *, unsigned long);
  20. extern void *um_vmalloc(int size);
  21. extern void *um_vmalloc_atomic(int size);
  22. extern void vfree(void *ptr);
  23. #endif
  24. /*
  25. * Overrides for Emacs so that we follow Linus's tabbing style.
  26. * Emacs will notice this stuff at the end of the file and automatically
  27. * adjust the settings for this buffer only. This must remain at the end
  28. * of the file.
  29. * ---------------------------------------------------------------------------
  30. * Local variables:
  31. * c-file-style: "linux"
  32. * End:
  33. */