1/* 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 9/* 10 * The usual definition - copied here because the kernel provides its own, 11 * fancier, type-safe, definition. Using that one would require 12 * copying too much infrastructure for my taste, so userspace files 13 * get less checking than kernel files. 14 */ 15#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) 16 17/* 18 * This will provide the size_t definition in both kernel and userspace builds 19 */ 20#include <linux/types.h> 21 22extern void panic(const char *fmt, ...) 23 __attribute__ ((format (printf, 1, 2))); 24extern int printk(const char *fmt, ...) 25 __attribute__ ((format (printf, 1, 2))); 26extern void schedule(void); 27extern int in_aton(char *str); 28extern int open_gdb_chan(void); 29extern size_t strlcpy(char *, const char *, size_t); 30extern size_t strlcat(char *, const char *, size_t); 31 32#endif 33