Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 152 for syscall1 (0.09 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/internal/trace/testdata/generators/go122-syscall-steal-proc-simple-bare-m.go

    // license that can be found in the LICENSE file.
    
    // Tests syscall P stealing.
    
    package main
    
    import (
    	"internal/trace"
    	"internal/trace/event/go122"
    	testgen "internal/trace/internal/testgen/go122"
    )
    
    func main() {
    	testgen.Main(gen)
    }
    
    func gen(t *testgen.Trace) {
    	g := t.Generation(1)
    
    	// One goroutine enters a syscall.
    	b0 := g.Batch(trace.ThreadID(0), 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 855 bytes
    - Viewed (0)
  5. src/syscall/flock_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"
    
    // FcntlFlock performs a fcntl syscall for the [F_GETLK], [F_SETLK] or [F_SETLKW] command.
    func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error {
    	_, err := fcntlPtr(int(fd), cmd, unsafe.Pointer(lk))
    	return err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 475 bytes
    - Viewed (0)
  6. internal/disk/stat_bsd.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package disk
    
    import (
    	"errors"
    	"fmt"
    	"syscall"
    )
    
    // GetInfo returns total and free bytes available in a directory, e.g. `/`.
    func GetInfo(path string, _ bool) (info Info, err error) {
    	s := syscall.Statfs_t{}
    	err = syscall.Statfs(path, &s)
    	if err != nil {
    		return Info{}, err
    	}
    	reservedBlocks := s.Bfree - s.Bavail
    	info = Info{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 26 19:34:50 UTC 2024
    - 1.7K bytes
    - Viewed (1)
  7. src/net/tcpconn_keepalive_conf_darwin_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build darwin
    
    package net
    
    import (
    	"syscall"
    	"testing"
    )
    
    const (
    	syscall_TCP_KEEPIDLE  = syscall.TCP_KEEPALIVE
    	syscall_TCP_KEEPCNT   = sysTCP_KEEPCNT
    	syscall_TCP_KEEPINTVL = sysTCP_KEEPINTVL
    )
    
    type fdType = int
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 16:02:18 UTC 2024
    - 430 bytes
    - Viewed (0)
  8. src/net/tcpsock_windows.go

    // license that can be found in the LICENSE file.
    
    package net
    
    import (
    	"internal/syscall/windows"
    	"syscall"
    )
    
    // SetKeepAliveConfig configures keep-alive messages sent by the operating system.
    func (c *TCPConn) SetKeepAliveConfig(config KeepAliveConfig) error {
    	if !c.ok() {
    		return syscall.EINVAL
    	}
    
    	if err := setKeepAlive(c.fd, config.Enable); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:35 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  9. 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)
  10. src/syscall/flock_linux_32bit.go

    // license that can be found in the LICENSE file.
    
    //go:build (linux && 386) || (linux && arm) || (linux && mips) || (linux && mipsle)
    
    package syscall
    
    func init() {
    	// On 32-bit Linux systems, the fcntl syscall that matches Go's
    	// Flock_t type is SYS_FCNTL64, not SYS_FCNTL.
    	fcntl64Syscall = SYS_FCNTL64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 15 21:35:49 UTC 2024
    - 421 bytes
    - Viewed (0)
Back to top