kern_syscalls.c (209579) | kern_syscalls.c (214125) |
---|---|
1/*- 2 * Copyright (c) 1999 Assar Westerlund 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1999 Assar Westerlund 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/kern/kern_syscalls.c 209579 2010-06-28 18:06:46Z kib $"); | 28__FBSDID("$FreeBSD: head/sys/kern/kern_syscalls.c 214125 2010-10-21 08:57:25Z delphij $"); |
29 30#include <sys/param.h> 31#include <sys/kernel.h> 32#include <sys/lock.h> 33#include <sys/module.h> 34#include <sys/sx.h> 35#include <sys/syscall.h> 36#include <sys/sysent.h> --- 142 unchanged lines hidden (view full) --- 179 return error; 180 } 181 error = syscall_deregister(data->offset, &data->old_sysent); 182 return (error); 183 default: 184 return EOPNOTSUPP; 185 } 186 | 29 30#include <sys/param.h> 31#include <sys/kernel.h> 32#include <sys/lock.h> 33#include <sys/module.h> 34#include <sys/sx.h> 35#include <sys/syscall.h> 36#include <sys/sysent.h> --- 142 unchanged lines hidden (view full) --- 179 return error; 180 } 181 error = syscall_deregister(data->offset, &data->old_sysent); 182 return (error); 183 default: 184 return EOPNOTSUPP; 185 } 186 |
187 if (data->chainevh) 188 return (data->chainevh(mod, what, data->chainarg)); 189 else 190 return (0); | 187 /* NOTREACHED */ |
191} 192 193int 194syscall_helper_register(struct syscall_helper_data *sd) 195{ 196 struct syscall_helper_data *sd1; 197 int error; 198 --- 23 unchanged lines hidden --- | 188} 189 190int 191syscall_helper_register(struct syscall_helper_data *sd) 192{ 193 struct syscall_helper_data *sd1; 194 int error; 195 --- 23 unchanged lines hidden --- |