2019-06-30 16:12:23 +02:00
|
|
|
module os
|
|
|
|
// (Must be realized in Syscall) (Must be specified)
|
2020-01-21 16:58:47 +01:00
|
|
|
|
2019-07-31 10:32:00 +02:00
|
|
|
// ref: http://www.ccfit.nsu.ru/~deviv/courses/unix/unix/ng7c229.html
|
|
|
|
const (
|
2019-12-19 03:41:12 +01:00
|
|
|
S_IFMT = 0xF000 // type of file
|
2019-07-31 10:32:00 +02:00
|
|
|
S_IFDIR = 0x4000 // directory
|
2019-12-04 21:53:11 +01:00
|
|
|
S_IFLNK = 0xa000 // link
|
2020-03-21 09:48:02 +01:00
|
|
|
S_IXUSR = 0o100 // is executable by the owner
|
|
|
|
S_IXGRP = 0o010 // is executable by group
|
|
|
|
S_IXOTH = 0o001 // is executable by others
|
2019-07-31 10:32:00 +02:00
|
|
|
)
|
|
|
|
|
2019-12-19 03:41:12 +01:00
|
|
|
const (
|
|
|
|
STD_INPUT_HANDLE = -10
|
|
|
|
STD_OUTPUT_HANDLE = -11
|
|
|
|
STD_ERROR_HANDLE = -12
|
2019-07-04 17:39:35 +02:00
|
|
|
)
|
|
|
|
|