user.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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 *um_vmalloc_atomic(int size);
  20. extern void vfree(void *ptr);
  21. #endif
  22. /*
  23. * Overrides for Emacs so that we follow Linus's tabbing style.
  24. * Emacs will notice this stuff at the end of the file and automatically
  25. * adjust the settings for this buffer only. This must remain at the end
  26. * of the file.
  27. * ---------------------------------------------------------------------------
  28. * Local variables:
  29. * c-file-style: "linux"
  30. * End:
  31. */