<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi!<br>
    <br>
    Thanks a lot for your comments. I have modified the patches to V2.<br>
    <br>
    <div class="moz-cite-prefix">On 03/01/2016 07:52 AM, Dmitry V. Levin
      wrote:<br>
    </div>
    <blockquote cite="mid:20160229235257.GD25777@altlinux.org"
      type="cite">
      <pre wrap="">On Fri, Feb 26, 2016 at 05:41:37PM +0800, Fei Jie wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">* tests/uname.c: New file.
* tests/uname.test: New test.
* tests/.gitignore: Add uname.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(TESTS): Add uname.test.
---
 tests/.gitignore  |  1 +
 tests/Makefile.am |  2 ++
 tests/uname.c     | 38 ++++++++++++++++++++++++++++++++++++++
 tests/uname.test  | 11 +++++++++++
 4 files changed, 52 insertions(+)
 create mode 100644 tests/uname.c
 create mode 100755 tests/uname.test

diff --git a/tests/.gitignore b/tests/.gitignore
index bdce2db..e79d317 100644
--- a/tests/.gitignore
+++ b/tests/.gitignore
@@ -124,6 +124,7 @@ umount
 umount2
 umovestr
 umovestr2
+uname
 unix-pair-send-recv
 userfaultfd
 utime
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 54f3d5b..d924b9a 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -172,6 +172,7 @@ check_PROGRAMS = \
        umount2 \
        umovestr \
        umovestr2 \
+       uname \
        unix-pair-send-recv \
        userfaultfd \
        utime \
@@ -326,6 +327,7 @@ TESTS = \
        umount2.test \
        umovestr.test \
        umovestr2.test \
+       uname.test \
        userfaultfd.test \
        utime.test \
        utimensat.test \
diff --git a/tests/uname.c b/tests/uname.c
new file mode 100644
index 0000000..ac1adce
--- /dev/null
+++ b/tests/uname.c
@@ -0,0 +1,38 @@
+#include "tests.h"
+#include <sys/syscall.h>
+
+#ifdef __NR_uname
+
+# include <stdio.h>
+# include <sys/utsname.h>
+# include <unistd.h>
+
+int main()
+{
+       struct utsname *const uname = tail_alloc(sizeof(struct utsname));
+       int rc = syscall(__NR_uname, uname);
+       printf("uname({sysname=\"%s\", nodename=\"%s\", release=\"%s\""
+              ", version=\"%s\", machine=\"%s\""
+# ifdef _GNU_SOURCE
+              ", domainname=\"%s\""
+# endif
</pre>
      </blockquote>
      <pre wrap="">
Why _GNU_SOURCE?  Note that strace parser uses HAVE_STRUCT_UTSNAME_DOMAINNAME.


</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
<a class="moz-txt-link-freetext" href="http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140">http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140</a></pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Strace-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Strace-devel@lists.sourceforge.net">Strace-devel@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/strace-devel">https://lists.sourceforge.net/lists/listinfo/strace-devel</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Thanks!
Fei Jie</pre>
  </body>
</html>