Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 2,434 for 2014 (0.03 sec)

  1. src/cmd/cgo/internal/testnocgo/nocgo.go

    // Copyright 2014 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 -static works when not using cgo.  This test is in
    // misc/cgo to take advantage of the testing framework support for
    // when -static is expected to work.
    
    package nocgo
    
    func NoCgo() int {
    	c := make(chan int)
    
    	// The test is run with external linking, which means that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 574 bytes
    - Viewed (0)
  2. src/syscall/flock_linux.go

    // Copyright 2014 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.
    
    package syscall
    
    import "unsafe"
    
    // fcntl64Syscall is usually SYS_FCNTL, but is overridden on 32-bit Linux
    // systems by flock_linux_32bit.go to be SYS_FCNTL64.
    var fcntl64Syscall uintptr = SYS_FCNTL
    
    // FcntlFlock performs a fcntl syscall for the [F_GETLK], [F_SETLK] or [F_SETLKW] command.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 647 bytes
    - Viewed (0)
  3. test/fixedbugs/issue8047b.go

    // run
    
    // Copyright 2014 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.
    
    // Issue 8047. Defer setup during panic shouldn't crash for nil defer.
    
    package main
    
    func main() {
    	defer func() {
    		// This recover recovers the panic caused by the nil defer func
    		// g(). The original panic(1) was already aborted/replaced by this
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 04 16:32:38 UTC 2019
    - 575 bytes
    - Viewed (0)
  4. test/fixedbugs/issue8620.go

    // run
    
    // Copyright 2014 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.
    
    // Issue 8620. Used to fail with -race.
    
    package main
    
    func min(a, b int) int {
    	if a < b {
    		return a
    	}
    	return b
    }
    
    func test(s1, s2 []struct{}) {
    	n := min(len(s1), len(s2))
    	if copy(s1, s2) != n {
    		panic("bad copy result")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 496 bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/test/issue6997_linux.c

    // Copyright 2014 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.
    
    //go:build !android
    
    #include <pthread.h>
    #include <stdio.h>
    #include <unistd.h>
    
    static pthread_t thread;
    
    static void* threadfunc(void* dummy) {
    	while(1) {
    		sleep(1);
    	}
    }
    
    int StartThread() {
    	return pthread_create(&thread, NULL, &threadfunc, NULL);
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 536 bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/test/issue9400/stubs.go

    // Copyright 2014 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.
    
    //go:build linux && gc
    
    package issue9400
    
    var Baton int32
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 243 bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/testshared/testdata/depBase/asm.s

    // Copyright 2014 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.
    
    //go:build gc
    
    #include "textflag.h"
    
    TEXT ·ImplementedInAsm(SB),NOSPLIT,$0-0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 250 bytes
    - Viewed (0)
  8. test/fixedbugs/issue7538b.go

    // compile
    
    // Copyright 2014 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.
    
    // Issue 7538: blank (_) labels handled incorrectly
    
    package p
    
    func f() {
    _:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 09 06:34:17 UTC 2014
    - 252 bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/arch/ppc64/ppc64asm/doc.go

    // Copyright 2014 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.
    
    // Package ppc64asm implements decoding of 64-bit PowerPC machine code.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 13 00:11:05 UTC 2016
    - 250 bytes
    - Viewed (0)
  10. src/internal/goarch/goarch_amd64.go

    // Copyright 2014 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.
    
    package goarch
    
    const (
    	_ArchFamily          = AMD64
    	_DefaultPhysPageSize = 4096
    	_PCQuantum           = 1
    	_MinFrameSize        = 0
    	_StackAlign          = PtrSize
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 17 18:54:38 UTC 2021
    - 329 bytes
    - Viewed (0)
Back to top