[IPV4]: Correct rp_filter help text.
[linux-2.6/verdex.git] / arch / um / kernel / uaccess.c
blob054e3de0784e3607ed4e74b032bae7f511f13198
1 /*
2 * Copyright (C) 2001 Chris Emerson (cemerson@chiark.greenend.org.uk)
3 * Copyright (C) 2001, 2002 Jeff Dike (jdike@karaya.com)
4 * Licensed under the GPL
5 */
7 /* These are here rather than tt/uaccess.c because skas mode needs them in
8 * order to do SIGBUS recovery when a tmpfs mount runs out of room.
9 */
11 #include <linux/string.h>
12 #include "os.h"
14 void __do_copy(void *to, const void *from, int n)
16 memcpy(to, from, n);
20 int __do_copy_to_user(void *to, const void *from, int n,
21 void **fault_addr, void **fault_catcher)
23 unsigned long fault;
24 int faulted;
26 fault = __do_user_copy(to, from, n, fault_addr, fault_catcher,
27 __do_copy, &faulted);
28 if(!faulted) return(0);
29 else return(n - (fault - (unsigned long) to));