- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 342 for unixOS (0.24 sec)
-
src/os/stat_solaris.go
// These constants aren't in the syscall package, which is frozen. // Values taken from golang.org/x/sys/unix. const ( _S_IFNAM = 0x5000 _S_IFDOOR = 0xd000 _S_IFPORT = 0xe000 ) func fillFileStatFromSys(fs *fileStat, name string) { fs.name = filepathlite.Base(name) fs.size = fs.sys.Size fs.modTime = time.Unix(fs.sys.Mtim.Unix()) fs.mode = FileMode(fs.sys.Mode & 0777) switch fs.sys.Mode & syscall.S_IFMT {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 18:44:48 UTC 2024 - 1.3K bytes - Viewed (0) -
src/cmd/go/internal/telemetrystats/version_unix.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build !cmd_go_bootstrap && unix package telemetrystats import ( "bytes" "fmt" "runtime" "strings" "cmd/internal/telemetry" "golang.org/x/sys/unix" ) func incrementVersionCounters() { convert := func(nullterm []byte) string { end := bytes.IndexByte(nullterm, 0) if end < 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 15:44:55 UTC 2024 - 1.4K bytes - Viewed (0) -
cmd/erasure-healing-common_test.go
[]time.Time{ time.Unix(0, 1).UTC(), time.Unix(0, 2).UTC(), time.Unix(0, 3).UTC(), time.Unix(0, 3).UTC(), time.Unix(0, 2).UTC(), time.Unix(0, 3).UTC(), time.Unix(0, 1).UTC(), }, time.Unix(0, 3).UTC(), 3, }, { // 2. Tests common time obtained when all elements are equal. []time.Time{ time.Unix(0, 3).UTC(), time.Unix(0, 3).UTC(),
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:51:27 UTC 2024 - 23K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/oidc/oidc_test.go
// Use {{.Expired}} to handle the token expiry date string with correct timezone handling. v := struct { URL string Expired string }{ URL: ts.URL, Expired: fmt.Sprintf("%v", time.Unix(expired.Unix(), 0)), } c.claims = replace(c.claims, &v) c.openIDConfig = replace(c.openIDConfig, &v) c.options.JWTAuthenticator.Issuer.URL = replace(c.options.JWTAuthenticator.Issuer.URL, &v)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 97.7K bytes - Viewed (0) -
src/os/stat_darwin.go
package os import ( "internal/filepathlite" "syscall" "time" ) func fillFileStatFromSys(fs *fileStat, name string) { fs.name = filepathlite.Base(name) fs.size = fs.sys.Size fs.modTime = time.Unix(fs.sys.Mtimespec.Unix()) fs.mode = FileMode(fs.sys.Mode & 0777) switch fs.sys.Mode & syscall.S_IFMT { case syscall.S_IFBLK, syscall.S_IFWHT: fs.mode |= ModeDevice case syscall.S_IFCHR: fs.mode |= ModeDevice | ModeCharDevice
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/os/stat_dragonfly.go
package os import ( "internal/filepathlite" "syscall" "time" ) func fillFileStatFromSys(fs *fileStat, name string) { fs.name = filepathlite.Base(name) fs.size = fs.sys.Size fs.modTime = time.Unix(fs.sys.Mtim.Unix()) fs.mode = FileMode(fs.sys.Mode & 0777) switch fs.sys.Mode & syscall.S_IFMT { case syscall.S_IFBLK: fs.mode |= ModeDevice case syscall.S_IFCHR: fs.mode |= ModeDevice | ModeCharDevice
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/os/removeall_at.go
// Copyright 2018 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. //go:build unix package os import ( "internal/syscall/unix" "io" "syscall" ) func removeAll(path string) error { if path == "" { // fail silently to retain compatibility with previous behavior // of RemoveAll. See issue 28830. return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 17:09:26 UTC 2024 - 4.8K bytes - Viewed (0) -
src/os/pidfd_linux.go
// v5.3: pidfd_open syscall, clone3 syscall; // v5.4: P_PIDFD idtype support for waitid syscall; // v5.6: pidfd_getfd syscall. package os import ( "errors" "internal/syscall/unix" "sync" "syscall" "unsafe" ) func ensurePidfd(sysAttr *syscall.SysProcAttr) *syscall.SysProcAttr { if !pidfdWorks() { return sysAttr } var pidfd int if sysAttr == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 18:08:44 UTC 2024 - 4.2K bytes - Viewed (0) -
pkg/proxy/util/nfacct/nfacct_linux.go
return ErrEmptyName } if len(name) > MaxLength { return ErrNameExceedsMaxLength } req := r.handler.newRequest(cmdNew, unix.NLM_F_REQUEST|unix.NLM_F_CREATE|unix.NLM_F_ACK) req.AddData(nl.NewRtAttr(attrName, nl.ZeroTerminated(name))) _, err := req.Execute(unix.NETLINK_NETFILTER, 0) if err != nil { return handleError(err) } return nil } // Get is part of the interface.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Apr 27 06:47:50 UTC 2024 - 9.2K bytes - Viewed (0) -
cni/pkg/iptables/iptables_linux.go
package iptables import ( "errors" "fmt" "net" "github.com/vishvananda/netlink" "golang.org/x/sys/unix" ) func AddInpodMarkIPRule(cfg *Config) error { err := forEachInpodMarkIPRule(cfg, netlink.RuleAdd) if errors.Is(err, unix.EEXIST) { log.Debugf("Ignoring exists error adding inpod mark ip rule: %v", err) return nil } return err }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 22:24:38 UTC 2024 - 3.3K bytes - Viewed (0)