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 (
|
2020-05-22 17:36:09 +02:00
|
|
|
s_ifmt = 0xF000 // type of file
|
|
|
|
s_ifdir = 0x4000 // directory
|
|
|
|
s_iflnk = 0xa000 // link
|
|
|
|
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 (
|
2020-05-22 17:36:09 +02:00
|
|
|
std_input_handle = -10
|
|
|
|
std_output_handle = -11
|
|
|
|
std_error_handle = -12
|
2019-07-04 17:39:35 +02:00
|
|
|
)
|