Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 83 for Ftruncate (0.13 sec)

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

    func Ftruncate(fd int, length int64) (err error) {
    	_, _, e1 := syscall_syscall(libc_ftruncate_trampoline_addr, uintptr(fd), uintptr(length), 0)
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    var libc_ftruncate_trampoline_addr uintptr
    
    //go:cgo_import_dynamic libc_ftruncate ftruncate "/usr/lib/libSystem.B.dylib"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 66.7K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go

    func Ftruncate(fd int, length int64) (err error) {
    	_, _, e1 := syscall_syscall(libc_ftruncate_trampoline_addr, uintptr(fd), uintptr(length), 0)
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    var libc_ftruncate_trampoline_addr uintptr
    
    //go:cgo_import_dynamic libc_ftruncate ftruncate "/usr/lib/libSystem.B.dylib"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 66.7K 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. 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)
  5. src/cmd/vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go

    }
    
    func error_Futimesat(dirfd int, path string, tv []Timeval) (err error) {
    	err = ENOSYS
    	return
    }
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func Ftruncate(fd int, length int64) (err error) {
    	runtime.EnterSyscall()
    	r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_FTRUNCATE<<4, uintptr(fd), uintptr(length))
    	runtime.ExitSyscall()
    	if int64(r0) == -1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 88.2K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go

    //sys	Fsync(fd int) (err error)
    //sys	Futimes(fd int, tv []Timeval) (err error) = SYS_FUTIMES
    //sys	Futimesat(dirfd int, path string, tv []Timeval) (err error) = SYS___FUTIMESAT_A
    //sys	Ftruncate(fd int, length int64) (err error)
    //sys	Getrandom(buf []byte, flags int) (n int, err error) = SYS_GETRANDOM
    //sys	InotifyInit() (fd int, err error) = SYS_INOTIFY_INIT
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 84.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/tests/replace_cast_hacks_with_tf_xla_ops.mlir

        %9 = "tf.Cast"(%8) {Truncate = false} : (tensor<2x2xf32>) -> tensor<2x2xi8>
        %10 = "tf.Cast"(%9) {Truncate = false} : (tensor<2x2xi8>) -> tensor<2x2xi32>
        %11 = "tf.Sub"(%10, %cst_4) : (tensor<2x2xi32>, tensor<i32>) -> tensor<2x2xi32>
        %12 = "tf.Identity"(%4) : (tensor<2x2xi8>) -> tensor<2x2xi8>
        %13 = "tf.Cast"(%12) {Truncate = false} : (tensor<2x2xi8>) -> tensor<2x2xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 81K bytes
    - Viewed (0)
  8. internal/bucket/lifecycle/lifecycle_test.go

    ag><Key>tag2</Key><Value>value2</Value></Tag></And></Filter><Status>Enabled</Status><Expiration><Date>` + time.Now().Truncate(24*time.Hour).UTC().Add(-24*time.Hour).Format(time.RFC3339) + `</Date></Expiration></Rule><Rule><Filter><And><Prefix>abc/</Prefix><Tag><Key>tag2</Key><Value>value</Value></Tag></And></Filter><Status>Enabled</Status><Expiration><Date>` + time.Now().Truncate(24*time.Hour).UTC().Add(-24*time.Hour).Format(time.RFC3339) + `</Date></Expiration></Rule></LifecycleConfiguration>`,...
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  9. cmd/object-api-listobjects_test.go

    						t.Errorf("Test %d: %s: Expected NextMarker to contain a string since listing is truncated, but instead found it to be empty", i+1, instanceType)
    					}
    
    					if !testCase.resultL.IsTruncated && resultL.NextMarker != "" {
    						if !resultL.IsTruncated || len(resultL.Objects) == 0 {
    							t.Errorf("Test %d: %s: Expected NextMarker to be empty since listing is not truncated, but instead found `%v`", i+1, instanceType, resultL.NextMarker)
    						}
    					}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 01 11:07:40 UTC 2024
    - 73.1K bytes
    - Viewed (0)
  10. src/os/os_test.go

    	defer Remove(f.Name())
    	defer f.Close()
    
    	checkSize(t, f, 0)
    	f.Write([]byte("hello, world\n"))
    	checkSize(t, f, 13)
    	f.Truncate(10)
    	checkSize(t, f, 10)
    	f.Truncate(1024)
    	checkSize(t, f, 1024)
    	f.Truncate(0)
    	checkSize(t, f, 0)
    	_, err := f.Write([]byte("surprise!"))
    	if err == nil {
    		checkSize(t, f, 13+9) // wrote at offset past where hello, world was.
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
Back to top