equal
deleted
inserted
replaced
18 * |
18 * |
19 * CDDL HEADER END |
19 * CDDL HEADER END |
20 */ |
20 */ |
21 |
21 |
22 /* |
22 /* |
23 * Copyright 2009 Sun Microsystems, Inc. All rights reserved. |
23 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. |
24 * Use is subject to license terms. |
24 * Use is subject to license terms. |
25 */ |
25 */ |
26 |
26 |
27 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ |
27 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ |
28 /* All Rights Reserved */ |
28 /* All Rights Reserved */ |
66 #ifdef _KERNEL |
66 #ifdef _KERNEL |
67 |
67 |
68 #define LOADABLE_EXEC(e) ((e)->exec_lock) |
68 #define LOADABLE_EXEC(e) ((e)->exec_lock) |
69 #define LOADED_EXEC(e) ((e)->exec_func) |
69 #define LOADED_EXEC(e) ((e)->exec_func) |
70 |
70 |
|
71 extern int nexectype; /* number of elements in execsw */ |
|
72 extern struct execsw execsw[]; |
|
73 extern kmutex_t execsw_lock; |
71 |
74 |
72 /* |
75 /* |
73 * User argument structure for passing exec information around between the |
76 * User argument structure for passing exec information around between the |
74 * common and machine-dependent portions of exec and the exec modules. |
77 * common and machine-dependent portions of exec and the exec modules. |
75 */ |
78 */ |
178 struct cred *cred, rlim64_t rlimit, int sig, |
181 struct cred *cred, rlim64_t rlimit, int sig, |
179 core_content_t content); |
182 core_content_t content); |
180 krwlock_t *exec_lock; |
183 krwlock_t *exec_lock; |
181 }; |
184 }; |
182 |
185 |
183 extern int nexectype; /* number of elements in execsw */ |
|
184 extern struct execsw execsw[]; |
|
185 extern kmutex_t execsw_lock; |
|
186 |
|
187 extern short elfmagic; |
186 extern short elfmagic; |
188 extern short intpmagic; |
187 extern short intpmagic; |
189 extern short javamagic; |
188 extern short javamagic; |
190 #if defined(__sparc) |
189 #if defined(__sparc) |
191 extern short aout_zmagic; |
190 extern short aout_zmagic; |