Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 101 for syscall0 (0.13 sec)

  1. src/internal/trace/testdata/testprog/stress-start-stop.go

    // Copyright 2023 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Tests a many interesting cases (network, syscalls, a little GC, busy goroutines,
    // blocked goroutines, LockOSThread, pipes, and GOMAXPROCS).
    
    //go:build ignore
    
    package main
    
    import (
    	"bytes"
    	"io"
    	"log"
    	"net"
    	"os"
    	"runtime"
    	"runtime/trace"
    	"sync"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. src/os/path_windows.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package os
    
    import (
    	"internal/filepathlite"
    	"internal/syscall/windows"
    	"syscall"
    )
    
    const (
    	PathSeparator     = '\\' // OS-specific path separator
    	PathListSeparator = ';'  // OS-specific path list separator
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. src/os/exec_unix_test.go

    	}
    
    	p, err := FindProcess(pid)
    	if err != nil {
    		t.Fatalf("FindProcess(math.MaxInt32) got err %v, want nil", err)
    	}
    
    	if ps, err := p.Wait(); !errors.Is(err, syscall.ECHILD) {
    		t.Errorf("Wait() got err %v (ps %+v), want %v", err, ps, syscall.ECHILD)
    	}
    
    	if err := p.Release(); err != nil {
    		t.Errorf("Release() got err %v, want nil", err)
    	}
    }
    
    func TestUNIXProcessAlive(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 18:08:44 UTC 2024
    - 2K bytes
    - Viewed (0)
  4. src/os/zero_copy_linux.go

    package os
    
    import (
    	"internal/poll"
    	"io"
    	"syscall"
    )
    
    var (
    	pollCopyFileRange = poll.CopyFileRange
    	pollSplice        = poll.Splice
    )
    
    // wrapSyscallError takes an error and a syscall name. If the error is
    // a syscall.Errno, it wraps it in an os.SyscallError using the syscall name.
    func wrapSyscallError(name string, err error) error {
    	if _, ok := err.(syscall.Errno); ok {
    		err = NewSyscallError(name, err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  5. src/os/exec_linux.go

    // Copyright 2024 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package os
    
    import (
    	"syscall"
    )
    
    func (p *Process) closeHandle() {
    	syscall.Close(int(p.handle))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 261 bytes
    - Viewed (0)
  6. src/cmd/go/internal/script/cmds_unix.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build unix
    
    package script
    
    import (
    	"errors"
    	"syscall"
    )
    
    func isETXTBSY(err error) bool {
    	return errors.Is(err, syscall.ETXTBSY)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 00:12:01 UTC 2024
    - 301 bytes
    - Viewed (0)
  7. src/syscall/linkname_openbsd.go

    // Copyright 2024 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build openbsd && !mips64
    
    package syscall
    
    import _ "unsafe"
    
    // used by internal/syscall/unix
    //go:linkname unlinkat
    //go:linkname openat
    //go:linkname fstatat
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 351 bytes
    - Viewed (0)
  8. src/internal/syscall/unix/nofollow_bsd.go

    // license that can be found in the LICENSE file.
    
    //go:build dragonfly || freebsd
    
    package unix
    
    import "syscall"
    
    // References:
    // - https://man.freebsd.org/cgi/man.cgi?open(2)
    // - https://man.dragonflybsd.org/?command=open&section=2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:09:26 UTC 2024
    - 384 bytes
    - Viewed (0)
  9. src/syscall/linkname_bsd.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build darwin || dragonfly || freebsd || netbsd || openbsd
    
    package syscall
    
    import _ "unsafe"
    
    // used by internal/syscall/unix
    //go:linkname ioctlPtr
    
    // golang.org/x/net linknames sysctl.
    // Do not remove or change the type signature.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 426 bytes
    - Viewed (0)
  10. internal/http/dial_others.go

    package http
    
    import (
    	"context"
    	"net"
    	"syscall"
    	"time"
    )
    
    // TODO: if possible implement for non-linux platforms, not a priority at the moment
    //
    //nolint:unused
    func setTCPParametersFn(opts TCPOptions) func(network, address string, c syscall.RawConn) error {
    	return func(network, address string, c syscall.RawConn) error {
    		return nil
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Apr 24 04:08:47 UTC 2024
    - 1.6K bytes
    - Viewed (0)
Back to top