qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: mle+hs@mega-nerd.com
To: qemu-devel@nongnu.org
Cc: Erik de Castro Lopo <erikd@mega-nerd.com>
Subject: [Qemu-devel] [Patch v3 1/2] linux-user: Add target struct defs needed for POSIX timer syscalls.
Date: Sat, 19 Oct 2013 10:40:19 +1100	[thread overview]
Message-ID: <1382139620-11119-2-git-send-email-mle+hs@mega-nerd.com> (raw)
In-Reply-To: <1382139620-11119-1-git-send-email-mle+hs@mega-nerd.com>

From: Erik de Castro Lopo <erikd@mega-nerd.com>

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
---
 linux-user/syscall_defs.h | 30 +++++++++++++++++++++++++++++-
 1 file changed, 29 insertions(+), 1 deletion(-)

diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h
index 5f53a28..ca683d1 100644
--- a/linux-user/syscall_defs.h
+++ b/linux-user/syscall_defs.h
@@ -168,6 +168,11 @@ struct target_itimerval {
     struct target_timeval it_value;
 };
 
+struct target_itimerspec {
+    struct target_timespec it_interval;
+    struct target_timespec it_value;
+};
+
 typedef abi_long target_clock_t;
 
 #define TARGET_HZ 100
@@ -1819,7 +1824,7 @@ struct target_stat {
     	abi_long	st_blocks;	/* Number 512-byte blocks allocated. */
 
 	abi_ulong	target_st_atime;
-	abi_ulong 	target_st_atime_nsec; 
+	abi_ulong 	target_st_atime_nsec;
 	abi_ulong	target_st_mtime;
 	abi_ulong	target_st_mtime_nsec;
 	abi_ulong	target_st_ctime;
@@ -2513,3 +2518,26 @@ struct target_ucred {
 };
 
 #endif
+
+
+#define SIGEV_PAD_SIZE (sizeof(((struct sigevent *)0)->_sigev_un._pad) \
+                        / sizeof(((struct sigevent *)0)->_sigev_un._pad[0]))
+
+struct target_timer_t {
+    abi_ulong ptr;
+};
+
+struct target_sigevent {
+    target_sigval_t sigev_value;
+    int32_t sigev_signo;
+    int32_t sigev_notify;
+    union {
+        int32_t _pad[SIGEV_PAD_SIZE];
+        int32_t _tid;
+
+        struct {
+            void (*_function)(sigval_t);
+            void *_attribute;
+        } _sigev_thread;
+    } _sigev_un;
+};
-- 
1.8.4.rc3

  reply	other threads:[~2013-10-18 23:40 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-18  8:05 [Qemu-devel] [PATCH 1/2] linux-user: Add target struct defs needed for POSIX timer syscalls mle+tools
2013-10-18  8:05 ` [Qemu-devel] [PATCH 2/2] linux-user: Implement handling of 5 " mle+tools
2013-10-18  9:28   ` Peter Maydell
2013-10-18  9:40     ` Erik de Castro Lopo
2013-10-18 11:47 ` [Qemu-devel] [PATCH 1/2] linux-user: Add target struct defs needed for " Erik de Castro Lopo
2013-10-18 11:47   ` [Qemu-devel] [PATCH 2/2] linux-user: Implement handling of 5 " Erik de Castro Lopo
2013-10-18 22:00   ` [Qemu-devel] [PATCH 1/2] linux-user: Add target struct defs needed for " Erik de Castro Lopo
2013-10-18 23:40 ` [Qemu-devel] Patch v3 : POSIX timer implementation for linux-user mle+hs
2013-10-18 23:40   ` mle+hs [this message]
2013-10-18 23:40   ` [Qemu-devel] [Patch v3 2/2] linux-user: Implement handling of 5 POSIX timer syscalls mle+hs
2013-10-19 10:06   ` [Qemu-devel] Patch v3 : POSIX timer implementation for linux-user Erik de Castro Lopo
2013-10-19 11:32     ` Erik de Castro Lopo
2013-10-25  9:51   ` Erik de Castro Lopo
2013-10-29 21:37     ` Erik de Castro Lopo
2013-11-28  5:16       ` Erik de Castro Lopo
2013-11-29  7:39 ` [Qemu-devel] Patch v4 " erikd
2013-11-29  7:39   ` [Qemu-devel] [Patch v4 1/2] linux-user: Add target struct defs needed for POSIX timer syscalls erikd
2013-11-29  7:39   ` [Qemu-devel] [Patch v4 2/2] linux-user: Implement handling of 5 " erikd
2013-11-29  7:47   ` [Qemu-devel] Patch v4 : POSIX timer implementation for linux-user Erik de Castro Lopo

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=1382139620-11119-2-git-send-email-mle+hs@mega-nerd.com \
    --to=mle+hs@mega-nerd.com \
    --cc=erikd@mega-nerd.com \
    --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).