- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 157 for syscall1 (0.41 sec)
-
src/os/stat_js.go
fs.mode |= ModeDir case syscall.S_IFIFO: fs.mode |= ModeNamedPipe case syscall.S_IFLNK: fs.mode |= ModeSymlink case syscall.S_IFREG: // nothing to do case syscall.S_IFSOCK: fs.mode |= ModeSocket } if fs.sys.Mode&syscall.S_ISGID != 0 { fs.mode |= ModeSetgid } if fs.sys.Mode&syscall.S_ISUID != 0 { fs.mode |= ModeSetuid } if fs.sys.Mode&syscall.S_ISVTX != 0 { fs.mode |= ModeSticky
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 18:44:48 UTC 2024 - 1.1K bytes - Viewed (0) -
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) -
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) -
src/internal/syscall/windows/version_windows.go
supportTCPKeepAliveCount = major >= 10 && build >= 15063 return } defer syscall.Closesocket(s) var optSupported = func(opt int) bool { err := syscall.SetsockoptInt(s, syscall.IPPROTO_TCP, opt, 1) return !errors.Is(err, syscall.WSAENOPROTOOPT) } supportTCPKeepAliveIdle = optSupported(TCP_KEEPIDLE) supportTCPKeepAliveInterval = optSupported(TCP_KEEPINTVL)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 11:49:46 UTC 2024 - 3.6K bytes - Viewed (0) -
src/syscall/exec_unix_test.go
} defer func() { signal.Ignore(syscall.SIGTTIN, syscall.SIGTTOU) syscall.Tcsetpgrp(ttyFD, fpgrp) signal.Reset() }() ch1 := make(chan os.Signal, 1) ch2 := make(chan bool) signal.Notify(ch1, syscall.SIGTTIN, syscall.SIGTTOU) defer signal.Stop(ch1) cmd := create(t) go func() { cmd.proc.SysProcAttr = &syscall.SysProcAttr{ Ctty: ttyFD, Foreground: true,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 22 04:41:27 UTC 2024 - 7.9K bytes - Viewed (0) -
src/runtime/testdata/testprog/syscalls_linux.go
"fmt" "internal/testenv" "io" "os" "syscall" ) func gettid() int { return syscall.Gettid() } func tidExists(tid int) (exists, supported bool, err error) { // Open the magic proc status file for reading with the syscall package. // We want to identify certain valid errors very precisely. statusFile := fmt.Sprintf("/proc/self/task/%d/status", tid) fd, err := syscall.Open(statusFile, syscall.O_RDONLY, 0)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 20:00:09 UTC 2024 - 2.2K bytes - Viewed (0) -
src/internal/poll/sock_cloexec_solaris.go
package poll import ( "internal/syscall/unix" "syscall" ) // Wrapper around the accept system call that marks the returned file // descriptor as nonblocking and close-on-exec. func accept(s int) (int, syscall.Sockaddr, string, error) { // Perform a cheap test and try the fast path first. if unix.SupportAccept4() { ns, sa, err := Accept4Func(s, syscall.SOCK_NONBLOCK|syscall.SOCK_CLOEXEC) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:17:25 UTC 2024 - 1.5K bytes - Viewed (0) -
src/internal/syscall/unix/siginfo_linux.go
_CLD_CONTINUED = 6 // These are the same as in syscall/syscall_linux.go. core = 0x80 stopped = 0x7f continued = 0xffff ) // WaitStatus converts SiginfoChild, as filled in by the waitid syscall, // to syscall.WaitStatus. func (s *SiginfoChild) WaitStatus() (ws syscall.WaitStatus) { switch s.Code { case _CLD_EXITED: ws = syscall.WaitStatus(s.Status << 8) case _CLD_DUMPED:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 01:23:00 UTC 2024 - 1.6K bytes - Viewed (0) -
src/net/tcpsockopt_darwin.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package net import ( "runtime" "syscall" "time" ) // syscall.TCP_KEEPINTVL and syscall.TCP_KEEPCNT might be missing on some darwin architectures. const ( sysTCP_KEEPINTVL = 0x101 sysTCP_KEEPCNT = 0x102 ) func setKeepAliveIdle(fd *netFD, d time.Duration) error {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 06:04:31 UTC 2024 - 1.4K bytes - Viewed (0) -
src/internal/trace/testdata/generators/go122-syscall-steal-proc-gen-boundary.go
// license that can be found in the LICENSE file. // Tests syscall P stealing at a generation boundary. 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 is exiting with a syscall. It already // acquired a new P.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 21:15:28 UTC 2024 - 1.1K bytes - Viewed (0)