mirror of
https://github.com/rwinkhart/sys.git
synced 2026-09-01 22:57:29 -04:00
unix: add adjtimex return constants
Fixes golang/go#37234 Change-Id: I6deda79bc0b8f34c7bb210b64adabbfff5fe675e Reviewed-on: https://go-review.googlesource.com/c/sys/+/219697 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
This commit is contained in:
committed by
Tobias Klauser
parent
cb0a6d8edb
commit
d5e6a3e2c0
@@ -406,6 +406,16 @@ type Timeval C.struct_timeval
|
|||||||
|
|
||||||
type Timex C.struct_timex
|
type Timex C.struct_timex
|
||||||
|
|
||||||
|
const (
|
||||||
|
TIME_OK = C.TIME_OK
|
||||||
|
TIME_INS = C.TIME_INS
|
||||||
|
TIME_DEL = C.TIME_DEL
|
||||||
|
TIME_OOP = C.TIME_OOP
|
||||||
|
TIME_WAIT = C.TIME_WAIT
|
||||||
|
TIME_ERROR = C.TIME_ERROR
|
||||||
|
TIME_BAD = C.TIME_BAD
|
||||||
|
)
|
||||||
|
|
||||||
type Time_t C.time_t
|
type Time_t C.time_t
|
||||||
|
|
||||||
type Tms C.struct_tms
|
type Tms C.struct_tms
|
||||||
|
|||||||
@@ -55,6 +55,16 @@ type Timex struct {
|
|||||||
_ [44]byte
|
_ [44]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
TIME_OK = 0x0
|
||||||
|
TIME_INS = 0x1
|
||||||
|
TIME_DEL = 0x2
|
||||||
|
TIME_OOP = 0x3
|
||||||
|
TIME_WAIT = 0x4
|
||||||
|
TIME_ERROR = 0x5
|
||||||
|
TIME_BAD = 0x5
|
||||||
|
)
|
||||||
|
|
||||||
type Time_t int32
|
type Time_t int32
|
||||||
|
|
||||||
type Tms struct {
|
type Tms struct {
|
||||||
|
|||||||
@@ -55,6 +55,16 @@ type Timex struct {
|
|||||||
_ [44]byte
|
_ [44]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
TIME_OK = 0x0
|
||||||
|
TIME_INS = 0x1
|
||||||
|
TIME_DEL = 0x2
|
||||||
|
TIME_OOP = 0x3
|
||||||
|
TIME_WAIT = 0x4
|
||||||
|
TIME_ERROR = 0x5
|
||||||
|
TIME_BAD = 0x5
|
||||||
|
)
|
||||||
|
|
||||||
type Time_t int64
|
type Time_t int64
|
||||||
|
|
||||||
type Tms struct {
|
type Tms struct {
|
||||||
|
|||||||
@@ -55,6 +55,16 @@ type Timex struct {
|
|||||||
_ [44]byte
|
_ [44]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
TIME_OK = 0x0
|
||||||
|
TIME_INS = 0x1
|
||||||
|
TIME_DEL = 0x2
|
||||||
|
TIME_OOP = 0x3
|
||||||
|
TIME_WAIT = 0x4
|
||||||
|
TIME_ERROR = 0x5
|
||||||
|
TIME_BAD = 0x5
|
||||||
|
)
|
||||||
|
|
||||||
type Time_t int32
|
type Time_t int32
|
||||||
|
|
||||||
type Tms struct {
|
type Tms struct {
|
||||||
|
|||||||
@@ -55,6 +55,16 @@ type Timex struct {
|
|||||||
_ [44]byte
|
_ [44]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
TIME_OK = 0x0
|
||||||
|
TIME_INS = 0x1
|
||||||
|
TIME_DEL = 0x2
|
||||||
|
TIME_OOP = 0x3
|
||||||
|
TIME_WAIT = 0x4
|
||||||
|
TIME_ERROR = 0x5
|
||||||
|
TIME_BAD = 0x5
|
||||||
|
)
|
||||||
|
|
||||||
type Time_t int64
|
type Time_t int64
|
||||||
|
|
||||||
type Tms struct {
|
type Tms struct {
|
||||||
|
|||||||
@@ -55,6 +55,16 @@ type Timex struct {
|
|||||||
_ [44]byte
|
_ [44]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
TIME_OK = 0x0
|
||||||
|
TIME_INS = 0x1
|
||||||
|
TIME_DEL = 0x2
|
||||||
|
TIME_OOP = 0x3
|
||||||
|
TIME_WAIT = 0x4
|
||||||
|
TIME_ERROR = 0x5
|
||||||
|
TIME_BAD = 0x5
|
||||||
|
)
|
||||||
|
|
||||||
type Time_t int32
|
type Time_t int32
|
||||||
|
|
||||||
type Tms struct {
|
type Tms struct {
|
||||||
|
|||||||
@@ -55,6 +55,16 @@ type Timex struct {
|
|||||||
_ [44]byte
|
_ [44]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
TIME_OK = 0x0
|
||||||
|
TIME_INS = 0x1
|
||||||
|
TIME_DEL = 0x2
|
||||||
|
TIME_OOP = 0x3
|
||||||
|
TIME_WAIT = 0x4
|
||||||
|
TIME_ERROR = 0x5
|
||||||
|
TIME_BAD = 0x5
|
||||||
|
)
|
||||||
|
|
||||||
type Time_t int64
|
type Time_t int64
|
||||||
|
|
||||||
type Tms struct {
|
type Tms struct {
|
||||||
|
|||||||
@@ -55,6 +55,16 @@ type Timex struct {
|
|||||||
_ [44]byte
|
_ [44]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
TIME_OK = 0x0
|
||||||
|
TIME_INS = 0x1
|
||||||
|
TIME_DEL = 0x2
|
||||||
|
TIME_OOP = 0x3
|
||||||
|
TIME_WAIT = 0x4
|
||||||
|
TIME_ERROR = 0x5
|
||||||
|
TIME_BAD = 0x5
|
||||||
|
)
|
||||||
|
|
||||||
type Time_t int64
|
type Time_t int64
|
||||||
|
|
||||||
type Tms struct {
|
type Tms struct {
|
||||||
|
|||||||
@@ -55,6 +55,16 @@ type Timex struct {
|
|||||||
_ [44]byte
|
_ [44]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
TIME_OK = 0x0
|
||||||
|
TIME_INS = 0x1
|
||||||
|
TIME_DEL = 0x2
|
||||||
|
TIME_OOP = 0x3
|
||||||
|
TIME_WAIT = 0x4
|
||||||
|
TIME_ERROR = 0x5
|
||||||
|
TIME_BAD = 0x5
|
||||||
|
)
|
||||||
|
|
||||||
type Time_t int32
|
type Time_t int32
|
||||||
|
|
||||||
type Tms struct {
|
type Tms struct {
|
||||||
|
|||||||
@@ -55,6 +55,16 @@ type Timex struct {
|
|||||||
_ [44]byte
|
_ [44]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
TIME_OK = 0x0
|
||||||
|
TIME_INS = 0x1
|
||||||
|
TIME_DEL = 0x2
|
||||||
|
TIME_OOP = 0x3
|
||||||
|
TIME_WAIT = 0x4
|
||||||
|
TIME_ERROR = 0x5
|
||||||
|
TIME_BAD = 0x5
|
||||||
|
)
|
||||||
|
|
||||||
type Time_t int64
|
type Time_t int64
|
||||||
|
|
||||||
type Tms struct {
|
type Tms struct {
|
||||||
|
|||||||
@@ -55,6 +55,16 @@ type Timex struct {
|
|||||||
_ [44]byte
|
_ [44]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
TIME_OK = 0x0
|
||||||
|
TIME_INS = 0x1
|
||||||
|
TIME_DEL = 0x2
|
||||||
|
TIME_OOP = 0x3
|
||||||
|
TIME_WAIT = 0x4
|
||||||
|
TIME_ERROR = 0x5
|
||||||
|
TIME_BAD = 0x5
|
||||||
|
)
|
||||||
|
|
||||||
type Time_t int64
|
type Time_t int64
|
||||||
|
|
||||||
type Tms struct {
|
type Tms struct {
|
||||||
|
|||||||
@@ -55,6 +55,16 @@ type Timex struct {
|
|||||||
_ [44]byte
|
_ [44]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
TIME_OK = 0x0
|
||||||
|
TIME_INS = 0x1
|
||||||
|
TIME_DEL = 0x2
|
||||||
|
TIME_OOP = 0x3
|
||||||
|
TIME_WAIT = 0x4
|
||||||
|
TIME_ERROR = 0x5
|
||||||
|
TIME_BAD = 0x5
|
||||||
|
)
|
||||||
|
|
||||||
type Time_t int64
|
type Time_t int64
|
||||||
|
|
||||||
type Tms struct {
|
type Tms struct {
|
||||||
|
|||||||
@@ -55,6 +55,16 @@ type Timex struct {
|
|||||||
_ [44]byte
|
_ [44]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
TIME_OK = 0x0
|
||||||
|
TIME_INS = 0x1
|
||||||
|
TIME_DEL = 0x2
|
||||||
|
TIME_OOP = 0x3
|
||||||
|
TIME_WAIT = 0x4
|
||||||
|
TIME_ERROR = 0x5
|
||||||
|
TIME_BAD = 0x5
|
||||||
|
)
|
||||||
|
|
||||||
type Time_t int64
|
type Time_t int64
|
||||||
|
|
||||||
type Tms struct {
|
type Tms struct {
|
||||||
|
|||||||
@@ -56,6 +56,16 @@ type Timex struct {
|
|||||||
_ [44]byte
|
_ [44]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
TIME_OK = 0x0
|
||||||
|
TIME_INS = 0x1
|
||||||
|
TIME_DEL = 0x2
|
||||||
|
TIME_OOP = 0x3
|
||||||
|
TIME_WAIT = 0x4
|
||||||
|
TIME_ERROR = 0x5
|
||||||
|
TIME_BAD = 0x5
|
||||||
|
)
|
||||||
|
|
||||||
type Time_t int64
|
type Time_t int64
|
||||||
|
|
||||||
type Tms struct {
|
type Tms struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user