aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/linux/linux_sysvec.c
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2018-03-19 21:26:32 +0000
committerEd Maste <emaste@FreeBSD.org>2018-03-19 21:26:32 +0000
commitdc85846736dffed97360a1c17b89f34c03e4c022 (patch)
tree565e77adcd0c4822c5ac0be76b1016ab65002aed /sys/amd64/linux/linux_sysvec.c
parentb4b8fa3387339468d65278566e31966504a6a75c (diff)
downloadsrc-dc85846736dffed97360a1c17b89f34c03e4c022.tar.gz
src-dc85846736dffed97360a1c17b89f34c03e4c022.zip
Rename linuxulator functions with linux_ prefix
It's preferable to have a consistent prefix. This also reduces differences between the three linux*_sysvec.c files. Sponsored by: Turing Robotic Industries Inc.
Notes
Notes: svn path=/head/; revision=331226
Diffstat (limited to 'sys/amd64/linux/linux_sysvec.c')
-rw-r--r--sys/amd64/linux/linux_sysvec.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/amd64/linux/linux_sysvec.c b/sys/amd64/linux/linux_sysvec.c
index 0f9cc34f0761..39b4434b9c9b 100644
--- a/sys/amd64/linux/linux_sysvec.c
+++ b/sys/amd64/linux/linux_sysvec.c
@@ -119,14 +119,14 @@ extern struct sysent linux_sysent[LINUX_SYS_MAXSYSCALL];
SET_DECLARE(linux_ioctl_handler_set, struct linux_ioctl_handler);
static register_t * linux_copyout_strings(struct image_params *imgp);
-static int elf_linux_fixup(register_t **stack_base,
+static int linux_elf_fixup(register_t **stack_base,
struct image_params *iparams);
static bool linux_trans_osrel(const Elf_Note *note, int32_t *osrel);
static void linux_vdso_install(void *param);
static void linux_vdso_deinstall(void *param);
static void linux_set_syscall_retval(struct thread *td, int error);
static int linux_fetch_syscall_args(struct thread *td);
-static int exec_linux_imgact_try(struct image_params *iparams);
+static int linux_exec_imgact_try(struct image_params *iparams);
static void linux_exec_setregs(struct thread *td, struct image_params *imgp,
u_long stack);
static int linux_vsyscall(struct thread *td);
@@ -180,7 +180,7 @@ LINUX_VDSO_SYM_CHAR(linux_platform);
* MPSAFE
*/
static int
-translate_traps(int signal, int trap_code)
+linux_translate_traps(int signal, int trap_code)
{
if (signal != SIGBUS)
@@ -245,7 +245,7 @@ linux_set_syscall_retval(struct thread *td, int error)
}
static int
-elf_linux_fixup(register_t **stack_base, struct image_params *imgp)
+linux_fixup_elf(register_t **stack_base, struct image_params *imgp)
{
Elf_Auxargs *args;
Elf_Addr *base;
@@ -258,7 +258,7 @@ elf_linux_fixup(register_t **stack_base, struct image_params *imgp)
arginfo = (struct ps_strings *)p->p_sysent->sv_psstrings;
KASSERT(curthread->td_proc == imgp->proc,
- ("unsafe elf_linux_fixup(), should be curproc"));
+ ("unsafe linux_fixup_elf(), should be curproc"));
base = (Elf64_Addr *)*stack_base;
args = (Elf64_Auxargs *)imgp->auxargs;
pos = base + (imgp->args->argc + imgp->args->envc + 2);
@@ -671,7 +671,7 @@ linux_rt_sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask)
* binary is doing the exec, so we do not create an EXEC module for it.
*/
static int
-exec_linux_imgact_try(struct image_params *imgp)
+linux_exec_imgact_try(struct image_params *imgp)
{
const char *head = (const char *)imgp->image_header;
char *rpath;
@@ -753,14 +753,14 @@ struct sysentvec elf_linux_sysvec = {
.sv_mask = 0,
.sv_errsize = ELAST + 1,
.sv_errtbl = bsd_to_linux_errno_generic,
- .sv_transtrap = translate_traps,
- .sv_fixup = elf_linux_fixup,
+ .sv_transtrap = linux_translate_traps,
+ .sv_fixup = linux_fixup_elf,
.sv_sendsig = linux_rt_sendsig,
.sv_sigcode = &_binary_linux_locore_o_start,
.sv_szsigcode = &linux_szsigcode,
.sv_name = "Linux ELF64",
.sv_coredump = elf64_coredump,
- .sv_imgact_try = exec_linux_imgact_try,
+ .sv_imgact_try = linux_exec_imgact_try,
.sv_minsigstksz = LINUX_MINSIGSTKSZ,
.sv_pagesize = PAGE_SIZE,
.sv_minuser = VM_MIN_ADDRESS,