Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 4,415 for Pwrite (0.11 sec)

  1. src/internal/poll/fd_unix.go

    		}
    		if n == 0 {
    			return nn, io.ErrUnexpectedEOF
    		}
    	}
    }
    
    // Pwrite wraps the pwrite system call.
    func (fd *FD) Pwrite(p []byte, off int64) (int, error) {
    	// Call incref, not writeLock, because since pwrite specifies the
    	// offset it is independent from other writes.
    	// Similarly, using the poller doesn't make sense for pwrite.
    	if err := fd.incref(); err != nil {
    		return 0, err
    	}
    	defer fd.decref()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 04:09:44 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  2. src/os/file_posix.go

    	n, err = f.pfd.Pread(b, off)
    	runtime.KeepAlive(f)
    	return n, err
    }
    
    // write writes len(b) bytes to the File.
    // It returns the number of bytes written and an error, if any.
    func (f *File) write(b []byte) (n int, err error) {
    	n, err = f.pfd.Write(b)
    	runtime.KeepAlive(f)
    	return n, err
    }
    
    // pwrite writes len(b) bytes to the File starting at byte offset off.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  3. src/runtime/os_plan9.go

    	return pread(fd, buf, n, -1)
    }
    
    //go:nosplit
    func write1(fd uintptr, buf unsafe.Pointer, n int32) int32 {
    	return pwrite(int32(fd), buf, n, -1)
    }
    
    var _badsignal = []byte("runtime: signal received on thread not created by Go.\n")
    
    // This runs on a foreign stack, without an m or a g. No stack split.
    //
    //go:nosplit
    func badsignal2() {
    	pwrite(2, unsafe.Pointer(&_badsignal[0]), int32(len(_badsignal)), -1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/plan9/syscall_plan9.go

    }
    
    func Getppid() (ppid int) {
    	n, _ := readnum("#c/ppid")
    	return int(n)
    }
    
    func Read(fd int, p []byte) (n int, err error) {
    	return Pread(fd, p, -1)
    }
    
    func Write(fd int, p []byte) (n int, err error) {
    	return Pwrite(fd, p, -1)
    }
    
    var ioSync int64
    
    //sys	fd2path(fd int, buf []byte) (err error)
    
    func Fd2path(fd int) (path string, err error) {
    	var buf [512]byte
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 16 22:24:28 UTC 2022
    - 7K bytes
    - Viewed (0)
  5. src/os/file_plan9.go

    		return 0, nil
    	}
    	return fixCount(syscall.Write(f.fd, b))
    }
    
    // pwrite writes len(b) bytes to the File starting at byte offset off.
    // It returns the number of bytes written and an error, if any.
    // Since Plan 9 preserves message boundaries, never allow
    // a zero-byte write.
    func (f *File) pwrite(b []byte, off int64) (n int, err error) {
    	if err := f.writeLock(); err != nil {
    		return 0, err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:35:30 UTC 2024
    - 16K bytes
    - Viewed (0)
  6. src/internal/poll/fd_windows.go

    		}
    	}
    	return n, nil
    }
    
    // Pwrite emulates the Unix pwrite system call.
    func (fd *FD) Pwrite(buf []byte, off int64) (int, error) {
    	if fd.kind == kindPipe {
    		// Pwrite does not work with pipes
    		return 0, syscall.ESPIPE
    	}
    	// Call incref, not writeLock, because since pwrite specifies the
    	// offset it is independent from other writes.
    	if err := fd.incref(); err != nil {
    		return 0, err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 16:50:42 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  7. src/syscall/syscall_plan9.go

    }
    
    func Read(fd int, p []byte) (n int, err error) {
    	return Pread(fd, p, -1)
    }
    
    func Write(fd int, p []byte) (n int, err error) {
    	if faketime && (fd == 1 || fd == 2) {
    		n = faketimeWrite(fd, p)
    		if n < 0 {
    			return 0, ErrorString("error")
    		}
    		return n, nil
    	}
    
    	return Pwrite(fd, p, -1)
    }
    
    var ioSync int64
    
    //sys	fd2path(fd int, buf []byte) (err error)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  8. src/syscall/fs_js.go

    		return 0, err
    	}
    	js.CopyBytesToGo(b, buf)
    
    	n2 := n.Int()
    	f.pos += int64(n2)
    	return n2, err
    }
    
    func Write(fd int, b []byte) (int, error) {
    	f, err := fdToFile(fd)
    	if err != nil {
    		return 0, err
    	}
    
    	if f.seeked {
    		n, err := Pwrite(fd, b, f.pos)
    		f.pos += int64(n)
    		return n, err
    	}
    
    	if faketime && (fd == 1 || fd == 2) {
    		n := faketimeWrite(fd, b)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 11 18:19:17 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go

    //sys	Listen(s int, n int) (err error)
    //sys	Lstat(path string, stat *Stat_t) (err error)
    //sys	Pause() (err error)
    //sys	pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
    //sys	pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
    //sys	Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
    //sys	Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 5K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go

    //sys	Listen(s int, n int) (err error)
    //sys	Lstat(path string, stat *Stat_t) (err error)
    //sys	Pause() (err error)
    //sys	pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
    //sys	pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
    //sys	Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
    //sys	Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 4.4K bytes
    - Viewed (0)
Back to top