user.h 971 B

12345678910111213141516171819202122232425262728293031
  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 int in_aton(char *str);
  13. extern int open_gdb_chan(void);
  14. /* These use size_t, however unsigned long is correct on both i386 and x86_64. */
  15. extern unsigned long strlcpy(char *, const char *, unsigned long);
  16. extern unsigned long strlcat(char *, const char *, unsigned long);
  17. #endif
  18. /*
  19. * Overrides for Emacs so that we follow Linus's tabbing style.
  20. * Emacs will notice this stuff at the end of the file and automatically
  21. * adjust the settings for this buffer only. This must remain at the end
  22. * of the file.
  23. * ---------------------------------------------------------------------------
  24. * Local variables:
  25. * c-file-style: "linux"
  26. * End:
  27. */