Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(547)

Side by Side Diff: src/pkg/syscall/zsyscall_windows_amd64.go

Issue 84330043: code review 84330043: syscall: use unsafe.Pointer instead of uintptr on windo... (Closed)
Patch Set: diff -r 88b3b2fa4dde https://go.googlecode.com/hg/ Created 9 years, 11 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/pkg/syscall/zsyscall_windows_386.go ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // go build mksyscall_windows.go && ./mksyscall_windows syscall_windows.go secur ity_windows.go syscall_windows_amd64.go 1 // go build mksyscall_windows.go && ./mksyscall_windows syscall_windows.go secur ity_windows.go syscall_windows_amd64.go
2 // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT 2 // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
3 3
4 package syscall 4 package syscall
5 5
6 import "unsafe" 6 import "unsafe"
7 7
8 var ( 8 var (
9 modkernel32 = NewLazyDLL("kernel32.dll") 9 modkernel32 = NewLazyDLL("kernel32.dll")
10 modadvapi32 = NewLazyDLL("advapi32.dll") 10 modadvapi32 = NewLazyDLL("advapi32.dll")
(...skipping 1305 matching lines...) Expand 10 before | Expand all | Expand 10 after
1316 if r1 == socket_error { 1316 if r1 == socket_error {
1317 if e1 != 0 { 1317 if e1 != 0 {
1318 err = error(e1) 1318 err = error(e1)
1319 } else { 1319 } else {
1320 err = EINVAL 1320 err = EINVAL
1321 } 1321 }
1322 } 1322 }
1323 return 1323 return
1324 } 1324 }
1325 1325
1326 func bind(s Handle, name uintptr, namelen int32) (err error) { 1326 func bind(s Handle, name unsafe.Pointer, namelen int32) (err error) {
1327 r1, _, e1 := Syscall(procbind.Addr(), 3, uintptr(s), uintptr(name), uint ptr(namelen)) 1327 r1, _, e1 := Syscall(procbind.Addr(), 3, uintptr(s), uintptr(name), uint ptr(namelen))
1328 if r1 == socket_error { 1328 if r1 == socket_error {
1329 if e1 != 0 { 1329 if e1 != 0 {
1330 err = error(e1) 1330 err = error(e1)
1331 } else { 1331 } else {
1332 err = EINVAL 1332 err = EINVAL
1333 } 1333 }
1334 } 1334 }
1335 return 1335 return
1336 } 1336 }
1337 1337
1338 func connect(s Handle, name uintptr, namelen int32) (err error) { 1338 func connect(s Handle, name unsafe.Pointer, namelen int32) (err error) {
1339 r1, _, e1 := Syscall(procconnect.Addr(), 3, uintptr(s), uintptr(name), u intptr(namelen)) 1339 r1, _, e1 := Syscall(procconnect.Addr(), 3, uintptr(s), uintptr(name), u intptr(namelen))
1340 if r1 == socket_error { 1340 if r1 == socket_error {
1341 if e1 != 0 { 1341 if e1 != 0 {
1342 err = error(e1) 1342 err = error(e1)
1343 } else { 1343 } else {
1344 err = EINVAL 1344 err = EINVAL
1345 } 1345 }
1346 } 1346 }
1347 return 1347 return
1348 } 1348 }
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
1751 r1, _, e1 := Syscall(procGetUserProfileDirectoryW.Addr(), 3, uintptr(t), uintptr(unsafe.Pointer(dir)), uintptr(unsafe.Pointer(dirLen))) 1751 r1, _, e1 := Syscall(procGetUserProfileDirectoryW.Addr(), 3, uintptr(t), uintptr(unsafe.Pointer(dir)), uintptr(unsafe.Pointer(dirLen)))
1752 if r1 == 0 { 1752 if r1 == 0 {
1753 if e1 != 0 { 1753 if e1 != 0 {
1754 err = error(e1) 1754 err = error(e1)
1755 } else { 1755 } else {
1756 err = EINVAL 1756 err = EINVAL
1757 } 1757 }
1758 } 1758 }
1759 return 1759 return
1760 } 1760 }
OLDNEW
« no previous file with comments | « src/pkg/syscall/zsyscall_windows_386.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b