patch: fmt, os, runtime, syscall, time

This commit is contained in:
xushiwei
2024-06-26 17:17:10 +08:00
parent fd0cb4c458
commit 48a1384197
30 changed files with 5373 additions and 24 deletions

View File

@@ -144,6 +144,9 @@ func Fstatat(dirfd c.Int, path *c.Char, buf *StatT, flags c.Int) c.Int
//go:linkname Open C.open
func Open(path *c.Char, flags c.Int, mode ModeT) c.Int
//go:linkname Openat C.openat
func Openat(dirfd c.Int, path *c.Char, flags c.Int, mode ModeT) c.Int
//go:linkname Creat C.creat
func Creat(path *c.Char, mode ModeT) c.Int
@@ -201,6 +204,9 @@ func Isatty(fd c.Int) c.Int
// -----------------------------------------------------------------------------
//go:linkname Kill C.kill
func Kill(pid c.Int, sig c.Int) c.Int
//go:linkname Exit C.exit
func Exit(c.Int)