Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for argv_index (0.33 sec)

  1. src/runtime/runtime1.go

    		argslice[i] = gostringnocopy(argv_index(argv, i))
    	}
    }
    
    func goenvs_unix() {
    	// TODO(austin): ppc64 in dynamic linking mode doesn't
    	// guarantee env[] will immediately follow argv. Might cause
    	// problems.
    	n := int32(0)
    	for argv_index(argv, argc+1+n) != nil {
    		n++
    	}
    
    	envs = make([]string, n)
    	for i := int32(0); i < n; i++ {
    		envs[i] = gostring(argv_index(argv, argc+1+i))
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  2. src/runtime/os_darwin.go

    var executablePath string
    
    func sysargs(argc int32, argv **byte) {
    	// skip over argv, envv and the first string will be the path
    	n := argc + 1
    	for argv_index(argv, n) != nil {
    		n++
    	}
    	executablePath = gostringnocopy(argv_index(argv, n+1))
    
    	// strip "executable_path=" prefix if available, it's added after OS X 10.11.
    	const prefix = "executable_path="
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  3. src/runtime/os_dragonfly.go

    }
    
    //go:nosplit
    func validSIGPROF(mp *m, c *sigctxt) bool {
    	return true
    }
    
    func sysargs(argc int32, argv **byte) {
    	n := argc + 1
    
    	// skip over argv, envp to get to auxv
    	for argv_index(argv, n) != nil {
    		n++
    	}
    
    	// skip NULL separator
    	n++
    
    	auxvp := (*[1 << 28]uintptr)(add(unsafe.Pointer(argv), uintptr(n)*goarch.PtrSize))
    	pairs := sysauxv(auxvp[:])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  4. src/runtime/os_netbsd.go

    }
    
    //go:nosplit
    func validSIGPROF(mp *m, c *sigctxt) bool {
    	return true
    }
    
    func sysargs(argc int32, argv **byte) {
    	n := argc + 1
    
    	// skip over argv, envp to get to auxv
    	for argv_index(argv, n) != nil {
    		n++
    	}
    
    	// skip NULL separator
    	n++
    
    	// now argv+n is auxv
    	auxvp := (*[1 << 28]uintptr)(add(unsafe.Pointer(argv), uintptr(n)*goarch.PtrSize))
    	pairs := sysauxv(auxvp[:])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  5. src/runtime/os_freebsd.go

    }
    
    //go:nosplit
    func validSIGPROF(mp *m, c *sigctxt) bool {
    	return true
    }
    
    func sysargs(argc int32, argv **byte) {
    	n := argc + 1
    
    	// skip over argv, envp to get to auxv
    	for argv_index(argv, n) != nil {
    		n++
    	}
    
    	// skip NULL separator
    	n++
    
    	// now argv+n is auxv
    	auxvp := (*[1 << 28]uintptr)(add(unsafe.Pointer(argv), uintptr(n)*goarch.PtrSize))
    	pairs := sysauxv(auxvp[:])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  6. src/runtime/os3_solaris.go

    }
    
    //go:linkname executablePath os.executablePath
    var executablePath string
    
    func sysargs(argc int32, argv **byte) {
    	n := argc + 1
    
    	// skip over argv, envp to get to auxv
    	for argv_index(argv, n) != nil {
    		n++
    	}
    
    	// skip NULL separator
    	n++
    
    	// now argv+n is auxv
    	auxvp := (*[1 << 28]uintptr)(add(unsafe.Pointer(argv), uintptr(n)*goarch.PtrSize))
    	pairs := sysauxv(auxvp[:])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  7. src/runtime/os_linux.go

    func mincore(addr unsafe.Pointer, n uintptr, dst *byte) int32
    
    var auxvreadbuf [128]uintptr
    
    func sysargs(argc int32, argv **byte) {
    	n := argc + 1
    
    	// skip over argv, envp to get to auxv
    	for argv_index(argv, n) != nil {
    		n++
    	}
    
    	// skip NULL separator
    	n++
    
    	// now argv+n is auxv
    	auxvp := (*[1 << 28]uintptr)(add(unsafe.Pointer(argv), uintptr(n)*goarch.PtrSize))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model.h

    Operation *LookupBoundInput(func::FuncOp func, int arg_index,
                                const SymbolTable &symbol_table);
    
    template <typename T>
    T LookupBoundInputOfType(func::FuncOp func, int arg_index,
                             const SymbolTable &symbol_table) {
      return llvm::dyn_cast_or_null<T>(
          LookupBoundInput(func, arg_index, symbol_table));
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 18 03:21:34 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfrt/tests/ir/tfrt_fallback_util_test.cc

      ASSERT_TRUE(module);
    
      std::vector<std::pair<std::string, int>> func_and_index;
      ForEachArgConsumedByFallback(
          module.get(),
          [&func_and_index](llvm::StringRef func_name, int arg_index) {
            func_and_index.push_back({func_name.str(), arg_index});
          });
    
      ASSERT_EQ(func_and_index.size(), 1);
      EXPECT_EQ(func_and_index[0].first, "test");
      EXPECT_EQ(func_and_index[0].second, 2);
    }
    
    }  // namespace
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/api/v1/compile_tf_graph.cc

      unsigned num_arguments = main_fn.getNumArguments();
      for (unsigned arg_index = 0; arg_index < num_arguments; ++arg_index) {
        if (auto aliasing_output = main_fn.getArgAttrOfType<mlir::IntegerAttr>(
                arg_index, kAliasingAttr))
          output_to_input_alias[aliasing_output.getInt()] = arg_index;
      }
    
      if (output_to_input_alias.empty()) return absl::OkStatus();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 14K bytes
    - Viewed (0)
Back to top