/* * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) * Licensed under the GPL */ #ifndef __USER_H__ #define __USER_H__ #include <generated/asm-offsets.h> /* * The usual definition - copied here because the kernel provides its own, * fancier, type-safe, definition. Using that one would require * copying too much infrastructure for my taste, so userspace files * get less checking than kernel files. */ #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) /* This is to get size_t */ #ifndef __UM_HOST__ #include <linux/types.h> #else #include <stddef.h> #endif extern void panic(const char *fmt, ...) __attribute__ ((format (printf, 1, 2))); /* Requires preincluding include/linux/kern_levels.h */ #define UM_KERN_EMERG KERN_EMERG #define UM_KERN_ALERT KERN_ALERT #define UM_KERN_CRIT KERN_CRIT #define UM_KERN_ERR KERN_ERR #define UM_KERN_WARNING KERN_WARNING #define UM_KERN_NOTICE KERN_NOTICE #define UM_KERN_INFO KERN_INFO #define UM_KERN_DEBUG KERN_DEBUG #define UM_KERN_CONT KERN_CONT #ifdef UML_CONFIG_PRINTK extern int printk(const char *fmt, ...) __attribute__ ((format (printf, 1, 2))); #else static inline int printk(const char *fmt, ...) { return 0; } #endif extern int in_aton(char *str); extern size_t strlcpy(char *, const char *, size_t); extern size_t strlcat(char *, const char *, size_t); /* Copied from linux/compiler-gcc.h since we can't include it directly */ #define barrier() __asm__ __volatile__("": : :"memory") #endif
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
skas | Folder | 0755 |
|
|
aio.h | File | 530 B | 0644 |
|
arch.h | File | 350 B | 0644 |
|
as-layout.h | File | 1.56 KB | 0644 |
|
common-offsets.h | File | 1.05 KB | 0644 |
|
elf_user.h | File | 385 B | 0644 |
|
frame_kern.h | File | 392 B | 0644 |
|
init.h | File | 3.89 KB | 0644 |
|
irq_kern.h | File | 409 B | 0644 |
|
irq_user.h | File | 652 B | 0644 |
|
kern.h | File | 569 B | 0644 |
|
kern_util.h | File | 2.1 KB | 0644 |
|
longjmp.h | File | 440 B | 0644 |
|
mem.h | File | 455 B | 0644 |
|
mem_user.h | File | 2.42 KB | 0644 |
|
net_kern.h | File | 1.81 KB | 0644 |
|
net_user.h | File | 1.6 KB | 0644 |
|
os.h | File | 10.63 KB | 0644 |
|
ptrace_user.h | File | 1.88 KB | 0644 |
|
registers.h | File | 1002 B | 0644 |
|
sigio.h | File | 271 B | 0644 |
|
timer-internal.h | File | 275 B | 0644 |
|
um_malloc.h | File | 384 B | 0644 |
|
user.h | File | 1.45 KB | 0644 |
|