qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 1/2] linux-user: Add target struct defs needed for POSIX timer syscalls.
@ 2013-10-18  8:05 mle+tools
  2013-10-18  8:05 ` [Qemu-devel] [PATCH 2/2] linux-user: Implement handling of 5 " mle+tools
                   ` (3 more replies)
  0 siblings, 4 replies; 19+ messages in thread
From: mle+tools @ 2013-10-18  8:05 UTC (permalink / raw)
  To: qemu-devel; +Cc: Erik de Castro Lopo

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

---
 linux-user/syscall_defs.h | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h
index 5f53a28..899da88 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
@@ -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

^ permalink raw reply related	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2013-11-29  7:48 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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   ` [Qemu-devel] [Patch v3 1/2] linux-user: Add target struct defs needed for POSIX timer syscalls mle+hs
2013-10-18 23:40   ` [Qemu-devel] [Patch v3 2/2] linux-user: Implement handling of 5 " 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

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).