This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Global constants


On Mon, 2006-02-13 at 13:41 -0800, Martin Hunt wrote:
> On Mon, 2006-02-13 at 20:44 +0000, Mark McLoughlin wrote:

> > 	O_CREAT works fine, but try O_ASYNC (AFAIR)
> 
> Yeah, a quirk of the kernel headers is that they define FASYNC instead
> of the equivalent O_ASYNC. The user headers define both 
> # define FASYNC            O_ASYNC

	Yes, I thought there was another missing value, though. Turns out that
was O_NDCTTY which is merely a typo - it should be O_NOCTTY. Patch
attached.

Cheers,
Mark.
--- systemtap-0.5.4/tapset/aux_syscalls.stp.noctty	2006-02-14 08:20:02.000000000 +0000
+++ systemtap-0.5.4/tapset/aux_syscalls.stp	2006-02-14 08:20:16.000000000 +0000
@@ -305,7 +305,7 @@
    if(f & 2048) bs="O_NONBLOCK|".bs
    if(f & 1024) bs="O_APPEND|".bs
    if(f & 512)  bs="O_TRUNC|".bs
-   if(f & 256)  bs="O_NDCTTY|".bs
+   if(f & 256)  bs="O_NOCTTY|".bs
    if(f & 128)  bs="O_EXCL|".bs
    if(f & 64)   bs="O_CREAT|".bs
    if((f & 3) == 2) bs="O_RDWR|".bs
@@ -419,7 +419,7 @@
    if(f==2048) return "O_NONBLOCK"
    if(f==1024) return "O_APPEND"
    if(f==512)  return "O_TRUNC"
-   if(f==256)  return "O_NDCTTY"
+   if(f==256)  return "O_NOCTTY"
    if(f==128)  return "O_EXCL"
    if(f==64)   return "O_CREAT"
    if(f==2)    return "O_RDWR"

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]