summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2010-03-19 12:30:44 +0100
committerMark Wielaard <mjw@redhat.com>2010-03-19 13:20:57 +0100
commit3651ea20da2292ec86cafca4ca4a8f220df910cf (patch)
tree5676ed844b71667883c55e338bb743802a9a043e
parent58ea0457e185e7cbea71c16d88dfa43a3196f803 (diff)
downloadsystemtap-steved-3651ea20da2292ec86cafca4ca4a8f220df910cf.tar.gz
systemtap-steved-3651ea20da2292ec86cafca4ca4a8f220df910cf.tar.xz
systemtap-steved-3651ea20da2292ec86cafca4ca4a8f220df910cf.zip
Recognize O_CLOEXEC in _sys_open_flag_str.
* tapset/aux_syscalls.stp (_sys_open_flag_str): If O_CLOEXEC is defined recognize and return it.
-rw-r--r--tapset/aux_syscalls.stp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tapset/aux_syscalls.stp b/tapset/aux_syscalls.stp
index e762b37a..fdd6f6af 100644
--- a/tapset/aux_syscalls.stp
+++ b/tapset/aux_syscalls.stp
@@ -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
%}