Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 250 for pwritev (0.17 sec)

  1. src/syscall/linkname_libc.go

    // license that can be found in the LICENSE file.
    
    //go:build aix || darwin || (openbsd && !mips64) || solaris
    
    package syscall
    
    import _ "unsafe"
    
    // used by internal/poll
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 303 bytes
    - Viewed (0)
  2. src/internal/poll/fd.go

    // consume removes data from a slice of byte slices, for writev.
    func consume(v *[][]byte, n int64) {
    	for len(*v) > 0 {
    		ln0 := int64(len((*v)[0]))
    		if ln0 > n {
    			(*v)[0] = (*v)[0][n:]
    			return
    		}
    		n -= ln0
    		(*v)[0] = nil
    		*v = (*v)[1:]
    	}
    }
    
    // TestHookDidWritev is a hook for testing writev.
    var TestHookDidWritev = func(wrote int) {}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:16:28 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  3. src/internal/poll/fd_writev_unix.go

    // license that can be found in the LICENSE file.
    
    //go:build dragonfly || freebsd || linux || netbsd || (openbsd && mips64)
    
    package poll
    
    import (
    	"syscall"
    	"unsafe"
    )
    
    func writev(fd int, iovecs []syscall.Iovec) (uintptr, error) {
    	var (
    		r uintptr
    		e syscall.Errno
    	)
    	for {
    		r, _, e = syscall.Syscall(syscall.SYS_WRITEV, uintptr(fd), uintptr(unsafe.Pointer(&iovecs[0])), uintptr(len(iovecs)))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 09 16:24:04 UTC 2022
    - 601 bytes
    - Viewed (0)
  4. src/runtime/print.go

    	mp.printlock--
    	if mp.printlock == 0 {
    		unlock(&debuglock)
    	}
    }
    
    // write to goroutine-local buffer if diverting output,
    // or else standard error.
    func gwrite(b []byte) {
    	if len(b) == 0 {
    		return
    	}
    	recordForPanic(b)
    	gp := getg()
    	// Don't use the writebuf if gp.m is dying. We want anything
    	// written through gwrite to appear in the terminal rather
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 20 03:27:26 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  5. src/cmd/internal/obj/x86/seh.go

    	buf := newsehbuf(ctxt, nodes)
    	buf.write8(flags | 1)            // Flags + version
    	buf.write8(uint8(movbp.Link.Pc)) // Size of prolog
    	buf.write8(nodes)                // Count of nodes
    	buf.write8(SEH_REG_BP)           // FP register
    
    	// Notes are written in reverse order of appearance.
    	buf.write8(uint8(movbp.Link.Pc))
    	buf.writecode(UWOP_SET_FPREG, 0)
    
    	buf.write8(uint8(pushbp.Link.Pc))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 14:41:10 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. src/net/resolverdialfunc_test.go

    	// last.
    	// And it's also annoying if it's possible for users to set
    	// different TTLs per Answer.
    	if w.a.wrote {
    		return
    	}
    	w.a.ttl = seconds
    
    }
    
    type AWriter struct{ ResponseWriter }
    
    func (w AWriter) AddIP(v4 [4]byte) {
    	w.a.wrote = true
    	err := w.a.builder.AResource(w.header(), dnsmessage.AResource{A: v4})
    	if err != nil {
    		panic(err)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  7. 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)
  8. releasenotes/notes/concurrent-map-write.yaml

    apiVersion: release-notes/v2
    kind: bug-fix
    area: traffic-management
    releaseNotes:
      - |
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 13 15:23:12 UTC 2024
    - 171 bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top