Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
48cc88d0
Commit
48cc88d0
authored
Nov 12, 2010
by
Ken Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arm is not little-endian
R=rob CC=golang-dev
https://golang.org/cl/3075041
parent
8530e8ef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
mkall.sh
src/pkg/syscall/mkall.sh
+1
-1
zsyscall_linux_arm.go
src/pkg/syscall/zsyscall_linux_arm.go
+6
-6
No files found.
src/pkg/syscall/mkall.sh
View file @
48cc88d0
...
@@ -144,7 +144,7 @@ nacl_386)
...
@@ -144,7 +144,7 @@ nacl_386)
;;
;;
linux_arm
)
linux_arm
)
mkerrors
=
"
$mkerrors
"
mkerrors
=
"
$mkerrors
"
mksyscall
=
"./mksyscall.sh -
l
32"
mksyscall
=
"./mksyscall.sh -
b
32"
mksysnum
=
"./mksysnum_linux.sh /usr/include/asm/unistd.h"
mksysnum
=
"./mksysnum_linux.sh /usr/include/asm/unistd.h"
mktypes
=
"godefs -gsyscall"
mktypes
=
"godefs -gsyscall"
;;
;;
...
...
src/pkg/syscall/zsyscall_linux_arm.go
View file @
48cc88d0
// mksyscall.sh -
l
32 syscall_linux.go syscall_linux_arm.go
// mksyscall.sh -
b
32 syscall_linux.go syscall_linux_arm.go
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
package
syscall
package
syscall
...
@@ -209,7 +209,7 @@ func Faccessat(dirfd int, path string, mode uint32, flags int) (errno int) {
...
@@ -209,7 +209,7 @@ func Faccessat(dirfd int, path string, mode uint32, flags int) (errno int) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func
Fallocate
(
fd
int
,
mode
uint32
,
off
int64
,
len
int64
)
(
errno
int
)
{
func
Fallocate
(
fd
int
,
mode
uint32
,
off
int64
,
len
int64
)
(
errno
int
)
{
_
,
_
,
e1
:=
Syscall6
(
SYS_FALLOCATE
,
uintptr
(
fd
),
uintptr
(
mode
),
uintptr
(
off
),
uintptr
(
off
>>
32
),
uintptr
(
len
),
uintptr
(
len
>>
32
))
_
,
_
,
e1
:=
Syscall6
(
SYS_FALLOCATE
,
uintptr
(
fd
),
uintptr
(
mode
),
uintptr
(
off
>>
32
),
uintptr
(
off
),
uintptr
(
len
>>
32
),
uintptr
(
len
))
errno
=
int
(
e1
)
errno
=
int
(
e1
)
return
return
}
}
...
@@ -581,7 +581,7 @@ func Setuid(uid int) (errno int) {
...
@@ -581,7 +581,7 @@ func Setuid(uid int) (errno int) {
func
Splice
(
rfd
int
,
roff
*
int64
,
wfd
int
,
woff
*
int64
,
len
int
,
flags
int
)
(
n
int64
,
errno
int
)
{
func
Splice
(
rfd
int
,
roff
*
int64
,
wfd
int
,
woff
*
int64
,
len
int
,
flags
int
)
(
n
int64
,
errno
int
)
{
r0
,
r1
,
e1
:=
Syscall6
(
SYS_SPLICE
,
uintptr
(
rfd
),
uintptr
(
unsafe
.
Pointer
(
roff
)),
uintptr
(
wfd
),
uintptr
(
unsafe
.
Pointer
(
woff
)),
uintptr
(
len
),
uintptr
(
flags
))
r0
,
r1
,
e1
:=
Syscall6
(
SYS_SPLICE
,
uintptr
(
rfd
),
uintptr
(
unsafe
.
Pointer
(
roff
)),
uintptr
(
wfd
),
uintptr
(
unsafe
.
Pointer
(
woff
)),
uintptr
(
len
),
uintptr
(
flags
))
n
=
int64
(
int64
(
r
1
)
<<
32
|
int64
(
r0
))
n
=
int64
(
int64
(
r
0
)
<<
32
|
int64
(
r1
))
errno
=
int
(
e1
)
errno
=
int
(
e1
)
return
return
}
}
...
@@ -613,7 +613,7 @@ func Sysinfo(info *Sysinfo_t) (errno int) {
...
@@ -613,7 +613,7 @@ func Sysinfo(info *Sysinfo_t) (errno int) {
func
Tee
(
rfd
int
,
wfd
int
,
len
int
,
flags
int
)
(
n
int64
,
errno
int
)
{
func
Tee
(
rfd
int
,
wfd
int
,
len
int
,
flags
int
)
(
n
int64
,
errno
int
)
{
r0
,
r1
,
e1
:=
Syscall6
(
SYS_TEE
,
uintptr
(
rfd
),
uintptr
(
wfd
),
uintptr
(
len
),
uintptr
(
flags
),
0
,
0
)
r0
,
r1
,
e1
:=
Syscall6
(
SYS_TEE
,
uintptr
(
rfd
),
uintptr
(
wfd
),
uintptr
(
len
),
uintptr
(
flags
),
0
,
0
)
n
=
int64
(
int64
(
r
1
)
<<
32
|
int64
(
r0
))
n
=
int64
(
int64
(
r
0
)
<<
32
|
int64
(
r1
))
errno
=
int
(
e1
)
errno
=
int
(
e1
)
return
return
}
}
...
@@ -873,7 +873,7 @@ func Fstatfs(fd int, buf *Statfs_t) (errno int) {
...
@@ -873,7 +873,7 @@ func Fstatfs(fd int, buf *Statfs_t) (errno int) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func
Ftruncate
(
fd
int
,
length
int64
)
(
errno
int
)
{
func
Ftruncate
(
fd
int
,
length
int64
)
(
errno
int
)
{
_
,
_
,
e1
:=
Syscall
(
SYS_FTRUNCATE64
,
uintptr
(
fd
),
uintptr
(
length
),
uintptr
(
length
>>
32
))
_
,
_
,
e1
:=
Syscall
(
SYS_FTRUNCATE64
,
uintptr
(
fd
),
uintptr
(
length
>>
32
),
uintptr
(
length
))
errno
=
int
(
e1
)
errno
=
int
(
e1
)
return
return
}
}
...
@@ -1026,7 +1026,7 @@ func Statfs(path string, buf *Statfs_t) (errno int) {
...
@@ -1026,7 +1026,7 @@ func Statfs(path string, buf *Statfs_t) (errno int) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func
Truncate
(
path
string
,
length
int64
)
(
errno
int
)
{
func
Truncate
(
path
string
,
length
int64
)
(
errno
int
)
{
_
,
_
,
e1
:=
Syscall
(
SYS_TRUNCATE64
,
uintptr
(
unsafe
.
Pointer
(
StringBytePtr
(
path
))),
uintptr
(
length
),
uintptr
(
length
>>
32
))
_
,
_
,
e1
:=
Syscall
(
SYS_TRUNCATE64
,
uintptr
(
unsafe
.
Pointer
(
StringBytePtr
(
path
))),
uintptr
(
length
>>
32
),
uintptr
(
length
))
errno
=
int
(
e1
)
errno
=
int
(
e1
)
return
return
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment