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

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

Issue 9157044: code review 9157044: syscall: fix prototype of Fchflags (API change) (Closed)
Left Patch Set: Created 10 years, 11 months ago
Right Patch Set: diff -r 17c26220ac96 https://code.google.com/p/go/ Created 10 years, 10 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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 func Fchdir(fd int) (err error) { 409 func Fchdir(fd int) (err error) {
410 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) 410 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
411 if e1 != 0 { 411 if e1 != 0 {
412 err = e1 412 err = e1
413 } 413 }
414 return 414 return
415 } 415 }
416 416
417 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 417 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
418 418
419 func Fchflags(path string, flags int) (err error) { 419 func Fchflags(fd int, flags int) (err error) {
420 » var _p0 *byte 420 » _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0)
421 » _p0, err = BytePtrFromString(path)
422 » if err != nil {
423 » » return
424 » }
425 » _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr( flags), 0)
426 if e1 != 0 { 421 if e1 != 0 {
427 err = e1 422 err = e1
428 } 423 }
429 return 424 return
430 } 425 }
431 426
432 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 427 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
433 428
434 func Fchmod(fd int, mode uint32) (err error) { 429 func Fchmod(fd int, mode uint32) (err error) {
435 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) 430 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
(...skipping 838 matching lines...) Expand 10 before | Expand all | Expand 10 after
1274 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1269 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1275 1270
1276 func writelen(fd int, buf *byte, nbuf int) (n int, err error) { 1271 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)) 1272 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf) ), uintptr(nbuf))
1278 n = int(r0) 1273 n = int(r0)
1279 if e1 != 0 { 1274 if e1 != 0 {
1280 err = e1 1275 err = e1
1281 } 1276 }
1282 return 1277 return
1283 } 1278 }
LEFTRIGHT

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