LEFT | RIGHT |
(Both sides are equal) |
1 // Copyright 2011 The Go Authors. All rights reserved. | 1 // Copyright 2011 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 package syscall | 5 package syscall |
6 | 6 |
7 import ( | 7 import ( |
8 "sync" | 8 "sync" |
9 "sync/atomic" | 9 "sync/atomic" |
10 "unsafe" | 10 "unsafe" |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 // | 253 // |
254 // The returned error is always non-nil, constructed from the result of | 254 // The returned error is always non-nil, constructed from the result of |
255 // GetLastError. Callers must inspect the primary return value to decide | 255 // GetLastError. Callers must inspect the primary return value to decide |
256 // whether an error occurred (according to the semantics of the specific | 256 // whether an error occurred (according to the semantics of the specific |
257 // function being called) before consulting the error. The error will be | 257 // function being called) before consulting the error. The error will be |
258 // guaranteed to contain syscall.Errno. | 258 // guaranteed to contain syscall.Errno. |
259 func (p *lazyProc) Call(a ...uintptr) (r1, r2 uintptr, lastErr error) { | 259 func (p *lazyProc) Call(a ...uintptr) (r1, r2 uintptr, lastErr error) { |
260 p.mustFind() | 260 p.mustFind() |
261 return p.proc.Call(a...) | 261 return p.proc.Call(a...) |
262 } | 262 } |
LEFT | RIGHT |