Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 544 for flag (0.15 sec)

  1. istioctl/pkg/proxystatus/proxystatus.go

    	cmd.PreRunE = func(cmd *cobra.Command, args []string) error {
    		for _, flag := range unstableFlags {
    			if cmd.PersistentFlags().Changed(flag) {
    				return fmt.Errorf("--%s is experimental. Use `istioctl experimental ps --%s`", flag, flag)
    			}
    		}
    		return nil
    	}
    	for _, flag := range unstableFlags {
    		_ = cmd.PersistentFlags().MarkHidden(flag)
    	}
    	return cmd
    }
    
    func XdsStatusCommand(ctx cli.Context) *cobra.Command {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  2. internal/disk/directio_unix.go

    // OpenFileDirectIO - bypass kernel cache.
    func OpenFileDirectIO(filePath string, flag int, perm os.FileMode) (*os.File, error) {
    	return directio.OpenFile(filePath, flag, perm)
    }
    
    // DisableDirectIO - disables directio mode.
    func DisableDirectIO(f *os.File) error {
    	fd := f.Fd()
    	flag, err := unix.FcntlInt(fd, unix.F_GETFL, 0)
    	if err != nil {
    		return err
    	}
    	flag &= ^(syscall.O_DIRECT)
    	_, err = unix.FcntlInt(fd, unix.F_SETFL, flag)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Jun 17 14:31:36 GMT 2023
    - 1.6K bytes
    - Viewed (0)
  3. tensorflow/c/eager/custom_device_testutil.h

    void RegisterLoggingDevice(TFE_Context* context, const char* name,
                               bool strict_scope_placement, bool* arrived_flag,
                               bool* executed_flag, TF_Status* status);
    void AllocateLoggingDevice(const char* name, bool* arrived_flag,
                               bool* executed_flag, TFE_CustomDevice** device,
                               void** device_info);
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 27 23:39:24 GMT 2020
    - 1.6K bytes
    - Viewed (0)
  4. src/cmd/api/api_test.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"flag"
    	"fmt"
    	"go/build"
    	"internal/testenv"
    	"os"
    	"path/filepath"
    	"sort"
    	"strings"
    	"sync"
    	"testing"
    )
    
    var flagCheck = flag.Bool("check", false, "run API checks")
    
    func TestMain(m *testing.M) {
    	flag.Parse()
    	for _, c := range contexts {
    		c.Compiler = build.Default.Compiler
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 04 17:31:12 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  5. docs/debugging/xattr/main.go

    }
    
    func main() {
    	flag.StringVar(&path, "path", "", "path name where the attribute shall be applied")
    	flag.StringVar(&name, "name", "", "attribute name or it can be a wildcard if '.' is specified")
    	flag.Uint64Var(&value, "value", 0, "attribute value expects the value to be uint64")
    	flag.BoolVar(&set, "set", false, "this is a set attribute operation")
    
    	flag.Parse()
    
    	if set && value == 0 {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Dec 29 23:52:41 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  6. tensorflow/BUILD

    )
    
    # This flag enables experimental TPU support
    bool_flag(
        name = "enable_tpu_support",
        build_setting_default = False,
    )
    
    config_setting(
        name = "with_tpu_support_define",
        define_values = {"with_tpu_support": "true"},
        visibility = ["//visibility:public"],
    )
    
    config_setting(
        name = "with_tpu_support_flag",
        flag_values = {":enable_tpu_support": "True"},
    Plain Text
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Apr 09 18:15:11 GMT 2024
    - 53.4K bytes
    - Viewed (8)
  7. lib/time/mkzip.go

    package main
    
    import (
    	"archive/zip"
    	"bytes"
    	"flag"
    	"fmt"
    	"hash/crc32"
    	"io/fs"
    	"log"
    	"os"
    	"path/filepath"
    	"strings"
    )
    
    func usage() {
    	fmt.Fprintf(os.Stderr, "usage: go run mkzip.go zoneinfo.zip\n")
    	os.Exit(2)
    }
    
    func main() {
    	log.SetPrefix("mkzip: ")
    	log.SetFlags(0)
    	flag.Usage = usage
    	flag.Parse()
    	args := flag.Args()
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 17:32:07 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  8. src/buildall.bash

    	unset GOARM
    	if [ "$GOARCH" = "arm5" ]; then
    		export GOARCH=arm
    		export GOARM=5
    	fi
    
    	# Build and vet everything.
    	# cmd/go/internal/work/exec.go enables the same vet flags during go test of std cmd
    	# and should be kept in sync with any vet flag changes here.
    	if ! "$GOROOT/bin/go" build std cmd || ! "$GOROOT/bin/go" vet -unsafeptr=false std cmd; then
    		failed=true
    		if $sete; then
    			exit 1
    		fi
    	fi
    done
    
    Shell Script
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 23 17:45:23 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  9. cmd/admin-router.go

    // this behavior.
    func adminMiddleware(f http.HandlerFunc, flags ...hFlag) http.HandlerFunc {
    	// Collect all flags with bitwise-OR and assign operator
    	var handlerFlags hFlag
    	for _, flag := range flags {
    		handlerFlags |= flag
    	}
    
    	// Get name of the handler using reflection.
    	handlerName := getHandlerName(f, "adminAPIHandlers")
    
    	var handler http.HandlerFunc = func(w http.ResponseWriter, r *http.Request) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Mar 10 21:09:36 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/asm/endtoend_test.go

    		s := fmt.Sprintf(format, args...)
    		if !strings.HasSuffix(s, "\n") {
    			s += "\n"
    		}
    		errBuf.WriteString(s)
    	}
    	for _, flag := range flags {
    		switch flag {
    		case "dynlink":
    			ctxt.Flag_dynlink = true
    		default:
    			t.Errorf("unknown flag %s", flag)
    		}
    	}
    	pList.Firstpc, ok = parser.Parse()
    	obj.Flushplist(ctxt, pList, nil)
    	if ok && !failed {
    		t.Errorf("asm: %s had no errors", file)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Dec 07 18:42:59 GMT 2023
    - 11.6K bytes
    - Viewed (0)
Back to top