- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 1,010 for SYSCALL (0.12 sec)
-
src/os/dirent_linux.go
package os import ( "syscall" "unsafe" ) func direntIno(buf []byte) (uint64, bool) { return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Ino), unsafe.Sizeof(syscall.Dirent{}.Ino)) } func direntReclen(buf []byte) (uint64, bool) { return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Reclen), unsafe.Sizeof(syscall.Dirent{}.Reclen)) } func direntNamlen(buf []byte) (uint64, bool) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 20 00:59:20 UTC 2020 - 1.2K bytes - Viewed (0) -
src/vendor/golang.org/x/net/route/sys_freebsd.go
return align, map[int]*wireFormat{ syscall.RTM_ADD: rtm, syscall.RTM_DELETE: rtm, syscall.RTM_CHANGE: rtm, syscall.RTM_GET: rtm, syscall.RTM_LOSING: rtm, syscall.RTM_REDIRECT: rtm, syscall.RTM_MISS: rtm, syscall.RTM_LOCK: rtm, syscall.RTM_RESOLVE: rtm, syscall.RTM_NEWADDR: ifam, syscall.RTM_DELADDR: ifam, syscall.RTM_IFINFO: ifm,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 05 19:54:32 UTC 2022 - 4.7K bytes - Viewed (0) -
cmd/xl-storage-errors.go
package cmd import ( "errors" "os" "runtime" "syscall" ) // No space left on device error func isSysErrNoSpace(err error) bool { return errors.Is(err, syscall.ENOSPC) } // Invalid argument, unsupported flags such as O_DIRECT func isSysErrInvalidArg(err error) bool { return errors.Is(err, syscall.EINVAL) } // Input/output error func isSysErrIO(err error) bool {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Mar 06 16:56:29 UTC 2023 - 3.8K bytes - Viewed (0) -
src/os/stat_windows.go
} defer syscall.CloseHandle(h) return statHandle(name, h) } return fi, err } func statHandle(name string, h syscall.Handle) (FileInfo, error) { ft, err := syscall.GetFileType(h) if err != nil { return nil, &PathError{Op: "GetFileType", Path: name, Err: err} } switch ft { case syscall.FILE_TYPE_PIPE, syscall.FILE_TYPE_CHAR:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 18:44:48 UTC 2024 - 5.2K bytes - Viewed (0) -
src/internal/fuzz/sys_posix.go
switch signal { case syscall.SIGILL, // illegal instruction syscall.SIGTRAP, // breakpoint syscall.SIGABRT, // abort() called syscall.SIGBUS, // invalid memory access (e.g., misaligned address) syscall.SIGFPE, // math error, e.g., integer divide by zero syscall.SIGSEGV, // invalid memory access (e.g., write to read-only) syscall.SIGPIPE: // sent data to closed pipe or socket return true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 12 19:47:40 UTC 2022 - 4.1K bytes - Viewed (0) -
src/net/unixsock_readmsg_test.go
} defer func() { if err := syscall.Close(gotFDs[0]); err != nil { t.Fatalf("fail to close gotFDs: %v", err) } }() flags, err := unix.Fcntl(gotFDs[0], syscall.F_GETFD, 0) if err != nil { t.Fatalf("Can't get flags of fd:%#v, with err:%v", gotFDs[0], err) } if flags&syscall.FD_CLOEXEC == 0 { t.Fatalf("got flags %#x, want %#x (FD_CLOEXEC) set", flags, syscall.FD_CLOEXEC) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 18 09:15:25 UTC 2023 - 2.5K bytes - Viewed (0) -
src/internal/poll/errno_unix.go
//go:build unix || wasip1 package poll import "syscall" // Do the interface allocations only once for common // Errno values. var ( errEAGAIN error = syscall.EAGAIN errEINVAL error = syscall.EINVAL errENOENT error = syscall.ENOENT ) // errnoErr returns common boxed Errno values, to prevent // allocations at runtime. func errnoErr(e syscall.Errno) error { switch e { case 0: return nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 25 00:12:40 UTC 2023 - 696 bytes - Viewed (0) -
src/internal/poll/hook_windows.go
// license that can be found in the LICENSE file. package poll import "syscall" // CloseFunc is used to hook the close call. var CloseFunc func(syscall.Handle) error = syscall.Closesocket // AcceptFunc is used to hook the accept call. var AcceptFunc func(syscall.Handle, syscall.Handle, *byte, uint32, uint32, uint32, *uint32, *syscall.Overlapped) error = syscall.AcceptEx // ConnectExFunc is used to hook the ConnectEx call.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 07 21:54:36 UTC 2017 - 668 bytes - Viewed (0) -
src/syscall/dirent_test.go
t.Fatalf("writefile: %v", err) } } names := make([]string, 0, 10) fd, err := syscall.Open(d, syscall.O_RDONLY, 0) if err != nil { t.Fatalf("syscall.open: %v", err) } defer syscall.Close(fd) buf := bytes.Repeat([]byte{0xCD}, direntBufSize) for { n, err := syscall.ReadDirent(fd, buf) if err == syscall.EINVAL { // On linux, 'man getdents64' says that EINVAL indicates “result buffer is too small”.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 3.4K 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)