]> sourceware.org Git - systemtap.git/commitdiff
Recognize O_CLOEXEC in _sys_open_flag_str.
authorMark Wielaard <mjw@redhat.com>
Fri, 19 Mar 2010 11:30:44 +0000 (12:30 +0100)
committerMark Wielaard <mjw@redhat.com>
Fri, 19 Mar 2010 12:20:57 +0000 (13:20 +0100)
* tapset/aux_syscalls.stp (_sys_open_flag_str): If O_CLOEXEC is defined
  recognize and return it.

tapset/aux_syscalls.stp

index e762b37af3949f509a9dc977bfea1b143251f171..fdd6f6afe09d3c12487342b25966ce6687f5311d 100644 (file)
@@ -626,6 +626,10 @@ function _sys_open_flag_str:string (f:long)
        if (flags & O_TRUNC)
                strlcat (THIS->__retvalue, "|O_TRUNC", MAXSTRINGLEN);
 #endif
+#ifdef O_CLOEXEC
+       if (flags & O_CLOEXEC)
+               strlcat (THIS->__retvalue, "|O_CLOEXEC", MAXSTRINGLEN);
+#endif
 %}
 
 
This page took 0.034312 seconds and 5 git commands to generate.