linux_machdep.c (143108) | linux_machdep.c (148623) |
---|---|
1/*- 2 * Copyright (c) 2000 Marcel Moolenaar 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 --- 13 unchanged lines hidden (view full) --- 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2000 Marcel Moolenaar 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 --- 13 unchanged lines hidden (view full) --- 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29#include <sys/cdefs.h> |
30__FBSDID("$FreeBSD: head/sys/i386/linux/linux_machdep.c 143108 2005-03-03 16:57:55Z sobomax $"); | 30__FBSDID("$FreeBSD: head/sys/i386/linux/linux_machdep.c 148623 2005-08-01 17:35:48Z sobomax $"); |
31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/imgact.h> 35#include <sys/lock.h> 36#include <sys/malloc.h> 37#include <sys/mman.h> 38#include <sys/mutex.h> --- 77 unchanged lines hidden (view full) --- 116 if (ldebug(execve)) 117 printf(ARGS(execve, "%s"), newpath); 118#endif 119 120 error = exec_copyin_args(&eargs, newpath, UIO_SYSSPACE, 121 args->argp, args->envp); 122 free(newpath, M_TEMP); 123 if (error == 0) | 31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/imgact.h> 35#include <sys/lock.h> 36#include <sys/malloc.h> 37#include <sys/mman.h> 38#include <sys/mutex.h> --- 77 unchanged lines hidden (view full) --- 116 if (ldebug(execve)) 117 printf(ARGS(execve, "%s"), newpath); 118#endif 119 120 error = exec_copyin_args(&eargs, newpath, UIO_SYSSPACE, 121 args->argp, args->envp); 122 free(newpath, M_TEMP); 123 if (error == 0) |
124 kern_execve(td, &eargs, NULL); | 124 error = kern_execve(td, &eargs, NULL); |
125 exec_free_args(&eargs); 126 return (error); 127} 128 129struct l_ipc_kludge { 130 struct l_msgbuf *msgp; 131 l_long msgtyp; 132}; --- 740 unchanged lines hidden --- | 125 exec_free_args(&eargs); 126 return (error); 127} 128 129struct l_ipc_kludge { 130 struct l_msgbuf *msgp; 131 l_long msgtyp; 132}; --- 740 unchanged lines hidden --- |