Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 90 for catching (0.74 sec)

  1. src/cmd/cgo/internal/testcshared/testdata/libgo5/libgo5.go

    	"syscall"
    	"time"
    )
    
    // The channel used to read SIGIO signals.
    var sigioChan chan os.Signal
    
    // CatchSIGIO starts catching SIGIO signals.
    //
    //export CatchSIGIO
    func CatchSIGIO() {
    	sigioChan = make(chan os.Signal, 1)
    	signal.Notify(sigioChan, syscall.SIGIO)
    }
    
    // ResetSIGIO stops catching SIGIO signals.
    //
    //export ResetSIGIO
    func ResetSIGIO() {
    	signal.Reset(syscall.SIGIO)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 986 bytes
    - Viewed (0)
  2. src/cmd/doc/main.go

    		return true
    	}
    	for _, dotPath := range dotPaths {
    		if strings.HasPrefix(arg, dotPath) {
    			return true
    		}
    	}
    	return false
    }
    
    // importDir is just an error-catching wrapper for build.ImportDir.
    func importDir(dir string) *build.Package {
    	pkg, err := build.ImportDir(dir, build.ImportComment)
    	if err != nil {
    		log.Fatal(err)
    	}
    	return pkg
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testcshared/testdata/main5.c

    	}
    
    	awaitSIGIO();
    
    	if (sigioSeen != 0) {
    		fprintf(stderr, "C handler saw SIGIO when only Go handler should have\n");
    		exit(EXIT_FAILURE);
    	}
    
    	// Tell the Go code to stop catching SIGIO.
    
    	if (verbose) {
    		fprintf(stderr, "calling dlsym\n");
    	}
    
    	resetSIGIO = (void (*)(void))dlsym(handle, "ResetSIGIO");
    	if (resetSIGIO == NULL) {
    		fprintf(stderr, "%s\n", dlerror());
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  4. src/cmd/dist/buildtool.go

    		// change from one bootstrap toolchain to the next.
    		// There are many internal packages that are listed in
    		// bootstrapDirs and made into bootstrap copies based on the
    		// current repo's source code. Those are fine; this is catching
    		// references to internal packages in the older bootstrap toolchain.
    		if strings.HasPrefix(path, "internal/") {
    			fatalf("%s:%d: bootstrap-copied source file cannot import %s", srcFile, i+1, path)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 23:29:41 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  5. src/cmd/go/internal/test/test.go

    	if len(pkgArgs) == 0 {
    		// Caching does not apply to "go test",
    		// only to "go test foo" (including "go test .").
    		if cache.DebugTest {
    			fmt.Fprintf(os.Stderr, "testcache: caching disabled in local directory mode\n")
    		}
    		c.disableCache = true
    		return false
    	}
    
    	if a.Package.Root == "" {
    		// Caching does not apply to tests outside of any module, GOPATH, or GOROOT.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/lookup.go

    						return nil, index, false // collision
    					}
    					obj = m
    					indirect = e.indirect
    					continue // we can't have a matching field or interface method
    				}
    			}
    
    			switch t := under(typ).(type) {
    			case *Struct:
    				// look for a matching field and collect embedded types
    				for i, f := range t.fields {
    					if f.sameId(pkg, name, foldCase) {
    						assert(f.typ != nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  7. src/cmd/go/alldocs.go

    //	    element in the sequence, if any. Possible parents of matches
    //	    are run with b.N=1 to identify sub-benchmarks. For example,
    //	    given -bench=X/Y, top-level benchmarks matching X are run
    //	    with b.N=1 to find any sub-benchmarks matching Y, which are
    //	    then run in full.
    //
    //	-benchtime t
    //	    Run enough iterations of each benchmark to take t, specified
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 142.4K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/compile.go

    		default:
    			return fmt.Sprintf("Did not find a flag matching %s in -d=ssa/%s debug option (expected ssa/build/{debug,test,stats,dump=function_name})", flag, phase)
    		}
    		return ""
    	}
    	if phase == "genssa" {
    		switch flag {
    		case "dump":
    			GenssaDump[valString] = true
    		default:
    			return fmt.Sprintf("Did not find a flag matching %s in -d=ssa/%s debug option (expected ssa/genssa/dump=function_name)", flag, phase)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 14:55:18 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/unify.go

    				// defined type. This ensures that in a series of types, all matching against the
    				// same type parameter, we infer a defined type if there is one, independent of
    				// order. Type inference or assignment may fail, which is ok.
    				// Selecting a defined type, if any, ensures that we don't lose the type name;
    				// and since we have inexact unification, a value of equally named or matching
    				// undefined type remains assignable (go.dev/issue/43056).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  10. misc/ios/detect.go

    	if len(udids) == 0 {
    		fail("no udid found; is a device connected?")
    	}
    
    	mps := detectMobileProvisionFiles(udids)
    	if len(mps) == 0 {
    		fail("did not find mobile provision matching device udids %q", udids)
    	}
    
    	fmt.Println("# Available provisioning profiles below.")
    	fmt.Println("# NOTE: Any existing app on the device with the app id specified by GOIOS_APP_ID")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:30 UTC 2023
    - 3.2K bytes
    - Viewed (0)
Back to top