- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 181 for syscall0 (0.14 sec)
-
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/os/file_windows.go
if e1 != e { a, e2 := syscall.GetFileAttributes(p) if e2 != nil { e = e2 } else { if a&syscall.FILE_ATTRIBUTE_DIRECTORY != 0 { e = e1 } else if a&syscall.FILE_ATTRIBUTE_READONLY != 0 { if e1 = syscall.SetFileAttributes(p, a&^syscall.FILE_ATTRIBUTE_READONLY); e1 == nil { if e = syscall.DeleteFile(p); e == nil { return nil } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 30 15:38:38 UTC 2024 - 13.4K bytes - Viewed (0) -
src/os/file_plan9.go
const DevNull = "/dev/null" // syscallMode returns the syscall-specific mode bits from Go's portable mode bits. func syscallMode(i FileMode) (o uint32) { o |= uint32(i.Perm()) if i&ModeAppend != 0 { o |= syscall.DMAPPEND } if i&ModeExclusive != 0 { o |= syscall.DMEXCL } if i&ModeTemporary != 0 { o |= syscall.DMTMP } return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 30 15:35:30 UTC 2024 - 16K bytes - Viewed (0) -
src/net/ipsock_posix.go
} for i := range probes { s, err := sysSocket(syscall.AF_INET6, syscall.SOCK_STREAM, syscall.IPPROTO_TCP) if err != nil { continue } defer poll.CloseFunc(s) syscall.SetsockoptInt(s, syscall.IPPROTO_IPV6, syscall.IPV6_V6ONLY, probes[i].value) sa, err := probes[i].laddr.sockaddr(syscall.AF_INET6) if err != nil { continue } if err := syscall.Bind(s, sa); err != nil { continue } if i == 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 8.6K bytes - Viewed (0) -
src/internal/poll/sendfile_solaris.go
n = int(remain) } pos1 := pos n, err = syscall.Sendfile(dst, src, &pos1, n) if err == syscall.EAGAIN || err == syscall.EINTR { // partial write may have occurred n = int(pos1 - pos) } if n > 0 { pos += int64(n) written += int64(n) remain -= int64(n) continue } else if err != syscall.EAGAIN && err != syscall.EINTR { // This includes syscall.ENOSYS (no kernel
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 18:12:56 UTC 2024 - 1.8K 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/internal/poll/fd_wasip1.go
// duplicate file descriptors. func dupCloseOnExecOld(fd int) (int, string, error) { return -1, "dup", syscall.ENOSYS } // Fchdir wraps syscall.Fchdir. func (fd *FD) Fchdir() error { if err := fd.incref(); err != nil { return err } defer fd.decref() return syscall.Chdir(fd.Path) } // ReadDir wraps syscall.ReadDir. // We treat this like an ordinary system call rather than a call // that tries to fill the buffer.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 20:14:02 UTC 2024 - 6.7K bytes - Viewed (0) -
src/os/user/cgo_lookup_unix.go
var grp _C_struct_group var found bool err := retryWithBuffer(groupBuffer, func(buf []byte) syscall.Errno { var errno syscall.Errno grp, found, errno = _C_getgrgid_r(_C_gid_t(gid), (*_C_char)(unsafe.Pointer(&buf[0])), _C_size_t(len(buf))) return syscall.Errno(errno) }) if err == syscall.ENOENT || (err == nil && !found) { return nil, UnknownGroupIdError(strconv.Itoa(gid)) } if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 17:08:14 UTC 2024 - 5.2K bytes - Viewed (0) -
src/os/pidfd_other.go
//go:build (unix && !linux) || (js && wasm) || wasip1 || windows package os import "syscall" func ensurePidfd(sysAttr *syscall.SysProcAttr) *syscall.SysProcAttr { return sysAttr } func getPidfd(_ *syscall.SysProcAttr) (uintptr, bool) { return 0, false } func pidfdFind(_ int) (uintptr, error) { return 0, syscall.ENOSYS } func (p *Process) pidfdRelease() {}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 22:06:47 UTC 2024 - 692 bytes - Viewed (0) -
src/os/exec_unix.go
// active call to the signal method to complete. p.sigMu.Lock() p.sigMu.Unlock() } var ( status syscall.WaitStatus rusage syscall.Rusage pid1 int e error ) for { pid1, e = syscall.Wait4(p.Pid, &status, 0, &rusage) if e != syscall.EINTR { break } } if e != nil { return nil, NewSyscallError("wait", e) } p.pidDeactivate(statusDone)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 22:06:47 UTC 2024 - 4.1K bytes - Viewed (0)