Files
llgo/runtime/internal/clite/syscall/syscall.go

37 lines
1.0 KiB
Go
Raw Normal View History

2024-06-25 14:02:25 +08:00
/*
* Copyright (c) 2024 The GoPlus Authors (goplus.org). All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package syscall
2024-06-25 14:02:25 +08:00
const (
LLGoPackage = "noinit"
2024-06-25 14:02:25 +08:00
)
2025-02-14 17:18:13 +08:00
type Errno uintptr
// A Signal is a number describing a process signal.
// It implements the os.Signal interface.
type Signal = int
2024-11-29 14:23:46 +08:00
// 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)
2024-11-29 14:23:46 +08:00
}
2025-02-14 17:18:13 +08:00
func (iov *Iovec) SetLen(length int) {
iov.Len = uint64(length)
}