Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 53 for SS (0.32 sec)

  1. src/cmd/cgo/internal/test/sigaltstack.go

    #else
    #define CSIGSTKSZ SIGSTKSZ
    #endif
    
    static stack_t oss;
    static char signalStack[CSIGSTKSZ];
    
    static void changeSignalStack(void) {
    	stack_t ss;
    	memset(&ss, 0, sizeof ss);
    	ss.ss_sp = signalStack;
    	ss.ss_flags = 0;
    	ss.ss_size = CSIGSTKSZ;
    	if (sigaltstack(&ss, &oss) < 0) {
    		perror("sigaltstack");
    		abort();
    	}
    }
    
    static void restoreSignalStack(void) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. src/cmd/go/internal/str/str.go

    			return s, t
    		}
    		clash[fold] = s
    	}
    	return "", ""
    }
    
    // Uniq removes consecutive duplicate strings from ss.
    func Uniq(ss *[]string) {
    	if len(*ss) <= 1 {
    		return
    	}
    	uniq := (*ss)[:1]
    	for _, s := range *ss {
    		if s != uniq[len(uniq)-1] {
    			uniq = append(uniq, s)
    		}
    	}
    	*ss = uniq
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 23 20:08:07 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testsanitizers/testdata/asan_global2_fail.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    /*
    #include <stdlib.h>
    #include <stdio.h>
    
    struct ss {
    	int *p;
    	int len;
    	int cap;
    };
    
    int test(struct ss *a) {
    	struct ss *t = a + 1;
    	t->len = 100;          // BOOM
    	return t->len;
    }
    */
    import "C"
    import "fmt"
    
    var tt C.struct_ss
    
    func main() {
    	r := C.test(&tt)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 472 bytes
    - Viewed (0)
  4. src/cmd/vendor/github.com/google/pprof/profile/profile.go

    	}
    
    	ss = append(ss, "Locations")
    	for _, l := range p.Location {
    		ss = append(ss, l.string())
    	}
    
    	ss = append(ss, "Mappings")
    	for _, m := range p.Mapping {
    		ss = append(ss, m.string())
    	}
    
    	return strings.Join(ss, "\n") + "\n"
    }
    
    // string dumps a text representation of a mapping. Intended mainly
    // for debugging purposes.
    func (m *Mapping) string() string {
    	bits := ""
    	if m.HasFunctions {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  5. src/cmd/fix/netipv6zone.go

    		if !ok {
    			return
    		}
    		se, ok := cl.Type.(*ast.SelectorExpr)
    		if !ok {
    			return
    		}
    		if !isTopName(se.X, "net") || se.Sel == nil {
    			return
    		}
    		switch ss := se.Sel.String(); ss {
    		case "IPAddr", "UDPAddr", "TCPAddr":
    			for i, e := range cl.Elts {
    				if _, ok := e.(*ast.KeyValueExpr); ok {
    					break
    				}
    				switch i {
    				case 0:
    					cl.Elts[i] = &ast.KeyValueExpr{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/arch/ppc64/ppc64asm/field.go

    }
    
    // BitFields is a series of BitFields representing a single number.
    type BitFields []BitField
    
    func (bs BitFields) String() string {
    	ss := make([]string, len(bs))
    	for i, bf := range bs {
    		ss[i] = bf.String()
    	}
    	return fmt.Sprintf("<%s>", strings.Join(ss, "|"))
    }
    
    func (bs *BitFields) Append(b BitField) {
    	*bs = append(*bs, b)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 10 18:59:52 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  7. src/cmd/internal/obj/riscv/list.go

    	}
    }
    
    func opSuffixString(s uint8) string {
    	if s&rmSuffixBit == 0 {
    		return ""
    	}
    
    	ss, err := rmSuffixString(s)
    	if err != nil {
    		ss = fmt.Sprintf("<invalid 0x%x>", s)
    	}
    	if ss == "" {
    		return ss
    	}
    	return fmt.Sprintf(".%s", ss)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 14:34:57 UTC 2024
    - 959 bytes
    - Viewed (0)
  8. src/archive/tar/format.go

    }
    
    func (f Format) String() string {
    	var ss []string
    	for f2 := Format(1); f2 < formatMax; f2 <<= 1 {
    		if f.has(f2) {
    			ss = append(ss, formatNames[f2])
    		}
    	}
    	switch len(ss) {
    	case 0:
    		return "<unknown>"
    	case 1:
    		return ss[0]
    	default:
    		return "(" + strings.Join(ss, " | ") + ")"
    	}
    }
    
    // Magics used to identify various formats.
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 18:36:46 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  9. src/archive/tar/writer_test.go

    		uniqueA  = "-  "
    		uniqueB  = "+  "
    		identity = "   "
    	)
    	var ss []string
    	sa := strings.Split(strings.TrimSpace(hex.Dump(a)), "\n")
    	sb := strings.Split(strings.TrimSpace(hex.Dump(b)), "\n")
    	for len(sa) > 0 && len(sb) > 0 {
    		if sa[0] == sb[0] {
    			ss = append(ss, identity+sa[0])
    		} else {
    			ss = append(ss, uniqueA+sa[0])
    			ss = append(ss, uniqueB+sb[0])
    		}
    		sa, sb = sa[1:], sb[1:]
    	}
    	for len(sa) > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 38.7K bytes
    - Viewed (0)
  10. src/cmd/link/internal/loader/loader_test.go

    	if news != es3 {
    		t.Errorf("ldr.SortSub leader got %d wanted %d", news, es3)
    	}
    	pv := int64(-1)
    	count := 0
    	for ss := ldr.SubSym(es1); ss != 0; ss = ldr.SubSym(ss) {
    		v := ldr.SymValue(ss)
    		if v <= pv {
    			t.Errorf("ldr.SortSub sortfail at %d: val %d >= prev val %d",
    				ss, v, pv)
    		}
    		pv = v
    		count++
    	}
    	if count != 5 {
    		t.Errorf("expected %d in sub list got %d", 5, count)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:08:09 UTC 2024
    - 12K bytes
    - Viewed (0)
Back to top