Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 800 for Pwrite (0.16 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/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)
  3. 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)
  4. src/syscall/syscall_unix.go

    		}
    	}
    	if msan.Enabled && n > 0 {
    		msan.Write(unsafe.Pointer(&p[0]), uintptr(n))
    	}
    	if asan.Enabled && n > 0 {
    		asan.Write(unsafe.Pointer(&p[0]), uintptr(n))
    	}
    	return
    }
    
    func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
    	if race.Enabled {
    		race.ReleaseMerge(unsafe.Pointer(&ioSync))
    	}
    	n, err = pwrite(fd, p, offset)
    	if race.Enabled && n > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 16:19:26 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  5. src/syscall/syscall_darwin.go

    //sys	Umask(newmask int) (oldmask int)
    //sys	Undelete(path string) (err error)
    //sys	Unlink(path string) (err error)
    //sys	Unmount(path string, flags int) (err error)
    //sys	write(fd int, p []byte) (n int, err error)
    //sys	writev(fd int, iovecs []Iovec) (cnt uintptr, err error)
    //sys   mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/syscall_freebsd.go

    //sys	Openat(fdat int, path string, mode int, perm uint32) (fd int, err error)
    //sys	Pathconf(path string, name int) (val int, err error)
    //sys	pread(fd int, p []byte, offset int64) (n int, err error)
    //sys	pwrite(fd int, p []byte, offset int64) (n int, err error)
    //sys	read(fd int, p []byte) (n int, err error)
    //sys	Readlink(path string, buf []byte) (n int, err error)
    //sys	Readlinkat(dirfd int, path string, buf []byte) (n int, err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 05:26:45 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  7. src/syscall/syscall_solaris.go

    //sys	socket(domain int, typ int, proto int) (fd int, err error) = libsocket.__xnet_socket
    //sysnb	socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) = libsocket.__xnet_socketpair
    //sys	write(fd int, p []byte) (n int, err error)
    //sys	writev(fd int, iovecs []Iovec) (n uintptr, err error)
    //sys	getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) = libsocket.__xnet_getsockopt
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  8. src/syscall/syscall_aix.go

    //sys	Truncate(path string, length int64) (err error)
    //sys	Umask(newmask int) (oldmask int)
    //sys	Unlink(path string) (err error)
    //sysnb	Uname(buf *Utsname) (err error)
    //sys	write(fd int, p []byte) (n int, err error)
    //sys	writev(fd int, iovecs []Iovec) (n uintptr, err error)
    
    //sys	gettimeofday(tv *Timeval, tzp *Timezone) (err error)
    
    func setTimespec(sec, nsec int64) Timespec {
    	return Timespec{Sec: sec, Nsec: nsec}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:50:55 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  9. src/syscall/zsyscall_openbsd_arm.go

    	n = int(r0)
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    func libc_write_trampoline()
    
    //go:cgo_import_dynamic libc_write write "libc.so"
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func writev(fd int, iovecs []Iovec) (n uintptr, err error) {
    	var _p0 unsafe.Pointer
    	if len(iovecs) > 0 {
    		_p0 = unsafe.Pointer(&iovecs[0])
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 07:51:20 UTC 2024
    - 47.6K bytes
    - Viewed (0)
  10. src/syscall/zsyscall_aix_ppc64.go

    //go:cgo_import_dynamic libc_Umask umask "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_Unlink unlink "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_Uname uname "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_write write "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_writev writev "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_mmap mmap "libc.a/shr_64.o"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:50:55 UTC 2024
    - 41.7K bytes
    - Viewed (0)
Back to top