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:
Nikson Kanti Paul
2020-02-16 20:14:09 +01:00
committed by Tobias Klauser
parent cb0a6d8edb
commit d5e6a3e2c0
14 changed files with 140 additions and 0 deletions

View File

@@ -406,6 +406,16 @@ type Timeval C.struct_timeval
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 Tms C.struct_tms

View File

@@ -55,6 +55,16 @@ type Timex struct {
_ [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 Tms struct {

View File

@@ -55,6 +55,16 @@ type Timex struct {
_ [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 Tms struct {

View File

@@ -55,6 +55,16 @@ type Timex struct {
_ [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 Tms struct {

View File

@@ -55,6 +55,16 @@ type Timex struct {
_ [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 Tms struct {

View File

@@ -55,6 +55,16 @@ type Timex struct {
_ [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 Tms struct {

View File

@@ -55,6 +55,16 @@ type Timex struct {
_ [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 Tms struct {

View File

@@ -55,6 +55,16 @@ type Timex struct {
_ [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 Tms struct {

View File

@@ -55,6 +55,16 @@ type Timex struct {
_ [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 Tms struct {

View File

@@ -55,6 +55,16 @@ type Timex struct {
_ [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 Tms struct {

View File

@@ -55,6 +55,16 @@ type Timex struct {
_ [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 Tms struct {

View File

@@ -55,6 +55,16 @@ type Timex struct {
_ [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 Tms struct {

View File

@@ -55,6 +55,16 @@ type Timex struct {
_ [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 Tms struct {

View File

@@ -56,6 +56,16 @@ type Timex struct {
_ [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 Tms struct {