- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 757 for unix (0.47 sec)
-
internal/disk/directio_unix.go
} // DisableDirectIO - disables directio mode. func DisableDirectIO(f *os.File) error { fd := f.Fd() flag, err := unix.FcntlInt(fd, unix.F_GETFL, 0) if err != nil { return err } flag &= ^(syscall.O_DIRECT) _, err = unix.FcntlInt(fd, unix.F_SETFL, flag) return err } // AlignedBlock - pass through to directio implementation. func AlignedBlock(blockSize int) []byte {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sat Jun 17 14:31:36 GMT 2023 - 1.6K bytes - Viewed (0) -
src/archive/tar/stat_unix.go
case "linux": // Copied from golang.org/x/sys/unix/dev_linux.go. major := uint32((dev & 0x00000000000fff00) >> 8) major |= uint32((dev & 0xfffff00000000000) >> 32) minor := uint32((dev & 0x00000000000000ff) >> 0) minor |= uint32((dev & 0x00000ffffff00000) >> 12) h.Devmajor, h.Devminor = int64(major), int64(minor) case "darwin", "ios": // Copied from golang.org/x/sys/unix/dev_darwin.go. major := uint32((dev >> 24) & 0xff)
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Mar 15 16:01:50 GMT 2024 - 3.2K bytes - Viewed (0) -
cmd/os_unix.go
package cmd import ( "bytes" "fmt" "os" "strings" "sync" "syscall" "unsafe" "golang.org/x/sys/unix" ) func access(name string) error { if err := unix.Access(name, unix.F_OK); err != nil { return &os.PathError{Op: "lstat", Path: name, Err: err} } return nil } // openFileWithFD return 'fd' based file descriptor
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Jan 18 07:03:17 GMT 2024 - 9.3K bytes - Viewed (0) -
src/cmd/cgo/internal/test/cthread_unix.c
Cherry Mui <******@****.***> 1684339275 -0400
C - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Wed May 17 21:53:11 GMT 2023 - 1K bytes - Viewed (0) -
internal/disk/fdatasync_unix.go
Harshavardhana <******@****.***> 1632958828 -0700
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Wed Sep 29 23:40:28 GMT 2021 - 1.1K bytes - Viewed (0) -
internal/disk/disk_unix.go
Harshavardhana <******@****.***> 1629336922 -0700
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Aug 19 01:35:22 GMT 2021 - 1.2K bytes - Viewed (0) -
utils/utils_unix_test.go
//go:build unix // +build unix package utils import ( "testing" ) func TestSourceDir(t *testing.T) { cases := []struct { file string want string }{ { file: "/Users/name/go/pkg/mod/gorm.io/gorm@v1.2.3/utils/utils.go", want: "/Users/name/go/pkg/mod/gorm.io/", }, { file: "/go/work/proj/gorm/utils/utils.go", want: "/go/work/proj/gorm/", }, {
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Mon Nov 21 02:48:13 GMT 2022 - 731 bytes - Viewed (0) -
src/cmd/cgo/internal/test/cgo_unix_test.go
Austin Clements <******@****.***> 1683224724 -0400
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Fri May 12 12:00:02 GMT 2023 - 391 bytes - Viewed (0) -
cmd/xl-storage_unix_test.go
Eng Zer Jun <******@****.***> 1658777846 +0800
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Mon Jul 25 19:37:26 GMT 2022 - 3.4K bytes - Viewed (0) -
internal/http/dial_linux.go
{ // Enable big buffers _ = unix.SetsockoptInt(fd, unix.SOL_SOCKET, unix.SO_SNDBUF, opts.SendBufSize) _ = unix.SetsockoptInt(fd, unix.SOL_SOCKET, unix.SO_RCVBUF, opts.RecvBufSize) } // Enable TCP open // https://lwn.net/Articles/508865/ - 32k queue size. _ = syscall.SetsockoptInt(fd, syscall.SOL_TCP, unix.TCP_FASTOPEN, 32*1024) // Enable TCP fast connect
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Wed Apr 24 04:08:47 GMT 2024 - 4.3K bytes - Viewed (3)