Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 76 for DUP (0.02 sec)

  1. src/cmd/go/scriptconds_test.go

    		// number of net tests that can run concurrently so that the overall number
    		// of network connections won't exceed the limit.
    		_, dup := scriptNetEnabled.LoadOrStore(t, true)
    		if !dup {
    			// Acquire a net token for this test until the test completes.
    			netTestSem <- struct{}{}
    			t.Cleanup(func() {
    				<-netTestSem
    				scriptNetEnabled.Delete(t)
    			})
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  2. src/net/tcpsock_plan9.go

    		ln.fd.ctl.Close()
    		return err
    	}
    	if err := ln.fd.ctl.Close(); err != nil {
    		return err
    	}
    	return nil
    }
    
    func (ln *TCPListener) file() (*os.File, error) {
    	f, err := ln.dup()
    	if err != nil {
    		return nil, err
    	}
    	return f, nil
    }
    
    func (sl *sysListener) listenTCP(ctx context.Context, laddr *TCPAddr) (*TCPListener, error) {
    	fd, err := listenPlan9(ctx, sl.network, laddr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. src/internal/poll/fd_wasip1.go

    package poll
    
    import (
    	"internal/byteorder"
    	"sync/atomic"
    	"syscall"
    	"unsafe"
    )
    
    type SysFile struct {
    	// RefCountPtr is a pointer to the reference count of Sysfd.
    	//
    	// WASI preview 1 lacks a dup(2) system call. When the os and net packages
    	// need to share a file/socket, instead of duplicating the underlying file
    	// descriptor, we instead provide a way to copy FD instances and manage the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:14:02 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  4. src/internal/trace/mud_test.go

    					t.Errorf("inverse(%g) = %g, not ∈ [%g, %g)", trackMass, inv, l, u)
    				}
    			}
    		}
    	}
    }
    
    // aeq returns true if x and y are equal up to 8 digits (1 part in 100
    // million).
    // TODO(amedee) dup of gc_test.go
    func aeq(x, y float64) bool {
    	if x < 0 && y < 0 {
    		x, y = -x, -y
    	}
    	const digits = 8
    	factor := 1 - math.Pow(10, -digits+1)
    	return x*factor <= y && y*factor <= x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  5. src/runtime/debug/stack.go

    		// to a full pipe buffer don't get lost.
    		fd2, _, err := poll.DupCloseOnExec(int(f.Fd()))
    		if err != nil {
    			return err
    		}
    		runtime.KeepAlive(f) // prevent finalization before dup
    		fd = uintptr(fd2)
    	}
    	if prev := runtime_setCrashFD(fd); prev != ^uintptr(0) {
    		// We use NewFile+Close because it is portable
    		// unlike syscall.Close, whose parameter type varies.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 15:19:04 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. src/syscall/exec_plan9.go

    // name of the directory containing names and control files for all open file descriptors
    var dupdev, _ = BytePtrFromString("#d")
    
    // forkAndExecInChild forks the process, calling dup onto 0..len(fd)
    // and finally invoking exec(argv0, argvv, envv) in the child.
    // If a dup or exec fails, it writes the error string to pipe.
    // (The pipe write end is close-on-exec so if exec succeeds, it will be closed.)
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. platforms/core-runtime/base-asm/src/main/java/org/gradle/model/internal/asm/MethodVisitorScope.java

    import static org.objectweb.asm.Opcodes.ARETURN;
    import static org.objectweb.asm.Opcodes.ASTORE;
    import static org.objectweb.asm.Opcodes.CHECKCAST;
    import static org.objectweb.asm.Opcodes.DUP;
    import static org.objectweb.asm.Opcodes.F_SAME;
    import static org.objectweb.asm.Opcodes.GETFIELD;
    import static org.objectweb.asm.Opcodes.GETSTATIC;
    import static org.objectweb.asm.Opcodes.GOTO;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 15:31:29 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  8. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/ResidualProgramCompiler.kt

    import org.gradle.kotlin.dsl.support.bytecode.ARETURN
    import org.gradle.kotlin.dsl.support.bytecode.ASTORE
    import org.gradle.kotlin.dsl.support.bytecode.CHECKCAST
    import org.gradle.kotlin.dsl.support.bytecode.DUP
    import org.gradle.kotlin.dsl.support.bytecode.GETSTATIC
    import org.gradle.kotlin.dsl.support.bytecode.ICONST_0
    import org.gradle.kotlin.dsl.support.bytecode.INVOKEINTERFACE
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 13:09:45 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  9. src/encoding/gob/type.go

    	// Store the name and type provided by the user....
    	if t, dup := nameToConcreteType.LoadOrStore(name, reflect.TypeOf(value)); dup && t != ut.user {
    		panic(fmt.Sprintf("gob: registering duplicate types for %q: %s != %s", name, t, ut.user))
    	}
    
    	// but the flattened type in the type table, since that's what decode needs.
    	if n, dup := concreteTypeToName.LoadOrStore(ut.base, name); dup && n != name {
    		nameToConcreteType.Delete(name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  10. src/syscall/exec_linux.go

    )
    
    // Implemented in runtime package.
    func runtime_BeforeFork()
    func runtime_AfterFork()
    func runtime_AfterForkInChild()
    
    // Fork, dup fd onto 0..len(fd), and exec(argv0, argvv, envv) in child.
    // If a dup or exec fails, write the errno error to pipe.
    // (Pipe is close-on-exec so if exec succeeds, it will be closed.)
    // In the child, this function must not acquire any locks, because
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 23K bytes
    - Viewed (0)
Back to top