library: os.ReadFile

This commit is contained in:
xushiwei
2024-07-30 17:14:59 +08:00
parent 519b14d506
commit c0e84043c9
5 changed files with 40 additions and 7 deletions

View File

@@ -17,7 +17,7 @@
package syscall
const (
LLGoPackage = "decl"
LLGoPackage = "noinit"
)
type Errno = uintptr
@@ -25,3 +25,8 @@ type Errno = uintptr
// A Signal is a number describing a process signal.
// It implements the os.Signal interface.
type Signal = int
// Unix returns the time stored in ts as seconds plus nanoseconds.
func (ts *Timespec) Unix() (sec int64, nsec int64) {
return int64(ts.Sec), int64(ts.Nsec)
}