1 # Generated by h2py from /usr/include/sys/file.h
3 # Included from sys/types.h
5 # Included from sgidefs.h
16 # Included from sys/bsd_types.h
18 # Included from sys/mkdev.h
30 def major(dev
): return __major(MKDEV_VER
, dev
)
32 def minor(dev
): return __minor(MKDEV_VER
, dev
)
35 # Included from sys/select.h
39 # Included from sys/sema.h
77 def cv_signal(cv
): return cvsema(cv
);
79 def cv_destroy(cv
): return freesema(cv
)
81 def mutex_enter(m
): return psema(m
, PZERO | PNOSTOP
)
83 def mutex_exit(m
): return vsema(m
)
85 def mutex_destroy(m
): return freesema(m
)
87 def MUTEX_HELD(m
): return (ownsema(m
))
89 def MUTEX_HELD(m
): return (1)
93 def rw_exit(r
): return mrunlock(r
)
95 def rw_tryupgrade(r
): return cmrpromote(r
)
97 def rw_downgrade(r
): return mrdemote(r
)
99 def rw_destroy(r
): return mrfree(r
)
101 def RW_WRITE_HELD(r
): return ismrlocked(r
, MR_UPDATE
)
103 def RW_READ_HELD(r
): return ismrlocked(r
, MR_ACCESS
)
106 # Included from sys/splock.h
113 SPLOCK_MAX
= (96*1024)
116 MAX_POOL_SIZE
= 16384
118 DEF_VNODE_POOL
= 1024
120 def ownlock(x
): return 1
122 def splock(x
): return 1
124 def io_splock(x
): return 1
126 def apvsema(x
): return vsema(x
)
128 def apcpsema(x
): return cpsema(x
)
130 def apcvsema(x
): return cvsema(x
)
132 def mp_mrunlock(a
): return mrunlock(a
)
134 def apvsema(x
): return 0
136 def apcpsema(x
): return 1
138 def apcvsema(x
): return 0
140 def mp_mrunlock(a
): return 0
143 # Included from sys/fcntl.h
228 FDIGNPROGRESS
= 0x0004