1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

os: vfmt most of os, add it to v test-cleancode

This commit is contained in:
Delyan Angelov
2020-12-16 11:02:36 +02:00
parent 525b521b4a
commit 88a8507dd8
14 changed files with 208 additions and 276 deletions

View File

@@ -1,18 +1,18 @@
module os
// (Must be realized in Syscall) (Must be specified)
// (Must be realized in Syscall) (Must be specified)
// ref: http://www.ccfit.nsu.ru/~deviv/courses/unix/unix/ng7c229.html
const (
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
s_ixusr = 0o100 // is executable by the owner
s_ixgrp = 0o010 // is executable by group
s_ixoth = 0o001 // is executable by others
)
const (
std_input_handle = -10
std_input_handle = -10
std_output_handle = -11
std_error_handle = -12
std_error_handle = -12
)