- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 2,434 for 2014 (0.04 sec)
-
src/syscall/mmap_unix_test.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 unix package syscall_test import ( "syscall" "testing" ) func TestMmap(t *testing.T) { b, err := syscall.Mmap(-1, 0, syscall.Getpagesize(), syscall.PROT_NONE, syscall.MAP_ANON|syscall.MAP_PRIVATE) if err != nil { t.Fatalf("Mmap: %v", err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 30 23:58:34 UTC 2022 - 500 bytes - Viewed (0) -
test/fixedbugs/issue8039.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 8039. defer copy(x, <-c) did not rewrite <-c properly. package main func f(s []int) { c := make(chan []int, 1) c <- []int{1} defer copy(s, <-c) } func main() { x := make([]int, 1) f(x) if x[0] != 1 { println("BUG", x[0]) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 414 bytes - Viewed (0) -
src/cmd/vet/testdata/unsafeptr/unsafeptr.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 unsafeptr import "unsafe" func _() { var x unsafe.Pointer var y uintptr x = unsafe.Pointer(y) // ERROR "possible misuse of unsafe.Pointer" _ = x
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 20 15:46:42 UTC 2019 - 321 bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue8148.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. // Issue 8148. A typedef of an unnamed struct didn't work when used // with an exported Go function. No runtime test; just make sure it // compiles. package cgotest /* typedef struct { int i; } T; int get8148(void); */ import "C" //export issue8148Callback
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 526 bytes - Viewed (0) -
src/internal/types/testdata/check/importdecl1/importdecl1a.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 case for issue 8969. package importdecl1 import "go/ast" import . "unsafe" var _ Pointer // use dot-imported package unsafe // Test cases for issue 23914. type A interface { // Methods m1, m2 must be type-checked in this file scope
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 02 02:58:32 UTC 2022 - 521 bytes - Viewed (0) -
test/fixedbugs/issue8132.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 8132. stack walk handling of panic stack was confused // about what was legal. package main import "runtime" var p *int func main() { func() { defer func() { runtime.GC() recover() }() var x [8192]byte
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 534 bytes - Viewed (0) -
test/fixedbugs/issue8011.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. package main func main() { c := make(chan chan int, 1) c1 := make(chan int, 1) c1 <- 42 c <- c1 x := <-<-c if x != 42 { println("BUG:", x, "!= 42") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 330 bytes - Viewed (0) -
src/internal/syscall/unix/sysnum_linux_generic.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 && (arm64 || loong64 || riscv64) package unix // This file is named "generic" because at a certain point Linux started // standardizing on system call numbers across architectures. So far this // means only arm64 loong64 and riscv64 use the standard numbers. const (
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 01:23:00 UTC 2024 - 589 bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/fcntl_linux_32bit.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 && 386) || (linux && arm) || (linux && mips) || (linux && mipsle) || (linux && ppc) package unix func init() { // On 32-bit Linux systems, the fcntl syscall that matches Go's // Flock_t type is SYS_FCNTL64, not SYS_FCNTL. fcntl64Syscall = SYS_FCNTL64
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 436 bytes - Viewed (0) -
src/runtime/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. #include "textflag.h" #ifndef GOARCH_amd64 TEXT ·sigpanic0(SB),NOSPLIT,$0-0 JMP ·sigpanic<ABIInternal>(SB) #endif // See map.go comment on the need for this routine. TEXT ·mapinitnoop<ABIInternal>(SB),NOSPLIT,$0-0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 21:49:14 UTC 2024 - 386 bytes - Viewed (0)