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

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

Issue 84830043: code review 84830043: syscall: fix Getfsstat() for BSD
Left Patch Set: Created 9 years, 12 months ago
Right Patch Set: diff -r 519230b4d06a https://code.google.com/p/go 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:
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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 534 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
535 535
536 func Geteuid() (uid int) { 536 func Geteuid() (uid int) {
537 r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0) 537 r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0)
538 uid = int(r0) 538 uid = int(r0)
539 return 539 return
540 } 540 }
541 541
542 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 542 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
543 543
544 func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
545 var _p0 unsafe.Pointer
546 if len(buf) > 0 {
547 _p0 = unsafe.Pointer(&buf[0])
548 } else {
549 _p0 = unsafe.Pointer(&_zero)
550 }
551 r0, _, e1 := Syscall(SYS_GETFSSTAT, uintptr(_p0), uintptr(len(buf)), uin tptr(flags))
552 n = int(r0)
553 if e1 != 0 {
554 err = e1
555 }
556 return
557 }
558
559 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
560
561 func Getgid() (gid int) { 544 func Getgid() (gid int) {
562 r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0) 545 r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0)
563 gid = int(r0) 546 gid = int(r0)
564 return 547 return
565 } 548 }
566 549
567 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 550 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
568 551
569 func Getpgid(pid int) (pgid int, err error) { 552 func Getpgid(pid int) (pgid int, err error) {
570 r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0) 553 r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
1270 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1253 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1271 1254
1272 func writelen(fd int, buf *byte, nbuf int) (n int, err error) { 1255 func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
1273 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf) ), uintptr(nbuf)) 1256 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf) ), uintptr(nbuf))
1274 n = int(r0) 1257 n = int(r0)
1275 if e1 != 0 { 1258 if e1 != 0 {
1276 err = e1 1259 err = e1
1277 } 1260 }
1278 return 1261 return
1279 } 1262 }
LEFTRIGHT

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