kern_syscalls.c (116182) | kern_syscalls.c (132199) |
---|---|
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 116182 2003-06-11 00:56:59Z obrien $"); | 28__FBSDID("$FreeBSD: head/sys/kern/kern_syscalls.c 132199 2004-07-15 08:26:07Z phk $"); |
29 30#include <sys/param.h> 31#include <sys/sysproto.h> 32#include <sys/sysent.h> 33#include <sys/syscall.h> 34#include <sys/lock.h> 35#include <sys/mutex.h> 36#include <sys/sx.h> --- 73 unchanged lines hidden (view full) --- 110 case MOD_UNLOAD : 111 if (data->chainevh) { 112 error = data->chainevh(mod, what, data->chainarg); 113 if (error) 114 return error; 115 } 116 error = syscall_deregister(data->offset, &data->old_sysent); 117 return error; | 29 30#include <sys/param.h> 31#include <sys/sysproto.h> 32#include <sys/sysent.h> 33#include <sys/syscall.h> 34#include <sys/lock.h> 35#include <sys/mutex.h> 36#include <sys/sx.h> --- 73 unchanged lines hidden (view full) --- 110 case MOD_UNLOAD : 111 if (data->chainevh) { 112 error = data->chainevh(mod, what, data->chainarg); 113 if (error) 114 return error; 115 } 116 error = syscall_deregister(data->offset, &data->old_sysent); 117 return error; |
118 default : 119 return EOPNOTSUPP; 120 |
|
118 } 119 120 if (data->chainevh) 121 return data->chainevh(mod, what, data->chainarg); 122 else 123 return 0; 124} | 121 } 122 123 if (data->chainevh) 124 return data->chainevh(mod, what, data->chainarg); 125 else 126 return 0; 127} |