Home | History | Annotate | Download | only in syscall
      1 package syscall
      2 
      3 // Plan 9 Constants
      4 
      5 // Open modes
      6 const (
      7 	O_RDONLY  = 0
      8 	O_WRONLY  = 1
      9 	O_RDWR    = 2
     10 	O_TRUNC   = 16
     11 	O_CLOEXEC = 32
     12 	O_EXCL    = 0x1000
     13 )
     14 
     15 // Rfork flags
     16 const (
     17 	RFNAMEG  = 1 << 0
     18 	RFENVG   = 1 << 1
     19 	RFFDG    = 1 << 2
     20 	RFNOTEG  = 1 << 3
     21 	RFPROC   = 1 << 4
     22 	RFMEM    = 1 << 5
     23 	RFNOWAIT = 1 << 6
     24 	RFCNAMEG = 1 << 10
     25 	RFCENVG  = 1 << 11
     26 	RFCFDG   = 1 << 12
     27 	RFREND   = 1 << 13
     28 	RFNOMNT  = 1 << 14
     29 )
     30 
     31 // Qid.Type bits
     32 const (
     33 	QTDIR    = 0x80
     34 	QTAPPEND = 0x40
     35 	QTEXCL   = 0x20
     36 	QTMOUNT  = 0x10
     37 	QTAUTH   = 0x08
     38 	QTTMP    = 0x04
     39 	QTFILE   = 0x00
     40 )
     41 
     42 // Dir.Mode bits
     43 const (
     44 	DMDIR    = 0x80000000
     45 	DMAPPEND = 0x40000000
     46 	DMEXCL   = 0x20000000
     47 	DMMOUNT  = 0x10000000
     48 	DMAUTH   = 0x08000000
     49 	DMTMP    = 0x04000000
     50 	DMREAD   = 0x4
     51 	DMWRITE  = 0x2
     52 	DMEXEC   = 0x1
     53 )
     54 
     55 const (
     56 	STATMAX    = 65535
     57 	ERRMAX     = 128
     58 	STATFIXLEN = 49
     59 )
     60