Deleted Added
full compact
exec.h (127976) exec.h (132199)
1/*-
2 * Copyright (c) 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 18 unchanged lines hidden (view full) ---

27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * @(#)exec.h 8.3 (Berkeley) 1/21/94
1/*-
2 * Copyright (c) 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 18 unchanged lines hidden (view full) ---

27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * @(#)exec.h 8.3 (Berkeley) 1/21/94
35 * $FreeBSD: head/sys/sys/exec.h 127976 2004-04-07 04:19:52Z imp $
35 * $FreeBSD: head/sys/sys/exec.h 132199 2004-07-15 08:26:07Z phk $
36 */
37
38#ifndef _SYS_EXEC_H_
39#define _SYS_EXEC_H_
40
41/*
42 * The following structure is found at the top of the user stack of each
43 * user process. The ps program uses it to locate argv and environment

--- 56 unchanged lines hidden (view full) ---

100 break; \
101 case MOD_UNLOAD: \
102 /* printf(#name " module unloaded\n"); */ \
103 error = exec_unregister(exec); \
104 if (error) \
105 printf(__XSTRING(name) " unregister failed\n");\
106 break; \
107 default: \
36 */
37
38#ifndef _SYS_EXEC_H_
39#define _SYS_EXEC_H_
40
41/*
42 * The following structure is found at the top of the user stack of each
43 * user process. The ps program uses it to locate argv and environment

--- 56 unchanged lines hidden (view full) ---

100 break; \
101 case MOD_UNLOAD: \
102 /* printf(#name " module unloaded\n"); */ \
103 error = exec_unregister(exec); \
104 if (error) \
105 printf(__XSTRING(name) " unregister failed\n");\
106 break; \
107 default: \
108 error = EOPNOTSUPP; \
108 break; \
109 } \
110 return error; \
111 } \
112 static moduledata_t __CONCAT(name,_mod) = { \
113 __XSTRING(name), \
114 __CONCAT(name,_modevent), \
115 (void *)& execsw_arg \
116 }; \
117 DECLARE_MODULE(name, __CONCAT(name,_mod), SI_SUB_EXEC, SI_ORDER_ANY)
118#endif
119
120#endif
109 break; \
110 } \
111 return error; \
112 } \
113 static moduledata_t __CONCAT(name,_mod) = { \
114 __XSTRING(name), \
115 __CONCAT(name,_modevent), \
116 (void *)& execsw_arg \
117 }; \
118 DECLARE_MODULE(name, __CONCAT(name,_mod), SI_SUB_EXEC, SI_ORDER_ANY)
119#endif
120
121#endif