Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 80 for doThing (0.14 sec)

  1. src/cmd/cgo/internal/test/gcc68255/a.go

    // Copyright 2015 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test that it's OK to have C code that does nothing other than
    // initialize a global variable.  This used to fail with gccgo.
    
    package gcc68255
    
    /*
    #include "c.h"
    */
    import "C"
    
    func F() bool {
    	return C.v != nil
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 378 bytes
    - Viewed (0)
  2. src/cmd/asm/main.go

    	ctxt.IsAsm = true
    	ctxt.Pkgpath = *flags.Importpath
    	switch *flags.Spectre {
    	default:
    		log.Printf("unknown setting -spectre=%s", *flags.Spectre)
    		os.Exit(2)
    	case "":
    		// nothing
    	case "index":
    		// known to compiler; ignore here so people can use
    		// the same list with -gcflags=-spectre=LIST and -asmflags=-spectrre=LIST
    	case "all", "ret":
    		ctxt.Retpoline = true
    	}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 2.7K bytes
    - Viewed (0)
  3. cmd/http-tracer.go

    		reqStartTime := time.Now().UTC()
    		h.ServeHTTP(respRecorder, r)
    		reqEndTime := time.Now().UTC()
    
    		if globalTrace.NumSubscribers(madmin.TraceS3|madmin.TraceInternal) == 0 {
    			// no subscribers nothing to trace.
    			return
    		}
    
    		tt := madmin.TraceInternal
    		if strings.HasPrefix(tc.FuncName, "s3.") {
    			tt = madmin.TraceS3
    		}
    
    		// Calculate input body size with headers
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  4. cni/pkg/repair/netns.go

    			continue
    		}
    
    		if id != wantID {
    			// Not the network we want, skip
    			continue
    		}
    		s, err := p.Stat()
    		if err != nil {
    			// Unexpected... we will use it, but only if we find nothing without errors
    			log.Warnf("failed to read proc %v stats: %v", p.PID, err)
    			if best == "" {
    				best = ns
    			}
    			continue
    		}
    		// Get the oldest one.
    		if s.Starttime < oldest {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Dec 20 22:14:13 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  5. internal/http/listener.go

    }
    
    // newHTTPListener - creates new httpListener object which is interface compatible to net.Listener.
    // httpListener is capable to
    // * listen to multiple addresses
    // * controls incoming connections only doing HTTP protocol
    func newHTTPListener(ctx context.Context, serverAddrs []string, opts TCPOptions) (listener *httpListener, listenErrs []error) {
    	listeners := make([]net.Listener, 0, len(serverAddrs))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  6. cmd/admin-heal-ops.go

    	if globalIsDistErasure {
    		clientToken = fmt.Sprintf("%s:%d", h.clientToken, GetProxyEndpointLocalIndex(globalProxyEndpoints))
    	}
    
    	if h.clientToken == bgHealingUUID {
    		// For background heal do nothing, do not spawn an unnecessary goroutine.
    	} else {
    		// Launch top-level background heal go-routine
    		go h.healSequenceStart(objAPI)
    	}
    
    	b, err := json.Marshal(madmin.HealStartSuccess{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 25.1K bytes
    - Viewed (1)
  7. src/archive/tar/format.go

    // and then updates the checksum accordingly.
    func (b *block) setFormat(format Format) {
    	// Set the magic values.
    	switch {
    	case format.has(formatV7):
    		// Do nothing.
    	case format.has(FormatGNU):
    		copy(b.toGNU().magic(), magicGNU)
    		copy(b.toGNU().version(), versionGNU)
    	case format.has(formatSTAR):
    		copy(b.toSTAR().magic(), magicUSTAR)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 11.3K bytes
    - Viewed (0)
  8. src/archive/zip/struct.go

    	case s_IFCHR:
    		mode |= fs.ModeDevice | fs.ModeCharDevice
    	case s_IFDIR:
    		mode |= fs.ModeDir
    	case s_IFIFO:
    		mode |= fs.ModeNamedPipe
    	case s_IFLNK:
    		mode |= fs.ModeSymlink
    	case s_IFREG:
    		// nothing to do
    	case s_IFSOCK:
    		mode |= fs.ModeSocket
    	}
    	if m&s_ISGID != 0 {
    		mode |= fs.ModeSetgid
    	}
    	if m&s_ISUID != 0 {
    		mode |= fs.ModeSetuid
    	}
    	if m&s_ISVTX != 0 {
    		mode |= fs.ModeSticky
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 12.1K bytes
    - Viewed (0)
  9. internal/event/target/elasticsearch.go

    		if xnet.IsNetworkOrHostDown(err, false) {
    			return store.ErrNotConnected
    		}
    		return err
    	}
    
    	// Delete the event from store.
    	return target.store.Del(key.Name)
    }
    
    // Close - does nothing and available for interface compatibility.
    func (target *ElasticsearchTarget) Close() error {
    	close(target.quitCh)
    	if target.client != nil {
    		// Stops the background processes that the client is running.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 15K bytes
    - Viewed (0)
  10. cmd/object-api-utils.go

    				piece[i] == '-'):
    				// Found a non-digit character, so
    				// this piece is not a number.
    				isNotNumber = true
    			case piece[i] >= '0' && piece[i] <= '9':
    				// Nothing to do.
    			default:
    				// Found invalid character.
    				return false
    			}
    		}
    		allNumbers = allNumbers && !isNotNumber
    	}
    	// Does the bucket name look like an IP address?
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 35.6K bytes
    - Viewed (1)
Back to top