2005-12-17 06:46:23 +00:00
|
|
|
#!/usr/bin/env ruby
|
2005-04-15 06:23:59 +00:00
|
|
|
|
|
|
|
# Generic page protection flags
|
|
|
|
PROT_NONE = 0
|
|
|
|
PROT_READ = (1 << 0)
|
|
|
|
PROT_WRITE = (1 << 1)
|
|
|
|
PROT_EXEC = (1 << 2)
|
|
|
|
PROT_COW = (1 << 20)
|
|
|
|
|
|
|
|
# Generic permissions
|
|
|
|
GEN_NONE = 0
|
|
|
|
GEN_READ = (1 << 0)
|
|
|
|
GEN_WRITE = (1 << 1)
|
|
|
|
GEN_EXEC = (1 << 2)
|
|
|
|
|
2005-04-16 07:29:06 +00:00
|
|
|
# Generic process open permissions
|
2005-04-15 06:23:59 +00:00
|
|
|
PROCESS_READ = (1 << 0)
|
|
|
|
PROCESS_WRITE = (1 << 1)
|
|
|
|
PROCESS_EXECUTE = (1 << 2)
|
|
|
|
PROCESS_ALL = 0xffffffff
|
2005-04-16 07:29:06 +00:00
|
|
|
|
|
|
|
# Generic thread open permissions
|
|
|
|
THREAD_READ = (1 << 0)
|
|
|
|
THREAD_WRITE = (1 << 1)
|
|
|
|
THREAD_EXECUTE = (1 << 2)
|
2008-10-19 21:03:39 +00:00
|
|
|
THREAD_ALL = 0xffffffff
|