Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 53 for setTimespec (0.17 sec)

  1. src/cmd/vendor/golang.org/x/sys/unix/timestruct.go

    // NsecToTimespec converts a number of nanoseconds into a Timespec.
    func NsecToTimespec(nsec int64) Timespec {
    	sec := nsec / 1e9
    	nsec = nsec % 1e9
    	if nsec < 0 {
    		nsec += 1e9
    		sec--
    	}
    	return setTimespec(sec, nsec)
    }
    
    // TimeToTimespec converts t into a Timespec.
    // On some 32-bit systems the range of valid Timespec values are smaller
    // than that of time.Time values.  So if t is out of the valid range of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go

    // Copyright 2009 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build amd64 && netbsd
    
    package unix
    
    func setTimespec(sec, nsec int64) Timespec {
    	return Timespec{Sec: sec, Nsec: nsec}
    }
    
    func setTimeval(sec, usec int64) Timeval {
    	return Timeval{Sec: sec, Usec: int32(usec)}
    }
    
    func SetKevent(k *Kevent_t, fd, mode, flags int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 814 bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/syscall_netbsd_arm.go

    // Copyright 2013 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build arm && netbsd
    
    package unix
    
    func setTimespec(sec, nsec int64) Timespec {
    	return Timespec{Sec: sec, Nsec: int32(nsec)}
    }
    
    func setTimeval(sec, usec int64) Timeval {
    	return Timeval{Sec: sec, Usec: int32(usec)}
    }
    
    func SetKevent(k *Kevent_t, fd, mode, flags int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 819 bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/syscall_netbsd_arm64.go

    // Copyright 2019 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build arm64 && netbsd
    
    package unix
    
    func setTimespec(sec, nsec int64) Timespec {
    	return Timespec{Sec: sec, Nsec: nsec}
    }
    
    func setTimeval(sec, usec int64) Timeval {
    	return Timeval{Sec: sec, Usec: int32(usec)}
    }
    
    func SetKevent(k *Kevent_t, fd, mode, flags int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 814 bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/syscall_openbsd_386.go

    // Copyright 2009 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build 386 && openbsd
    
    package unix
    
    func setTimespec(sec, nsec int64) Timespec {
    	return Timespec{Sec: sec, Nsec: int32(nsec)}
    }
    
    func setTimeval(sec, usec int64) Timeval {
    	return Timeval{Sec: sec, Usec: int32(usec)}
    }
    
    func SetKevent(k *Kevent_t, fd, mode, flags int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1000 bytes
    - Viewed (0)
  6. src/syscall/syscall_openbsd_ppc64.go

    // Copyright 2023 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package syscall
    
    func setTimespec(sec, nsec int64) Timespec {
    	return Timespec{Sec: sec, Nsec: nsec}
    }
    
    func setTimeval(sec, usec int64) Timeval {
    	return Timeval{Sec: sec, Usec: usec}
    }
    
    func SetKevent(k *Kevent_t, fd, mode, flags int) {
    	k.Ident = uint64(fd)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 03:24:15 UTC 2023
    - 906 bytes
    - Viewed (0)
  7. src/syscall/syscall_openbsd_riscv64.go

    // Copyright 2023 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package syscall
    
    func setTimespec(sec, nsec int64) Timespec {
    	return Timespec{Sec: sec, Nsec: nsec}
    }
    
    func setTimeval(sec, usec int64) Timeval {
    	return Timeval{Sec: sec, Usec: usec}
    }
    
    func SetKevent(k *Kevent_t, fd, mode, flags int) {
    	k.Ident = uint64(fd)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 02:55:38 UTC 2023
    - 906 bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build arm64 && freebsd
    
    package unix
    
    import (
    	"syscall"
    	"unsafe"
    )
    
    func setTimespec(sec, nsec int64) Timespec {
    	return Timespec{Sec: sec, Nsec: nsec}
    }
    
    func setTimeval(sec, usec int64) Timeval {
    	return Timeval{Sec: sec, Usec: usec}
    }
    
    func SetKevent(k *Kevent_t, fd, mode, flags int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go

    // Copyright 2009 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build amd64 && solaris
    
    package unix
    
    func setTimespec(sec, nsec int64) Timespec {
    	return Timespec{Sec: sec, Nsec: nsec}
    }
    
    func setTimeval(sec, usec int64) Timeval {
    	return Timeval{Sec: sec, Usec: usec}
    }
    
    func (iov *Iovec) SetLen(length int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 593 bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/syscall_freebsd_riscv64.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build riscv64 && freebsd
    
    package unix
    
    import (
    	"syscall"
    	"unsafe"
    )
    
    func setTimespec(sec, nsec int64) Timespec {
    	return Timespec{Sec: sec, Nsec: nsec}
    }
    
    func setTimeval(sec, usec int64) Timeval {
    	return Timeval{Sec: sec, Usec: usec}
    }
    
    func SetKevent(k *Kevent_t, fd, mode, flags int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.3K bytes
    - Viewed (0)
Back to top