Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 111 for atom (0.11 sec)

  1. src/os/stat_openbsd.go

    		fs.mode |= ModeSetuid
    	}
    	if fs.sys.Mode&syscall.S_ISVTX != 0 {
    		fs.mode |= ModeSticky
    	}
    }
    
    // For testing.
    func atime(fi FileInfo) time.Time {
    	return time.Unix(fi.Sys().(*syscall.Stat_t).Atim.Unix())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/intstr/intstr.go

    // it is a String, will attempt a conversion to int,
    // returning 0 if a parsing error occurs.
    func (intstr *IntOrString) IntValue() int {
    	if intstr.Type == String {
    		i, _ := strconv.Atoi(intstr.StrVal)
    		return i
    	}
    	return int(intstr.IntVal)
    }
    
    // MarshalJSON implements the json.Marshaller interface.
    func (intstr IntOrString) MarshalJSON() ([]byte, error) {
    	switch intstr.Type {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  3. src/os/user/cgo_lookup_unix.go

    	}
    	if err != nil {
    		return nil, fmt.Errorf("user: lookup username %s: %v", username, err)
    	}
    	return buildUser(&pwd), err
    }
    
    func lookupUserId(uid string) (*User, error) {
    	i, e := strconv.Atoi(uid)
    	if e != nil {
    		return nil, e
    	}
    	return lookupUnixUid(i)
    }
    
    func lookupUnixUid(uid int) (*User, error) {
    	var pwd _C_struct_passwd
    	var found bool
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:08:14 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go

    	Max uint64
    }
    
    type _Gid_t uint32
    
    type Stat_t struct {
    	Dev     uint64
    	Ino     uint64
    	Mode    uint32
    	Nlink   uint32
    	Uid     uint32
    	Gid     uint32
    	Rdev    uint64
    	Size    int64
    	Atim    Timespec
    	Mtim    Timespec
    	Ctim    Timespec
    	Blksize int32
    	Blocks  int64
    	Fstype  [16]int8
    }
    
    type Flock_t struct {
    	Type   int16
    	Whence int16
    	Start  int64
    	Len    int64
    	Sysid  int32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  5. operator/pkg/util/path.go

    }
    
    // IsNPathElement report whether pe is an index path element.
    func IsNPathElement(pe string) bool {
    	pe, ok := RemoveBrackets(pe)
    	if !ok {
    		return false
    	}
    
    	n, err := strconv.Atoi(pe)
    	return err == nil && n >= InsertIndex
    }
    
    // PathKV returns the key and value string parts of the entire key/value path element.
    // It returns an error if pe is not a key/value path element.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 12 17:12:54 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  6. src/go/build/constraint/vers.go

    		return minVersion(z.X, -sign)
    	case *TagExpr:
    		if sign < 0 {
    			// !foo implies nothing
    			return -1
    		}
    		if z.Tag == "go1" {
    			return 0
    		}
    		_, v, _ := strings.Cut(z.Tag, "go1.")
    		n, err := strconv.Atoi(v)
    		if err != nil {
    			// not a go1.N tag
    			return -1
    		}
    		return n
    	}
    }
    
    // andVersion returns the minimum Go version
    // implied by the AND of two minimum Go versions,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 27 14:19:00 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  7. src/debug/pe/section.go

    // in COFF string table st instead.
    func (sh *SectionHeader32) fullName(st StringTable) (string, error) {
    	if sh.Name[0] != '/' {
    		return cstring(sh.Name[:]), nil
    	}
    	i, err := strconv.Atoi(cstring(sh.Name[1:]))
    	if err != nil {
    		return "", err
    	}
    	return st.String(uint32(i))
    }
    
    // TODO(brainman): copy all IMAGE_REL_* consts from ldpe.go here
    
    // Reloc represents a PE COFF relocation.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  8. src/cmd/internal/pgo/deserialize.go

    		}
    		readStr = scanner.Text()
    
    		split := strings.Split(readStr, " ")
    
    		if len(split) != 2 {
    			return nil, fmt.Errorf("preprocessed profile entry got %v want 2 fields", split)
    		}
    
    		co, err := strconv.Atoi(split[0])
    		if err != nil {
    			return nil, fmt.Errorf("preprocessed profile error processing call line: %w", err)
    		}
    
    		edge := NamedCallEdge{
    			CallerName:     callerName,
    			CalleeName:     calleeName,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:20:01 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  9. internal/config/cache/remote.go

    	r.IfNoneMatch = canonicalizeETag(header.Get(xhttp.IfNoneMatch))
    	r.IfRange = header.Get(xhttp.Range)
    	ifPartNumberHeader := header.Get(xhttp.PartNumber)
    	if ifPartNumberHeader != "" {
    		if partNumber, err := strconv.Atoi(ifPartNumberHeader); err == nil {
    			r.IfPartNumber = partNumber
    		}
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Nov 22 21:46:17 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  10. src/compress/lzw/reader_test.go

    		var order Order
    		switch d[1] {
    		case "LSB":
    			order = LSB
    		case "MSB":
    			order = MSB
    		default:
    			t.Errorf("%s: bad order %q", tt.desc, d[1])
    		}
    		litWidth, _ := strconv.Atoi(d[2])
    		rc := NewReader(strings.NewReader(tt.compressed), order, litWidth)
    		defer rc.Close()
    		b.Reset()
    		n, err := io.Copy(&b, rc)
    		s := b.String()
    		if err != nil {
    			if err != tt.err {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 16:57:58 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top