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

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

Issue 9157044: code review 9157044: syscall: fix prototype of Fchflags (API change) (Closed)
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:
View unified diff | Download patch
« no previous file with comments | « src/pkg/syscall/zsyscall_freebsd_amd64.go ('k') | src/pkg/syscall/zsyscall_netbsd_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 -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 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 func Fchdir(fd int) (err error) { 428 func Fchdir(fd int) (err error) {
429 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) 429 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
430 if e1 != 0 { 430 if e1 != 0 {
431 err = e1 431 err = e1
432 } 432 }
433 return 433 return
434 } 434 }
435 435
436 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 436 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
437 437
438 func Fchflags(path string, flags int) (err error) { 438 func Fchflags(fd int, flags int) (err error) {
439 » var _p0 *byte 439 » _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0)
440 » _p0, err = BytePtrFromString(path)
441 » if err != nil {
442 » » return
443 » }
444 » _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr( flags), 0)
445 if e1 != 0 { 440 if e1 != 0 {
446 err = e1 441 err = e1
447 } 442 }
448 return 443 return
449 } 444 }
450 445
451 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 446 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
452 447
453 func Fchmod(fd int, mode uint32) (err error) { 448 func Fchmod(fd int, mode uint32) (err error) {
454 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) 449 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after
1219 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1214 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1220 1215
1221 func writelen(fd int, buf *byte, nbuf int) (n int, err error) { 1216 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)) 1217 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf) ), uintptr(nbuf))
1223 n = int(r0) 1218 n = int(r0)
1224 if e1 != 0 { 1219 if e1 != 0 {
1225 err = e1 1220 err = e1
1226 } 1221 }
1227 return 1222 return
1228 } 1223 }
OLDNEW
« no previous file with comments | « src/pkg/syscall/zsyscall_freebsd_amd64.go ('k') | src/pkg/syscall/zsyscall_netbsd_amd64.go » ('j') | no next file with comments »

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