- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 136 for lseek (0.19 sec)
-
src/syscall/errors_plan9.go
// what package os and others expect. EACCES = NewError("access permission denied") EAFNOSUPPORT = NewError("address family not supported by protocol") ESPIPE = NewError("illegal seek") ) // Notes const ( SIGABRT = Note("abort") SIGALRM = Note("alarm") SIGHUP = Note("hangup") SIGINT = Note("interrupt") SIGKILL = Note("kill") SIGTERM = Note("interrupt")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Apr 22 13:31:24 UTC 2017 - 1.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_386.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build linux && gccgo && 386 package unix import ( "syscall" "unsafe" ) func seek(fd int, offset int64, whence int) (int64, syscall.Errno) { var newoffset int64 offsetLow := uint32(offset & 0xffffffff) offsetHigh := uint32((offset >> 32) & 0xffffffff)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 986 bytes - Viewed (0) -
src/syscall/asm_plan9_386.s
MOVSL MOVSL INT $64 MOVL AX, r1+28(FP) MOVL AX, r2+32(FP) MOVL AX, err+36(FP) RET #define SYS_SEEK 39 /* from zsysnum_plan9.go */ //func seek(placeholder uintptr, fd int, offset int64, whence int) (newoffset int64, err string) TEXT ·seek(SB),NOSPLIT,$24-36 NO_LOCAL_POINTERS LEAL newoffset+20(FP), AX MOVL AX, placeholder+0(FP) // copy args down LEAL placeholder+0(FP), SI
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 03 15:28:51 UTC 2018 - 3.1K bytes - Viewed (0) -
platforms/core-runtime/files/src/main/java/org/gradle/internal/file/RandomAccessFileInputStream.java
private final RandomAccessFile file; public RandomAccessFileInputStream(RandomAccessFile file) { this.file = file; } @Override public long skip(long n) throws IOException { file.seek(file.getFilePointer() + n); return n; } @Override public int read(byte[] bytes) throws IOException { return file.read(bytes); } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:51 UTC 2024 - 1.6K bytes - Viewed (0) -
cmd/dummy-data-generator_test.go
d.idx += int64(w) n += w } if d.idx >= d.length { extraBytes := d.idx - d.length n -= int(extraBytes) if n < 0 { n = 0 } err = io.EOF } return } func (d *DummyDataGen) Seek(offset int64, whence int) (int64, error) { switch whence { case io.SeekStart: if offset < 0 { return 0, errors.New("Invalid offset") } d.idx = offset case io.SeekCurrent: if d.idx+offset < 0 {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 4.8K bytes - Viewed (0) -
pkg/util/tail/tail.go
defer f.Close() fi, err := f.Stat() if err != nil { return nil, false, err } size := fi.Size() if size == 0 { return nil, false, nil } if size < max { max = size } offset, err := f.Seek(-max, io.SeekEnd) if err != nil { return nil, false, err } data, err := io.ReadAll(f) return data, offset > 0, err
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 13:13:22 UTC 2024 - 1.3K bytes - Viewed (0) -
src/debug/plan9obj/file.go
type Section struct { SectionHeader // Embed ReaderAt for ReadAt method. // Do not embed SectionReader directly // to avoid having Read and Seek. // If a client wants Read and Seek it must use // Open() to avoid fighting over the seek offset // with other clients. io.ReaderAt sr *io.SectionReader } // Data reads and returns the contents of the Plan 9 a.out section.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 19:33:30 UTC 2023 - 7.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/plan9/syscall_plan9.go
return } // Underlying system call writes to newoffset via pointer. // Implemented in assembly to avoid allocation. func seek(placeholder uintptr, fd int, offset int64, whence int) (newoffset int64, err string) func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { newoffset, e := seek(0, fd, offset, whence) if newoffset == -1 { err = syscall.ErrorString(e) } return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 16 22:24:28 UTC 2022 - 7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/asm_linux_386.s
INVOKE_SYSCALL MOVL AX, r1+16(FP) MOVL DX, r2+20(FP) RET TEXT ·socketcall(SB),NOSPLIT,$0-36 JMP syscall·socketcall(SB) TEXT ·rawsocketcall(SB),NOSPLIT,$0-36 JMP syscall·rawsocketcall(SB) TEXT ·seek(SB),NOSPLIT,$0-28
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 1.4K bytes - Viewed (0) -
tests/test_datastructures.py
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Wed Oct 18 12:36:40 UTC 2023 - 2K bytes - Viewed (0)