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

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

Issue 6610064: code review 6610064: race: syscall changes (Closed)
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:
View unified diff | Download patch
« no previous file with comments | « src/pkg/syscall/syscall_windows.go ('k') | src/pkg/syscall/zsyscall_darwin_amd64.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // mksyscall.pl -l32 syscall_bsd.go syscall_darwin.go syscall_darwin_386.go 1 // mksyscall.pl -l32 syscall_bsd.go syscall_darwin.go syscall_darwin_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 877 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len (p)), uintptr(offset), uintptr(offset>>32), 0) 888 r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len (p)), uintptr(offset), uintptr(offset>>32), 0)
889 n = int(r0) 889 n = int(r0)
890 if e1 != 0 { 890 if e1 != 0 {
891 err = e1 891 err = e1
892 } 892 }
893 return 893 return
894 } 894 }
895 895
896 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 896 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
897 897
898 func Read(fd int, p []byte) (n int, err error) { 898 func read(fd int, p []byte) (n int, err error) {
899 var _p0 unsafe.Pointer 899 var _p0 unsafe.Pointer
900 if len(p) > 0 { 900 if len(p) > 0 {
901 _p0 = unsafe.Pointer(&p[0]) 901 _p0 = unsafe.Pointer(&p[0])
902 } else { 902 } else {
903 _p0 = unsafe.Pointer(&_zero) 903 _p0 = unsafe.Pointer(&_zero)
904 } 904 }
905 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p) )) 905 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p) ))
906 n = int(r0) 906 n = int(r0)
907 if e1 != 0 { 907 if e1 != 0 {
908 err = e1 908 err = e1
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
1262 } 1262 }
1263 _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(f lags), 0) 1263 _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(f lags), 0)
1264 if e1 != 0 { 1264 if e1 != 0 {
1265 err = e1 1265 err = e1
1266 } 1266 }
1267 return 1267 return
1268 } 1268 }
1269 1269
1270 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1270 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1271 1271
1272 func Write(fd int, p []byte) (n int, err error) { 1272 func write(fd int, p []byte) (n int, err error) {
1273 var _p0 unsafe.Pointer 1273 var _p0 unsafe.Pointer
1274 if len(p) > 0 { 1274 if len(p) > 0 {
1275 _p0 = unsafe.Pointer(&p[0]) 1275 _p0 = unsafe.Pointer(&p[0])
1276 } else { 1276 } else {
1277 _p0 = unsafe.Pointer(&_zero) 1277 _p0 = unsafe.Pointer(&_zero)
1278 } 1278 }
1279 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p ))) 1279 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p )))
1280 n = int(r0) 1280 n = int(r0)
1281 if e1 != 0 { 1281 if e1 != 0 {
1282 err = e1 1282 err = e1
(...skipping 17 matching lines...) Expand all
1300 func munmap(addr uintptr, length uintptr) (err error) { 1300 func munmap(addr uintptr, length uintptr) (err error) {
1301 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) 1301 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
1302 if e1 != 0 { 1302 if e1 != 0 {
1303 err = e1 1303 err = e1
1304 } 1304 }
1305 return 1305 return
1306 } 1306 }
1307 1307
1308 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1308 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1309 1309
1310 func read(fd int, buf *byte, nbuf int) (n int, err error) { 1310 func readlen(fd int, buf *byte, nbuf int) (n int, err error) {
1311 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)) , uintptr(nbuf)) 1311 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)) , uintptr(nbuf))
1312 n = int(r0) 1312 n = int(r0)
1313 if e1 != 0 { 1313 if e1 != 0 {
1314 err = e1 1314 err = e1
1315 } 1315 }
1316 return 1316 return
1317 } 1317 }
1318 1318
1319 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1319 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1320 1320
1321 func write(fd int, buf *byte, nbuf int) (n int, err error) { 1321 func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
1322 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf) ), uintptr(nbuf)) 1322 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf) ), uintptr(nbuf))
1323 n = int(r0) 1323 n = int(r0)
1324 if e1 != 0 { 1324 if e1 != 0 {
1325 err = e1 1325 err = e1
1326 } 1326 }
1327 return 1327 return
1328 } 1328 }
1329 1329
1330 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1330 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1331 1331
1332 func gettimeofday(tp *Timeval) (sec int32, usec int32, err error) { 1332 func gettimeofday(tp *Timeval) (sec int32, usec int32, err error) {
1333 r0, r1, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) 1333 r0, r1, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
1334 sec = int32(r0) 1334 sec = int32(r0)
1335 usec = int32(r1) 1335 usec = int32(r1)
1336 if e1 != 0 { 1336 if e1 != 0 {
1337 err = e1 1337 err = e1
1338 } 1338 }
1339 return 1339 return
1340 } 1340 }
OLDNEW
« no previous file with comments | « src/pkg/syscall/syscall_windows.go ('k') | src/pkg/syscall/zsyscall_darwin_amd64.go » ('j') | no next file with comments »

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