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

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

Issue 6905057: code review 6905057: os: Improve the accuracy of os.Chtimes (Closed)
Patch Set: diff -r ac06fe42df6d https://code.google.com/p/go Created 11 years, 3 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_linux_amd64.go ('k') | src/pkg/syscall/ztypes_linux_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 -l32 -arm syscall_linux.go syscall_linux_arm.go 1 // mksyscall.pl -l32 -arm syscall_linux.go syscall_linux_arm.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 open(path string, mode int, perm uint32) (fd int, err error) { 10 func open(path string, mode int, perm uint32) (fd int, err error) {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 } 57 }
58 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(un safe.Pointer(times)), 0) 58 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(un safe.Pointer(times)), 0)
59 if e1 != 0 { 59 if e1 != 0 {
60 err = e1 60 err = e1
61 } 61 }
62 return 62 return
63 } 63 }
64 64
65 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 65 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
66 66
67 func utimensat(dirfd int, path string, times *[2]Timespec) (err error) {
68 var _p0 *byte
69 _p0, err = BytePtrFromString(path)
70 if err != nil {
71 return
72 }
73 _, _, e1 := Syscall(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointe r(_p0)), uintptr(unsafe.Pointer(times)))
74 if e1 != 0 {
75 err = e1
76 }
77 return
78 }
79
80 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
81
67 func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) { 82 func futimesat(dirfd int, path *byte, times *[2]Timeval) (err error) {
68 _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointe r(path)), uintptr(unsafe.Pointer(times))) 83 _, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointe r(path)), uintptr(unsafe.Pointer(times)))
69 if e1 != 0 { 84 if e1 != 0 {
70 err = e1 85 err = e1
71 } 86 }
72 return 87 return
73 } 88 }
74 89
75 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 90 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
76 91
(...skipping 1731 matching lines...) Expand 10 before | Expand all | Expand 10 after
1808 1823
1809 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1824 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
1810 1825
1811 func setrlimit(resource int, rlim *rlimit32) (err error) { 1826 func setrlimit(resource int, rlim *rlimit32) (err error) {
1812 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe. Pointer(rlim)), 0) 1827 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe. Pointer(rlim)), 0)
1813 if e1 != 0 { 1828 if e1 != 0 {
1814 err = e1 1829 err = e1
1815 } 1830 }
1816 return 1831 return
1817 } 1832 }
OLDNEW
« no previous file with comments | « src/pkg/syscall/zsyscall_linux_amd64.go ('k') | src/pkg/syscall/ztypes_linux_386.go » ('j') | no next file with comments »

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