- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 568 for syscalls (0.12 sec)
-
src/cmd/go/internal/lockedfile/lockedfile_filelock.go
filelock.Unlock(f) f.Close() return nil, err } } } return f, nil } func closeFile(f *os.File) error { // Since locking syscalls operate on file descriptors, we must unlock the file // while the descriptor is still valid — that is, before the file is closed — // and avoid unlocking files that are already closed. err := filelock.Unlock(f)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 1.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/plan9/mkall.sh
# let it know that a system call is running. # # * syscall_${GOOS}.go # # This hand-written Go file implements system calls that need # special handling and lists "//sys" comments giving prototypes # for ones that can be auto-generated. Mksyscall reads those # comments to generate the stubs. # # * syscall_${GOOS}_${GOARCH}.go # # Same as syscall_${GOOS}.go except that it contains code specific
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 15 19:02:39 UTC 2021 - 4.4K bytes - Viewed (0) -
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) -
cmd/update-notifier.go
// calculate the rectangular box size. maxContentWidth := max(line1Length, line2Length) // termWidth is set to a default one to use when we are // not able to calculate terminal width via OS syscalls termWidth := 25 if width, err := pb.GetTerminalWidth(); err == nil { termWidth = width } // Box cannot be printed if terminal width is small than maxContentWidth if maxContentWidth > termWidth {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat Mar 09 03:07:08 UTC 2024 - 3.6K bytes - Viewed (0) -
src/internal/trace/parser.go
EvGoSysCall = 28 // syscall enter [timestamp, stack] EvGoSysExit = 29 // syscall exit [timestamp, goroutine id, seq, real timestamp] EvGoSysBlock = 30 // syscall blocks [timestamp] EvGoWaiting = 31 // denotes that goroutine is blocked when tracing starts [timestamp, goroutine id] EvGoInSyscall = 32 // denotes that goroutine is in syscall when tracing starts [timestamp, goroutine id]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:31:04 UTC 2024 - 4.7K bytes - Viewed (0) -
src/cmd/go/internal/lockedfile/lockedfile_plan9.go
if strings.Contains(s, frag) { return true } } return false } func openFile(name string, flag int, perm fs.FileMode) (*os.File, error) { // Plan 9 uses a mode bit instead of explicit lock/unlock syscalls. // // Per http://man.cat-v.org/plan_9/5/stat: “Exclusive use files may be open // for I/O by only one fid at a time across all clients of the server. If a // second open is attempted, it draws an error.” //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 2.5K bytes - Viewed (0) -
src/cmd/trace/goroutinegen.go
} if from == trace.GoSyscall && to != trace.GoRunning { // Exiting blocked syscall. gs.syscallEnd(ev.Time(), true, ctx) gs.blockedSyscallEnd(ev.Time(), ev.Stack(), ctx) } else if from == trace.GoSyscall { // Check if we're exiting a syscall in a non-blocking way. gs.syscallEnd(ev.Time(), false, ctx) } // Handle syscalls. if to == trace.GoSyscall { start := ev.Time()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 4.6K bytes - Viewed (0) -
pkg/volume/emptydir/empty_dir_linux.go
) // Defined by Linux - the type number for tmpfs mounts. const ( linuxTmpfsMagic = 0x01021994 linuxHugetlbfsMagic = 0x958458f6 ) // realMountDetector implements mountDetector in terms of syscalls. type realMountDetector struct { mounter mount.Interface } // getPageSize obtains page size from the 'pagesize' mount option of the // mounted volume
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 3.6K bytes - Viewed (0) -
src/runtime/defs_darwin.go
VM_REGION_BASIC_INFO_64 = C.VM_REGION_BASIC_INFO_64 ) type StackT C.struct_sigaltstack type Sighandler C.union___sigaction_u type Sigaction C.struct___sigaction // used in syscalls type Usigaction C.struct_sigaction // used by sigaction second argument type Sigset C.sigset_t type Sigval C.union_sigval type Siginfo C.siginfo_t type Timeval C.struct_timeval type Itimerval C.struct_itimerval
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 12 21:17:22 UTC 2024 - 4.3K bytes - Viewed (0) -
src/cmd/link/internal/ld/target.go
} func (t *Target) UsesLibc() bool { t.mustSetHeadType() switch t.HeadType { case objabi.Haix, objabi.Hdarwin, objabi.Hopenbsd, objabi.Hsolaris, objabi.Hwindows: // platforms where we use libc for syscalls. return true } return false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 13 21:14:48 UTC 2022 - 3.9K bytes - Viewed (0)