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

Side by Side Diff: src/pkg/syscall/zsyscall_darwin_amd64.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_darwin_386.go ('k') | src/pkg/syscall/zsyscall_freebsd_386.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 syscall_bsd.go syscall_darwin.go syscall_darwin_amd64.go 1 // mksyscall.pl syscall_bsd.go syscall_darwin.go syscall_darwin_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 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 func Fchdir(fd int) (err error) { 451 func Fchdir(fd int) (err error) {
452 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) 452 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
453 if e1 != 0 { 453 if e1 != 0 {
454 err = e1 454 err = e1
455 } 455 }
456 return 456 return
457 } 457 }
458 458
459 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 459 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
460 460
461 func Fchflags(path string, flags int) (err error) { 461 func Fchflags(fd int, flags int) (err error) {
462 » var _p0 *byte 462 » _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0)
463 » _p0, err = BytePtrFromString(path)
464 » if err != nil {
465 » » return
466 » }
467 » _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr( flags), 0)
468 if e1 != 0 { 463 if e1 != 0 {
469 err = e1 464 err = e1
470 } 465 }
471 return 466 return
472 } 467 }
473 468
474 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 469 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
475 470
476 func Fchmod(fd int, mode uint32) (err error) { 471 func Fchmod(fd int, mode uint32) (err error) {
477 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) 472 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0)
(...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after
1331 1326
1332 func gettimeofday(tp *Timeval) (sec int64, usec int32, err error) { 1327 func gettimeofday(tp *Timeval) (sec int64, usec int32, err error) {
1333 r0, r1, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) 1328 r0, r1, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
1334 sec = int64(r0) 1329 sec = int64(r0)
1335 usec = int32(r1) 1330 usec = int32(r1)
1336 if e1 != 0 { 1331 if e1 != 0 {
1337 err = e1 1332 err = e1
1338 } 1333 }
1339 return 1334 return
1340 } 1335 }
OLDNEW
« no previous file with comments | « src/pkg/syscall/zsyscall_darwin_386.go ('k') | src/pkg/syscall/zsyscall_freebsd_386.go » ('j') | no next file with comments »

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