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

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

Issue 6610064: code review 6610064: race: syscall changes (Closed)
Left Patch Set: 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_darwin_amd64.go ('k') | src/pkg/syscall/zsyscall_freebsd_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 syscall_bsd.go syscall_freebsd.go syscall_freebsd_386.go 1 // mksyscall.pl -l32 syscall_bsd.go syscall_freebsd.go syscall_freebsd_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 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len (p)), uintptr(offset), uintptr(offset>>32), 0) 878 r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len (p)), uintptr(offset), uintptr(offset>>32), 0)
879 n = int(r0) 879 n = int(r0)
880 if e1 != 0 { 880 if e1 != 0 {
881 err = e1 881 err = e1
882 } 882 }
883 return 883 return
884 } 884 }
885 885
886 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 886 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
887 887
888 func Read(fd int, p []byte) (n int, err error) { 888 func read(fd int, p []byte) (n int, err error) {
889 var _p0 unsafe.Pointer 889 var _p0 unsafe.Pointer
890 if len(p) > 0 { 890 if len(p) > 0 {
891 _p0 = unsafe.Pointer(&p[0]) 891 _p0 = unsafe.Pointer(&p[0])
892 } else { 892 } else {
893 _p0 = unsafe.Pointer(&_zero) 893 _p0 = unsafe.Pointer(&_zero)
894 } 894 }
895 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p) )) 895 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p) ))
896 n = int(r0) 896 n = int(r0)
897 if e1 != 0 { 897 if e1 != 0 {
898 err = e1 898 err = e1
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
1242 } 1242 }
1243 _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(f lags), 0) 1243 _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(f lags), 0)
1244 if e1 != 0 { 1244 if e1 != 0 {
1245 err = e1 1245 err = e1
1246 } 1246 }
1247 return 1247 return
1248 } 1248 }
1249 1249
1250 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1250 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1251 1251
1252 func Write(fd int, p []byte) (n int, err error) { 1252 func write(fd int, p []byte) (n int, err error) {
1253 var _p0 unsafe.Pointer 1253 var _p0 unsafe.Pointer
1254 if len(p) > 0 { 1254 if len(p) > 0 {
1255 _p0 = unsafe.Pointer(&p[0]) 1255 _p0 = unsafe.Pointer(&p[0])
1256 } else { 1256 } else {
1257 _p0 = unsafe.Pointer(&_zero) 1257 _p0 = unsafe.Pointer(&_zero)
1258 } 1258 }
1259 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p ))) 1259 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p )))
1260 n = int(r0) 1260 n = int(r0)
1261 if e1 != 0 { 1261 if e1 != 0 {
1262 err = e1 1262 err = e1
(...skipping 17 matching lines...) Expand all
1280 func munmap(addr uintptr, length uintptr) (err error) { 1280 func munmap(addr uintptr, length uintptr) (err error) {
1281 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) 1281 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0)
1282 if e1 != 0 { 1282 if e1 != 0 {
1283 err = e1 1283 err = e1
1284 } 1284 }
1285 return 1285 return
1286 } 1286 }
1287 1287
1288 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1288 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1289 1289
1290 func read(fd int, buf *byte, nbuf int) (n int, err error) { 1290 func readlen(fd int, buf *byte, nbuf int) (n int, err error) {
1291 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)) , uintptr(nbuf)) 1291 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)) , uintptr(nbuf))
1292 n = int(r0) 1292 n = int(r0)
1293 if e1 != 0 { 1293 if e1 != 0 {
1294 err = e1 1294 err = e1
1295 } 1295 }
1296 return 1296 return
1297 } 1297 }
1298 1298
1299 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1299 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1300 1300
1301 func write(fd int, buf *byte, nbuf int) (n int, err error) { 1301 func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
1302 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf) ), uintptr(nbuf)) 1302 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf) ), uintptr(nbuf))
1303 n = int(r0) 1303 n = int(r0)
1304 if e1 != 0 { 1304 if e1 != 0 {
1305 err = e1 1305 err = e1
1306 } 1306 }
1307 return 1307 return
1308 } 1308 }
LEFTRIGHT

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