Deleted Added
full compact
svr4_sysvec.c (123742) svr4_sysvec.c (132199)
1/*
2 * Copyright (c) 1998 Mark Newton
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

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

24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31#include <sys/cdefs.h>
1/*
2 * Copyright (c) 1998 Mark Newton
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

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

24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: head/sys/compat/svr4/svr4_sysvec.c 123742 2003-12-23 02:42:39Z peter $");
32__FBSDID("$FreeBSD: head/sys/compat/svr4/svr4_sysvec.c 132199 2004-07-15 08:26:07Z phk $");
33
34/* XXX we use functions that might not exist. */
35#include "opt_compat.h"
36
37#ifndef COMPAT_43
38#error "Unable to compile SVR4-emulator due to missing COMPAT_43 option!"
39#endif
40

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

406
407 if (error)
408 printf("Could not deinstall ELF interpreter entry (error %d)\n",
409 error);
410 else if (bootverbose)
411 printf("svr4 ELF exec handler removed\n");
412 break;
413 default:
33
34/* XXX we use functions that might not exist. */
35#include "opt_compat.h"
36
37#ifndef COMPAT_43
38#error "Unable to compile SVR4-emulator due to missing COMPAT_43 option!"
39#endif
40

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

406
407 if (error)
408 printf("Could not deinstall ELF interpreter entry (error %d)\n",
409 error);
410 else if (bootverbose)
411 printf("svr4 ELF exec handler removed\n");
412 break;
413 default:
414 return (EOPNOTSUPP);
414 break;
415 }
416 return error;
417}
418
419static moduledata_t svr4_elf_mod = {
420 "svr4elf",
421 svr4_elf_modevent,
422 0
423};
424DECLARE_MODULE(svr4elf, svr4_elf_mod, SI_SUB_EXEC, SI_ORDER_ANY);
425MODULE_DEPEND(svr4elf, streams, 1, 1, 1);
415 break;
416 }
417 return error;
418}
419
420static moduledata_t svr4_elf_mod = {
421 "svr4elf",
422 svr4_elf_modevent,
423 0
424};
425DECLARE_MODULE(svr4elf, svr4_elf_mod, SI_SUB_EXEC, SI_ORDER_ANY);
426MODULE_DEPEND(svr4elf, streams, 1, 1, 1);