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

os: move file logic to file.v (#6013)

This commit is contained in:
Carlos Esquerdo Bernat
2020-08-01 23:07:37 +02:00
committed by GitHub
parent 055117dc5f
commit d71c11577a
5 changed files with 109 additions and 115 deletions

View File

@@ -20,8 +20,6 @@ pub const (
sys_creat = 85
)
/*
// TODO no pub => error
pub fn write(fd int, data voidptr, nbytes int) int {
@@ -47,9 +45,4 @@ pub fn malloc(n int) byteptr {
println('malloc($n)')
return mmap(0, n, 3, 4098, //prot_read|prot_write,
-1,0) //map_private|map_anonymous,
}
pub fn free(b byteptr) {
}
*/