Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 855 for Ftruncate (0.24 sec)

  1. src/image/testdata/video-001.progressive.truncated.jpeg

    video-001.progressive.truncated.jpeg...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 31 00:33:24 UTC 2016
    - 7.3K bytes
    - Viewed (0)
  2. src/image/testdata/video-001.progressive.truncated.png

    video-001.progressive.truncated.png...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 31 00:33:24 UTC 2016
    - 23.1K bytes
    - Viewed (0)
  3. src/syscall/syscall_windows.go

    	var n uint32 = MAX_COMPUTERNAME_LENGTH + 1
    	b := make([]uint16, n)
    	e := GetComputerName(&b[0], &n)
    	if e != nil {
    		return "", e
    	}
    	return UTF16ToString(b[:n]), nil
    }
    
    func Ftruncate(fd Handle, length int64) (err error) {
    	curoffset, e := Seek(fd, 0, 1)
    	if e != nil {
    		return e
    	}
    	defer Seek(fd, curoffset, 0)
    	_, e = Seek(fd, length, 0)
    	if e != nil {
    		return e
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 52.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/plugin/pkg/audit/truncate/doc.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    // Package truncate provides an implementation for the audit.Backend interface
    // that truncates audit events and sends them to the delegate audit.Backend.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 10 17:16:18 UTC 2018
    - 799 bytes
    - Viewed (0)
  5. test/convlit.go

    var bad4 = "a" + 1   // ERROR "literals|incompatible|convert|invalid"
    var bad5 = "a" + 'a' // ERROR "literals|incompatible|convert|invalid"
    
    var bad6 int = 1.5       // ERROR "convert|truncate"
    var bad7 int = 1e100     // ERROR "overflow|truncated to int|truncated"
    var bad8 float32 = 1e200 // ERROR "overflow"
    
    // but these implicit conversions are okay
    var good1 string = "a"
    var good2 int = 1.0
    var good3 int = 1e9
    var good4 float64 = 1e20
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 23 05:11:09 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/util/certs/util.go

    // the expected NotBefore. Truncate (round) expectedNotBefore to 1 second, since the certificate stores
    // with seconds as the maximum precision.
    func AssertCertificateHasNotBefore(t *testing.T, cert *x509.Certificate, expectedNotBefore time.Time) {
    	truncated := expectedNotBefore.Truncate(time.Second)
    	if !cert.NotBefore.Equal(truncated) {
    		t.Errorf("cert has NotBefore %v, expected %v", cert.NotBefore, truncated)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  7. pkg/kubelet/util/boottime_util_freebsd.go

    	if e1 != 0 {
    		return time.Time{}, fmt.Errorf("error getting system uptime")
    	}
    
    	return currentTime.Add(-time.Duration(ts.Sec) * time.Second).Truncate(time.Second), nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/windows/syscall_windows.go

    	if e != nil {
    		return "", e
    	}
    	return string(utf16.Decode(b[0:n])), nil
    }
    
    func DurationSinceBoot() time.Duration {
    	return time.Duration(getTickCount64()) * time.Millisecond
    }
    
    func Ftruncate(fd Handle, length int64) (err error) {
    	curoffset, e := Seek(fd, 0, 1)
    	if e != nil {
    		return e
    	}
    	defer Seek(fd, curoffset, 0)
    	_, e = Seek(fd, length, 0)
    	if e != nil {
    		return e
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 22:18:42 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  9. pkg/kubelet/util/boottime_util_darwin.go

    			int(unsafe.Sizeof(timeval)), len(output))
    	}
    	timeval = *(*syscall.Timeval)(unsafe.Pointer(&output[0]))
    	sec, nsec := timeval.Unix()
    	return time.Unix(sec, nsec).Truncate(time.Second), nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  10. pkg/kubelet/util/boottime_util_linux.go

    )
    
    // GetBootTime returns the time at which the machine was started, truncated to the nearest second
    func GetBootTime() (time.Time, error) {
    	currentTime := time.Now()
    	var info unix.Sysinfo_t
    	if err := unix.Sysinfo(&info); err != nil {
    		return time.Time{}, fmt.Errorf("error getting system uptime: %s", err)
    	}
    	return currentTime.Add(-time.Duration(info.Uptime) * time.Second).Truncate(time.Second), nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 1.1K bytes
    - Viewed (0)
Back to top