Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for argv_index (0.52 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/tfrt/ir/tfrt_fallback_util.cc

        mlir::func::FuncOp func, llvm::function_ref<void(int arg_index)> action) {
      for (int arg_index = 0; arg_index < func.getNumArguments(); ++arg_index) {
        if (IsArgConsumedByFallback(func, arg_index)) action(arg_index);
      }
    }
    
    void ForEachArgConsumedByFallback(
        mlir::ModuleOp module,
        llvm::function_ref<void(llvm::StringRef func_name, int arg_index)> action) {
      for (auto func : module.getOps<mlir::func::FuncOp>()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 30 02:12:49 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_util.h

    namespace tfrt {
    namespace fallback_async {
    
    bool IsArgConsumedByFallback(mlir::func::FuncOp func, int arg_index);
    
    void ForEachArgConsumedByFallback(
        mlir::func::FuncOp func, llvm::function_ref<void(int arg_index)> action);
    
    void ForEachArgConsumedByFallback(
        mlir::ModuleOp module,
        llvm::function_ref<void(llvm::StringRef func_name, int arg_index)> action);
    
    }  // namespace fallback_async
    }  // namespace tfrt
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 22 14:25:57 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  10. 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)
Back to top