blob: 91b0ac4ad88cceb8b9961c6ba667f4d16133a197 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * Copyright (C) 2000 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
4 */
5
6#ifndef __USER_H__
7#define __USER_H__
8
9extern void panic(const char *fmt, ...);
10extern int printk(const char *fmt, ...);
11extern void schedule(void);
12extern void *um_kmalloc(int size);
13extern void *um_kmalloc_atomic(int size);
14extern void kfree(void *ptr);
15extern int in_aton(char *str);
16extern int open_gdb_chan(void);
Paolo 'Blaisorblade' Giarrussoa8bfb942005-09-22 21:44:14 -070017/* These use size_t, however unsigned long is correct on both i386 and x86_64. */
18extern unsigned long strlcpy(char *, const char *, unsigned long);
19extern unsigned long strlcat(char *, const char *, unsigned long);
Linus Torvalds1da177e2005-04-16 15:20:36 -070020extern void *um_vmalloc(int size);
Paolo 'Blaisorblade' Giarrussob6316292006-01-18 17:42:58 -080021extern void *um_vmalloc_atomic(int size);
Linus Torvalds1da177e2005-04-16 15:20:36 -070022extern void vfree(void *ptr);
23
24#endif
25
26/*
27 * Overrides for Emacs so that we follow Linus's tabbing style.
28 * Emacs will notice this stuff at the end of the file and automatically
29 * adjust the settings for this buffer only. This must remain at the end
30 * of the file.
31 * ---------------------------------------------------------------------------
32 * Local variables:
33 * c-file-style: "linux"
34 * End:
35 */