Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
85d9ab61
Commit
85d9ab61
authored
Dec 08, 2010
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arm: more fixes
R=ken2 CC=golang-dev
https://golang.org/cl/3523041
parent
7eeebf49
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
49 additions
and
0 deletions
+49
-0
src/pkg/runtime/cgo/Makefile
src/pkg/runtime/cgo/Makefile
+10
-0
src/pkg/runtime/cgo/arm.S
src/pkg/runtime/cgo/arm.S
+1
-0
src/pkg/runtime/cgo/linux_arm.c
src/pkg/runtime/cgo/linux_arm.c
+19
-0
src/pkg/syscall/syscall_linux_arm.go
src/pkg/syscall/syscall_linux_arm.go
+2
-0
src/pkg/syscall/zsyscall_linux_arm.go
src/pkg/syscall/zsyscall_linux_arm.go
+17
-0
No files found.
src/pkg/runtime/cgo/Makefile
View file @
85d9ab61
...
...
@@ -4,11 +4,19 @@
include
../../../Make.inc
ENABLED
:=
1
ifeq
($(GOARCH),arm)
ENABLED
:=
0
endif
TARG
=
runtime/cgo
GOFILES
=
\
cgo.go
\
ifeq
($(ENABLED),1)
# Unwarranted chumminess with Make.pkg's cgo rules.
# Do not try this at home.
GCC_OFILES
=
\
...
...
@@ -23,6 +31,8 @@ OFILES=\
CGO_LDFLAGS
=
-lpthread
endif
include
../../../Make.pkg
$(GOARCH).o
:
$(GOARCH).S
...
...
src/pkg/runtime/cgo/arm.S
0 → 100644
View file @
85d9ab61
/*
unimplemented
*/
src/pkg/runtime/cgo/linux_arm.c
0 → 100644
View file @
85d9ab61
// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#include "libcgo.h"
static
void
xinitcgo
(
void
)
{
}
void
(
*
initcgo
)(
void
)
=
xinitcgo
;
void
libcgo_sys_thread_start
(
ThreadStart
*
ts
)
{
// unimplemented
*
(
int
*
)
0
=
0
;
}
src/pkg/syscall/syscall_linux_arm.go
View file @
85d9ab61
...
...
@@ -64,6 +64,8 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, errno int)
//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, errno int)
//sys sendto(s int, buf []byte, flags int, to uintptr, addrlen _Socklen) (errno int)
//sys socketpair(domain int, typ int, flags int, fd *[2]int) (errno int)
//sys recvmsg(s int, msg *Msghdr, flags int) (n int, errno int)
//sys sendmsg(s int, msg *Msghdr, flags int) (errno int)
//sys Chown(path string, uid int, gid int) (errno int)
//sys Fchown(fd int, uid int, gid int) (errno int)
...
...
src/pkg/syscall/zsyscall_linux_arm.go
View file @
85d9ab61
...
...
@@ -840,6 +840,23 @@ func socketpair(domain int, typ int, flags int, fd *[2]int) (errno int) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func
recvmsg
(
s
int
,
msg
*
Msghdr
,
flags
int
)
(
n
int
,
errno
int
)
{
r0
,
_
,
e1
:=
Syscall
(
SYS_RECVMSG
,
uintptr
(
s
),
uintptr
(
unsafe
.
Pointer
(
msg
)),
uintptr
(
flags
))
n
=
int
(
r0
)
errno
=
int
(
e1
)
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func
sendmsg
(
s
int
,
msg
*
Msghdr
,
flags
int
)
(
errno
int
)
{
_
,
_
,
e1
:=
Syscall
(
SYS_SENDMSG
,
uintptr
(
s
),
uintptr
(
unsafe
.
Pointer
(
msg
)),
uintptr
(
flags
))
errno
=
int
(
e1
)
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func
Chown
(
path
string
,
uid
int
,
gid
int
)
(
errno
int
)
{
_
,
_
,
e1
:=
Syscall
(
SYS_CHOWN
,
uintptr
(
unsafe
.
Pointer
(
StringBytePtr
(
path
))),
uintptr
(
uid
),
uintptr
(
gid
))
errno
=
int
(
e1
)
...
...
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