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

Delta Between Two Patch Sets: src/pkg/syscall/zsyscall_netbsd_386.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_linux_arm.go ('k') | src/pkg/syscall/zsyscall_netbsd_amd64.go » ('j') | 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 -l32 -netbsd syscall_bsd.go syscall_netbsd.go syscall_netbsd_386 .go 1 // mksyscall.pl -l32 -netbsd syscall_bsd.go syscall_netbsd.go syscall_netbsd_386 .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 832 matching lines...) Expand 10 before | Expand all | Expand 10 after
843 r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len (p)), 0, uintptr(offset), uintptr(offset>>32)) 843 r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len (p)), 0, uintptr(offset), uintptr(offset>>32))
844 n = int(r0) 844 n = int(r0)
845 if e1 != 0 { 845 if e1 != 0 {
846 err = e1 846 err = e1
847 } 847 }
848 return 848 return
849 } 849 }
850 850
851 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 851 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
852 852
853 func Read(fd int, p []byte) (n int, err error) { 853 func read(fd int, p []byte) (n int, err error) {
854 var _p0 unsafe.Pointer 854 var _p0 unsafe.Pointer
855 if len(p) > 0 { 855 if len(p) > 0 {
856 _p0 = unsafe.Pointer(&p[0]) 856 _p0 = unsafe.Pointer(&p[0])
857 } else { 857 } else {
858 _p0 = unsafe.Pointer(&_zero) 858 _p0 = unsafe.Pointer(&_zero)
859 } 859 }
860 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p) )) 860 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p) ))
861 n = int(r0) 861 n = int(r0)
862 if e1 != 0 { 862 if e1 != 0 {
863 err = e1 863 err = e1
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
1162 } 1162 }
1163 _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(f lags), 0) 1163 _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(f lags), 0)
1164 if e1 != 0 { 1164 if e1 != 0 {
1165 err = e1 1165 err = e1
1166 } 1166 }
1167 return 1167 return
1168 } 1168 }
1169 1169
1170 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1170 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1171 1171
1172 func Write(fd int, p []byte) (n int, err error) { 1172 func write(fd int, p []byte) (n int, err error) {
1173 var _p0 unsafe.Pointer 1173 var _p0 unsafe.Pointer
1174 if len(p) > 0 { 1174 if len(p) > 0 {
1175 _p0 = unsafe.Pointer(&p[0]) 1175 _p0 = unsafe.Pointer(&p[0])
1176 } else { 1176 } else {
1177 _p0 = unsafe.Pointer(&_zero) 1177 _p0 = unsafe.Pointer(&_zero)
1178 } 1178 }
1179 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p ))) 1179 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p )))
1180 n = int(r0) 1180 n = int(r0)
1181 if e1 != 0 { 1181 if e1 != 0 {
1182 err = e1 1182 err = e1
(...skipping 17 matching lines...) Expand all
1200 func munmap(addr uintptr, length uintptr) (err error) { 1200 func munmap(addr uintptr, length uintptr) (err error) {
1201 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) 1201 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
1202 if e1 != 0 { 1202 if e1 != 0 {
1203 err = e1 1203 err = e1
1204 } 1204 }
1205 return 1205 return
1206 } 1206 }
1207 1207
1208 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1208 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1209 1209
1210 func read(fd int, buf *byte, nbuf int) (n int, err error) { 1210 func readlen(fd int, buf *byte, nbuf int) (n int, err error) {
1211 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)) , uintptr(nbuf)) 1211 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)) , uintptr(nbuf))
1212 n = int(r0) 1212 n = int(r0)
1213 if e1 != 0 { 1213 if e1 != 0 {
1214 err = e1 1214 err = e1
1215 } 1215 }
1216 return 1216 return
1217 } 1217 }
1218 1218
1219 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1219 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1220 1220
1221 func write(fd int, buf *byte, nbuf int) (n int, err error) { 1221 func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
1222 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf) ), uintptr(nbuf)) 1222 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf) ), uintptr(nbuf))
1223 n = int(r0) 1223 n = int(r0)
1224 if e1 != 0 { 1224 if e1 != 0 {
1225 err = e1 1225 err = e1
1226 } 1226 }
1227 return 1227 return
1228 } 1228 }
LEFTRIGHT

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