qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Sean Bruno <sbruno@freebsd.org>
To: qemu-devel@nongnu.org
Cc: Sean Bruno <sbruno@freebsd.org>
Subject: [Qemu-devel] [PATCH 3/4] bsd-user: Rename linux_binprm to bsd_binprm
Date: Thu, 19 Jun 2014 17:19:47 -0700	[thread overview]
Message-ID: <1403223588-58739-4-git-send-email-sbruno@freebsd.org> (raw)
In-Reply-To: <1403223588-58739-1-git-send-email-sbruno@freebsd.org>

These too similar data structures will be diverging in future updates
from my trees.  Rename now.

Signed-off-by: Sean Bruno <sbruno@freebsd.org>
---
 bsd-user/bsdload.c | 4 ++--
 bsd-user/elfload.c | 4 ++--
 bsd-user/main.c    | 2 +-
 bsd-user/qemu.h    | 8 ++++----
 4 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/bsd-user/bsdload.c b/bsd-user/bsdload.c
index 2abc713..e59b03d 100644
--- a/bsd-user/bsdload.c
+++ b/bsd-user/bsdload.c
@@ -53,7 +53,7 @@ static int count(char ** vec)
     return(i);
 }
 
-static int prepare_binprm(struct linux_binprm *bprm)
+static int prepare_binprm(struct bsd_binprm *bprm)
 {
     struct stat         st;
     int mode;
@@ -157,7 +157,7 @@ abi_ulong loader_build_argptr(int envc, int argc, abi_ulong sp,
 int loader_exec(const char * filename, char ** argv, char ** envp,
              struct target_pt_regs * regs, struct image_info *infop)
 {
-    struct linux_binprm bprm;
+    struct bsd_binprm bprm;
     int retval;
     int i;
 
diff --git a/bsd-user/elfload.c b/bsd-user/elfload.c
index ccf72d1..c2e2daa 100644
--- a/bsd-user/elfload.c
+++ b/bsd-user/elfload.c
@@ -665,7 +665,7 @@ static abi_ulong copy_elf_strings(int argc,char ** argv, void **page,
     return p;
 }
 
-static abi_ulong setup_arg_pages(abi_ulong p, struct linux_binprm *bprm,
+static abi_ulong setup_arg_pages(abi_ulong p, struct bsd_binprm *bprm,
                                  struct image_info *info)
 {
     abi_ulong stack_base, size, error;
@@ -1147,7 +1147,7 @@ static void load_symbols(struct elfhdr *hdr, int fd)
     syminfos = s;
 }
 
-int load_elf_binary(struct linux_binprm * bprm, struct target_pt_regs * regs,
+int load_elf_binary(struct bsd_binprm * bprm, struct target_pt_regs * regs,
                     struct image_info * info)
 {
     struct elfhdr elf_ex;
diff --git a/bsd-user/main.c b/bsd-user/main.c
index 9c5711d..0ba5955 100644
--- a/bsd-user/main.c
+++ b/bsd-user/main.c
@@ -328,7 +328,7 @@ int main(int argc, char **argv)
     const char *log_mask = NULL;
     struct target_pt_regs regs1, *regs = &regs1;
     struct image_info info1, *info = &info1;
-    struct linux_binprm bprm;
+    struct bsd_binprm bprm;
     TaskState ts1, *ts = &ts1;
     CPUArchState *env;
     CPUState *cpu;
diff --git a/bsd-user/qemu.h b/bsd-user/qemu.h
index 7521ebe..c70602e 100644
--- a/bsd-user/qemu.h
+++ b/bsd-user/qemu.h
@@ -91,7 +91,7 @@ typedef struct TaskState {
     struct TaskState *next;
     int used; /* non zero if used */
     struct image_info *info;
-    struct linux_binprm *bprm;
+    struct bsd_binprm *bprm;
 
     struct emulated_sigtable sigtab[TARGET_NSIG];
     struct sigqueue sigqueue_table[MAX_SIGQUEUE_SIZE]; /* siginfo queue */
@@ -120,7 +120,7 @@ extern unsigned long mmap_min_addr;
  * This structure is used to hold the arguments that are
  * used when loading binaries.
  */
-struct linux_binprm {
+struct bsd_binprm {
         char buf[128];
         void *page[MAX_ARG_PAGES];
         abi_ulong p;
@@ -138,9 +138,9 @@ abi_ulong loader_build_argptr(int envc, int argc, abi_ulong sp,
 int loader_exec(const char * filename, char ** argv, char ** envp,
              struct target_pt_regs * regs, struct image_info *infop);
 
-int load_elf_binary(struct linux_binprm * bprm, struct target_pt_regs * regs,
+int load_elf_binary(struct bsd_binprm * bprm, struct target_pt_regs * regs,
                     struct image_info * info);
-int load_flt_binary(struct linux_binprm * bprm, struct target_pt_regs * regs,
+int load_flt_binary(struct bsd_binprm * bprm, struct target_pt_regs * regs,
                     struct image_info * info);
 
 abi_long memcpy_to_target(abi_ulong dest, const void *src,
-- 
2.0.0

  parent reply	other threads:[~2014-06-20  0:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-20  0:19 [Qemu-devel] [PATCH 0/4] bsd-user: Update Queue Sean Bruno
2014-06-20  0:19 ` [Qemu-devel] [PATCH 1/4] bsd-user: Implement new syscall print_sysarch and add strace support Sean Bruno
2014-07-03 13:19   ` Peter Maydell
2014-06-20  0:19 ` [Qemu-devel] [PATCH 2/4] bsd-user: move arch/OS dependent code out of main.c Sean Bruno
2014-07-03 13:45   ` Peter Maydell
2014-06-20  0:19 ` Sean Bruno [this message]
2014-07-03 13:23   ` [Qemu-devel] [PATCH 3/4] bsd-user: Rename linux_binprm to bsd_binprm Peter Maydell
2014-06-20  0:19 ` [Qemu-devel] [PATCH 4/4] bsd-user: move arch/OS dependent code out of syscall.c Sean Bruno
2014-07-03 13:55   ` Peter Maydell
2014-06-21 16:39 ` [Qemu-devel] [PATCH 0/4] bsd-user: Update Queue Sean Bruno
2014-06-23 14:20   ` Sean Bruno

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1403223588-58739-4-git-send-email-sbruno@freebsd.org \
    --to=sbruno@freebsd.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).