Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for newRule (0.16 sec)

  1. src/os/os_test.go

    	assertPathError(t, path, err)
    }
    
    // Use TempDir (via newFile) to make sure we're on a local file system,
    // so that timings are not distorted by latency and caching.
    // On NFS, timings can be off due to caching of meta-data on
    // NFS servers (Issue 848).
    func TestChtimes(t *testing.T) {
    	t.Parallel()
    
    	f := newFile("TestChtimes", t)
    	defer Remove(f.Name())
    
    	f.Write([]byte("hello, world\n"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/_gen/AMD64.rules

    (AtomicStore8 ptr val mem) => (Select1 (XCHGB <types.NewTuple(typ.UInt8,types.TypeMem)> val ptr mem))
    (AtomicStore32 ptr val mem) => (Select1 (XCHGL <types.NewTuple(typ.UInt32,types.TypeMem)> val ptr mem))
    (AtomicStore64 ptr val mem) => (Select1 (XCHGQ <types.NewTuple(typ.UInt64,types.TypeMem)> val ptr mem))
    (AtomicStorePtrNoWB ptr val mem) => (Select1 (XCHGQ <types.NewTuple(typ.BytePtr,types.TypeMem)> val ptr mem))
    
    // Atomic exchanges.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 93.9K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux.go

    //
    // When hashing a small byte slice or string, a single Write and Read may
    // be used:
    //
    //	// Assume hashfd is already configured using the setup process.
    //	hash := os.NewFile(hashfd, "sha1")
    //	// Hash an input string and read the results. Each Write discards
    //	// previous hash state. Read always reads the current state.
    //	b := make([]byte, 20)
    //	for i := 0; i < 2; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 05:26:45 UTC 2024
    - 77.5K bytes
    - Viewed (0)
  4. pkg/volume/csi/csi_attacher_test.go

    				if err != nil {
    					t.Fatalf("failed to attach: %v", err)
    				}
    			}
    
    			parent := filepath.Dir(tc.deviceMountPath)
    			filePath := filepath.Join(parent, "newfile")
    			if tc.populateDeviceMountPath {
    				// We need to create the deviceMountPath before we Mount,
    				// so that we can correctly create the file without errors.
    				err := os.MkdirAll(tc.deviceMountPath, 0750)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 58.1K bytes
    - Viewed (0)
  5. src/go/types/api_test.go

    	//
    	// It must be possible for importers to construct such invalid interfaces.
    	// Previously, this panicked.
    
    	sig1 := NewSignatureType(nil, nil, nil, NewTuple(NewParam(nopos, nil, "", Typ[Int])), nil, false)
    	sig2 := NewSignatureType(nil, nil, nil, NewTuple(NewParam(nopos, nil, "", Typ[String])), nil, false)
    
    	methods := []*Func{
    		NewFunc(nopos, nil, "M", sig1),
    		NewFunc(nopos, nil, "M", sig2),
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/api_test.go

    	//
    	// It must be possible for importers to construct such invalid interfaces.
    	// Previously, this panicked.
    
    	sig1 := NewSignatureType(nil, nil, nil, NewTuple(NewParam(nopos, nil, "", Typ[Int])), nil, false)
    	sig2 := NewSignatureType(nil, nil, nil, NewTuple(NewParam(nopos, nil, "", Typ[String])), nil, false)
    
    	methods := []*Func{
    		NewFunc(nopos, nil, "M", sig1),
    		NewFunc(nopos, nil, "M", sig2),
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  7. src/net/http/fs_test.go

    // for TestLinuxSendfile.
    func TestLinuxSendfileChild(*testing.T) {
    	if os.Getenv("GO_WANT_HELPER_PROCESS") != "1" {
    		return
    	}
    	defer os.Exit(0)
    	fd3 := os.NewFile(3, "ephemeral-port-listener")
    	ln, err := net.FileListener(fd3)
    	if err != nil {
    		panic(err)
    	}
    	mux := NewServeMux()
    	mux.Handle("/", FileServer(Dir(os.TempDir())))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 49.9K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types/type.go

    func NewChan(elem *Type, dir ChanDir) *Type {
    	t := newType(TCHAN)
    	ct := t.chanType()
    	ct.Elem = elem
    	ct.Dir = dir
    	if elem.HasShape() {
    		t.SetHasShape(true)
    	}
    	return t
    }
    
    func NewTuple(t1, t2 *Type) *Type {
    	t := newType(TTUPLE)
    	t.extra.(*Tuple).first = t1
    	t.extra.(*Tuple).second = t2
    	if t1.HasShape() || t2.HasShape() {
    		t.SetHasShape(true)
    	}
    	return t
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/rewrite.go

    		OpPPC64SUB:      OpPPC64SUBCC,
    		OpPPC64NEG:      OpPPC64NEGCC,
    		OpPPC64NOR:      OpPPC64NORCC,
    		OpPPC64XOR:      OpPPC64XORCC,
    	}
    	b := op.Block
    	opCC := b.NewValue0I(op.Pos, ccOpMap[op.Op], types.NewTuple(op.Type, types.TypeFlags), op.AuxInt)
    	opCC.AddArgs(op.Args...)
    	op.reset(OpSelect0)
    	op.AddArgs(opCC)
    	return op
    }
    
    // Try converting a RLDICL to ANDCC. If successful, return the mask otherwise 0.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go

    		if r0 != 0 {
    			fd, _, _ := CallLeFuncWithPtrReturn(GetZosLibVec()+SYS___ATOI_A<<4, r0)
    			f := os.NewFile(fd, "zostracefile")
    			if f != nil {
    				ZosTracefile = f
    			}
    		}
    
    	}
    }
    
    //go:noescape
    func CallLeFuncWithErr(funcdesc uintptr, parms ...uintptr) (ret, errno2 uintptr, err Errno)
    
    //go:noescape
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 84.4K bytes
    - Viewed (0)
Back to top