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:
committed by
GitHub
parent
055117dc5f
commit
d71c11577a
@@ -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) {
|
||||
|
||||
}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user