linux_sysvec.c (89c9a483526f9340e86daccfb8a575cf2d153821) | linux_sysvec.c (bda2a3af25a3b6ca9afefbc3fc51fbb3494ee96e) |
---|---|
1/*- 2 * Copyright (c) 1994-1996 S�ren Schmidt 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 --- 79 unchanged lines hidden (view full) --- 88extern char linux_sigcode[]; 89extern int linux_szsigcode; 90 91extern struct sysent linux_sysent[LINUX_SYS_MAXSYSCALL]; 92 93SET_DECLARE(linux_ioctl_handler_set, struct linux_ioctl_handler); 94 95static int linux_fixup(register_t **stack_base, | 1/*- 2 * Copyright (c) 1994-1996 S�ren Schmidt 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 --- 79 unchanged lines hidden (view full) --- 88extern char linux_sigcode[]; 89extern int linux_szsigcode; 90 91extern struct sysent linux_sysent[LINUX_SYS_MAXSYSCALL]; 92 93SET_DECLARE(linux_ioctl_handler_set, struct linux_ioctl_handler); 94 95static int linux_fixup(register_t **stack_base, |
96 struct image_params *iparams); | 96 struct image_params *iparams); |
97static int elf_linux_fixup(register_t **stack_base, | 97static int elf_linux_fixup(register_t **stack_base, |
98 struct image_params *iparams); 99static void linux_prepsyscall(struct trapframe *tf, int *args, 100 u_int *code, caddr_t *params); | 98 struct image_params *iparams); 99static void linux_prepsyscall(struct trapframe *tf, int *args, u_int *code, 100 caddr_t *params); |
101static void linux_sendsig(sig_t catcher, int sig, sigset_t *mask, | 101static void linux_sendsig(sig_t catcher, int sig, sigset_t *mask, |
102 u_long code); | 102 u_long code); |
103 104/* 105 * Linux syscalls return negative errno's, we do positive and map them 106 */ 107static int bsd_to_linux_errno[ELAST + 1] = { 108 -0, -1, -2, -3, -4, -5, -6, -7, -8, -9, 109 -10, -35, -12, -13, -14, -15, -16, -17, -18, -19, 110 -20, -21, -22, -23, -24, -25, -26, -27, -28, -29, --- 764 unchanged lines hidden --- | 103 104/* 105 * Linux syscalls return negative errno's, we do positive and map them 106 */ 107static int bsd_to_linux_errno[ELAST + 1] = { 108 -0, -1, -2, -3, -4, -5, -6, -7, -8, -9, 109 -10, -35, -12, -13, -14, -15, -16, -17, -18, -19, 110 -20, -21, -22, -23, -24, -25, -26, -27, -28, -29, --- 764 unchanged lines hidden --- |