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

Delta Between Two Patch Sets: src/pkg/syscall/zsyscall_openbsd_amd64.go

Issue 6610064: code review 6610064: race: syscall changes (Closed)
Left Patch Set: diff -r 7b037816cd5c https://dvyukov%40google.com@code.google.com/p/go/ Created 12 years, 5 months ago
Right Patch Set: diff -r b9906e2737fa https://go.googlecode.com/hg/ Created 12 years, 5 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:
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/syscall/zsyscall_openbsd_386.go ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 // mksyscall.pl -openbsd syscall_bsd.go syscall_openbsd.go syscall_openbsd_amd64 .go 1 // mksyscall.pl -openbsd syscall_bsd.go syscall_openbsd.go syscall_openbsd_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 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 8 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
9 9
10 func getgroups(ngid int, gid *_Gid_t) (n int, err error) { 10 func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
(...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after
868 r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len (p)), 0, uintptr(offset), 0) 868 r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len (p)), 0, uintptr(offset), 0)
869 n = int(r0) 869 n = int(r0)
870 if e1 != 0 { 870 if e1 != 0 {
871 err = e1 871 err = e1
872 } 872 }
873 return 873 return
874 } 874 }
875 875
876 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 876 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
877 877
878 func Read(fd int, p []byte) (n int, err error) { 878 func read(fd int, p []byte) (n int, err error) {
879 var _p0 unsafe.Pointer 879 var _p0 unsafe.Pointer
880 if len(p) > 0 { 880 if len(p) > 0 {
881 _p0 = unsafe.Pointer(&p[0]) 881 _p0 = unsafe.Pointer(&p[0])
882 } else { 882 } else {
883 _p0 = unsafe.Pointer(&_zero) 883 _p0 = unsafe.Pointer(&_zero)
884 } 884 }
885 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p) )) 885 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p) ))
886 n = int(r0) 886 n = int(r0)
887 if e1 != 0 { 887 if e1 != 0 {
888 err = e1 888 err = e1
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
1217 } 1217 }
1218 _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(f lags), 0) 1218 _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(f lags), 0)
1219 if e1 != 0 { 1219 if e1 != 0 {
1220 err = e1 1220 err = e1
1221 } 1221 }
1222 return 1222 return
1223 } 1223 }
1224 1224
1225 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1225 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1226 1226
1227 func Write(fd int, p []byte) (n int, err error) { 1227 func write(fd int, p []byte) (n int, err error) {
1228 var _p0 unsafe.Pointer 1228 var _p0 unsafe.Pointer
1229 if len(p) > 0 { 1229 if len(p) > 0 {
1230 _p0 = unsafe.Pointer(&p[0]) 1230 _p0 = unsafe.Pointer(&p[0])
1231 } else { 1231 } else {
1232 _p0 = unsafe.Pointer(&_zero) 1232 _p0 = unsafe.Pointer(&_zero)
1233 } 1233 }
1234 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p ))) 1234 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p )))
1235 n = int(r0) 1235 n = int(r0)
1236 if e1 != 0 { 1236 if e1 != 0 {
1237 err = e1 1237 err = e1
(...skipping 17 matching lines...) Expand all
1255 func munmap(addr uintptr, length uintptr) (err error) { 1255 func munmap(addr uintptr, length uintptr) (err error) {
1256 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) 1256 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
1257 if e1 != 0 { 1257 if e1 != 0 {
1258 err = e1 1258 err = e1
1259 } 1259 }
1260 return 1260 return
1261 } 1261 }
1262 1262
1263 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1263 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1264 1264
1265 func read(fd int, buf *byte, nbuf int) (n int, err error) { 1265 func readlen(fd int, buf *byte, nbuf int) (n int, err error) {
1266 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)) , uintptr(nbuf)) 1266 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)) , uintptr(nbuf))
1267 n = int(r0) 1267 n = int(r0)
1268 if e1 != 0 { 1268 if e1 != 0 {
1269 err = e1 1269 err = e1
1270 } 1270 }
1271 return 1271 return
1272 } 1272 }
1273 1273
1274 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1274 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1275 1275
1276 func write(fd int, buf *byte, nbuf int) (n int, err error) { 1276 func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
1277 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf) ), uintptr(nbuf)) 1277 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf) ), uintptr(nbuf))
1278 n = int(r0) 1278 n = int(r0)
1279 if e1 != 0 { 1279 if e1 != 0 {
1280 err = e1 1280 err = e1
1281 } 1281 }
1282 return 1282 return
1283 } 1283 }
LEFTRIGHT

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