Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 1,010 for SYSCALL (0.92 sec)

  1. src/internal/syscall/windows/registry/zsyscall_windows.go

    	if r0 != 0 {
    		regerrno = syscall.Errno(r0)
    	}
    	return
    }
    
    func regDeleteKey(key syscall.Handle, subkey *uint16) (regerrno error) {
    	r0, _, _ := syscall.Syscall(procRegDeleteKeyW.Addr(), 2, uintptr(key), uintptr(unsafe.Pointer(subkey)), 0)
    	if r0 != 0 {
    		regerrno = syscall.Errno(r0)
    	}
    	return
    }
    
    func regDeleteValue(key syscall.Handle, name *uint16) (regerrno error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 02 15:41:00 UTC 2020
    - 4K bytes
    - Viewed (0)
  2. src/net/file_wasip1_test.go

    		filetype syscall.Filetype
    		network  string
    		error    error
    	}{
    		{syscall.FILETYPE_SOCKET_STREAM, "tcp", nil},
    		{syscall.FILETYPE_SOCKET_DGRAM, "", syscall.EOPNOTSUPP},
    		{syscall.FILETYPE_BLOCK_DEVICE, "", syscall.ENOTSOCK},
    		{syscall.FILETYPE_CHARACTER_DEVICE, "", syscall.ENOTSOCK},
    		{syscall.FILETYPE_DIRECTORY, "", syscall.ENOTSOCK},
    		{syscall.FILETYPE_REGULAR_FILE, "", syscall.ENOTSOCK},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 13 21:06:56 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  3. src/net/iprawsock_posix.go

    // license that can be found in the LICENSE file.
    
    //go:build unix || js || wasip1 || windows
    
    package net
    
    import (
    	"context"
    	"syscall"
    )
    
    func sockaddrToIP(sa syscall.Sockaddr) Addr {
    	switch sa := sa.(type) {
    	case *syscall.SockaddrInet4:
    		return &IPAddr{IP: sa.Addr[0:]}
    	case *syscall.SockaddrInet6:
    		return &IPAddr{IP: sa.Addr[0:], Zone: zoneCache.name(int(sa.ZoneId))}
    	}
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:54:32 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. src/internal/poll/sendfile_windows.go

    package poll
    
    import (
    	"io"
    	"syscall"
    )
    
    // SendFile wraps the TransmitFile call.
    func SendFile(fd *FD, src syscall.Handle, n int64) (written int64, err error) {
    	defer func() {
    		TestHookDidSendFile(fd, 0, written, err, written > 0)
    	}()
    	if fd.kind == kindPipe {
    		// TransmitFile does not work with pipes
    		return 0, syscall.ESPIPE
    	}
    	if ft, _ := syscall.GetFileType(src); ft == syscall.FILE_TYPE_PIPE {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. src/crypto/sha1/issue15617_test.go

    package sha1_test
    
    import (
    	"crypto/sha1"
    	"syscall"
    	"testing"
    )
    
    func TestOutOfBoundsRead(t *testing.T) {
    	const pageSize = 4 << 10
    	data, err := syscall.Mmap(0, 0, 2*pageSize, syscall.PROT_READ|syscall.PROT_WRITE, syscall.MAP_ANON|syscall.MAP_PRIVATE)
    	if err != nil {
    		panic(err)
    	}
    	if err := syscall.Mprotect(data[pageSize:], syscall.PROT_NONE); err != nil {
    		panic(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 14 14:17:04 UTC 2022
    - 660 bytes
    - Viewed (0)
  6. src/os/stat_plan9.go

    package os
    
    import (
    	"syscall"
    	"time"
    )
    
    const bitSize16 = 2
    
    func fileInfoFromStat(d *syscall.Dir) *fileStat {
    	fs := &fileStat{
    		name:    d.Name,
    		size:    d.Length,
    		modTime: time.Unix(int64(d.Mtime), 0),
    		sys:     d,
    	}
    	fs.mode = FileMode(d.Mode & 0777)
    	if d.Mode&syscall.DMDIR != 0 {
    		fs.mode |= ModeDir
    	}
    	if d.Mode&syscall.DMAPPEND != 0 {
    		fs.mode |= ModeAppend
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Oct 08 03:57:40 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  7. src/vendor/golang.org/x/net/route/sys_netbsd.go

    	return 8, map[int]*wireFormat{
    		syscall.RTM_ADD:        rtm,
    		syscall.RTM_DELETE:     rtm,
    		syscall.RTM_CHANGE:     rtm,
    		syscall.RTM_GET:        rtm,
    		syscall.RTM_LOSING:     rtm,
    		syscall.RTM_REDIRECT:   rtm,
    		syscall.RTM_MISS:       rtm,
    		syscall.RTM_LOCK:       rtm,
    		syscall.RTM_RESOLVE:    rtm,
    		syscall.RTM_NEWADDR:    ifam,
    		syscall.RTM_DELADDR:    ifam,
    		syscall.RTM_IFANNOUNCE: ifanm,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 05 19:54:32 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  8. src/net/sockopt_windows.go

    package net
    
    import (
    	"os"
    	"syscall"
    )
    
    func setDefaultSockopts(s syscall.Handle, family, sotype int, ipv6only bool) error {
    	if family == syscall.AF_INET6 && sotype != syscall.SOCK_RAW {
    		// Allow both IP versions even if the OS default
    		// is otherwise. Note that some operating systems
    		// never admit this option.
    		syscall.SetsockoptInt(s, syscall.IPPROTO_IPV6, syscall.IPV6_V6ONLY, boolint(ipv6only))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 09 00:33:27 UTC 2020
    - 1.5K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/outbuf_mmap.go

    		// area.
    		if err != syscall.ENOTSUP && err != syscall.EPERM && err != errNoFallocate {
    			return err
    		}
    	}
    	err = out.f.Truncate(int64(filesize))
    	if err != nil {
    		Exitf("resize output file failed: %v", err)
    	}
    	out.buf, err = syscall.Mmap(int(out.f.Fd()), 0, int(filesize), syscall.PROT_READ|syscall.PROT_WRITE, syscall.MAP_SHARED|syscall.MAP_FILE)
    	if err != nil {
    		return err
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:20:31 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  10. src/time/sys_unix.go

    	// skipping the test altogether.
    	if runtime.GOOS != "wasip1" {
    		syscall.Kill(syscall.Getpid(), syscall.SIGCHLD)
    	}
    }
    
    func open(name string) (uintptr, error) {
    	fd, err := syscall.Open(name, syscall.O_RDONLY, 0)
    	if err != nil {
    		return 0, err
    	}
    	return uintptr(fd), nil
    }
    
    func read(fd uintptr, buf []byte) (int, error) {
    	return syscall.Read(int(fd), buf)
    }
    
    func closefd(fd uintptr) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 20:56:10 UTC 2023
    - 1.4K bytes
    - Viewed (0)
Back to top