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
85b9f357
Commit
85b9f357
authored
Oct 25, 2011
by
David Anderson
Committed by
Brad Fitzpatrick
Oct 25, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
syscall: use uintptr for Mount flags.
R=bradfitz, rsc CC=golang-dev
https://golang.org/cl/5308044
parent
18b025d5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
syscall_linux.go
src/pkg/syscall/syscall_linux.go
+2
-2
zsyscall_linux_386.go
src/pkg/syscall/zsyscall_linux_386.go
+1
-1
zsyscall_linux_amd64.go
src/pkg/syscall/zsyscall_linux_amd64.go
+1
-1
zsyscall_linux_arm.go
src/pkg/syscall/zsyscall_linux_arm.go
+1
-1
No files found.
src/pkg/syscall/syscall_linux.go
View file @
85b9f357
...
...
@@ -784,8 +784,8 @@ func ParseDirent(buf []byte, max int, names []string) (consumed int, count int,
return
origlen
-
len
(
buf
),
count
,
names
}
//sys mount(source string, target string, fstype string, flags uint
32
, data *byte) (errno int)
func
Mount
(
source
string
,
target
string
,
fstype
string
,
flags
uint
32
,
data
string
)
(
errno
int
)
{
//sys mount(source string, target string, fstype string, flags uint
ptr
, data *byte) (errno int)
func
Mount
(
source
string
,
target
string
,
fstype
string
,
flags
uint
ptr
,
data
string
)
(
errno
int
)
{
// Certain file systems get rather angry and EINVAL if you give
// them an empty string of data, rather than NULL.
if
data
==
""
{
...
...
src/pkg/syscall/zsyscall_linux_386.go
View file @
85b9f357
...
...
@@ -89,7 +89,7 @@ func reboot(magic1 uint, magic2 uint, cmd int, arg string) (errno int) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func
mount
(
source
string
,
target
string
,
fstype
string
,
flags
uint
32
,
data
*
byte
)
(
errno
int
)
{
func
mount
(
source
string
,
target
string
,
fstype
string
,
flags
uint
ptr
,
data
*
byte
)
(
errno
int
)
{
_
,
_
,
e1
:=
Syscall6
(
SYS_MOUNT
,
uintptr
(
unsafe
.
Pointer
(
StringBytePtr
(
source
))),
uintptr
(
unsafe
.
Pointer
(
StringBytePtr
(
target
))),
uintptr
(
unsafe
.
Pointer
(
StringBytePtr
(
fstype
))),
uintptr
(
flags
),
uintptr
(
unsafe
.
Pointer
(
data
)),
0
)
errno
=
int
(
e1
)
return
...
...
src/pkg/syscall/zsyscall_linux_amd64.go
View file @
85b9f357
...
...
@@ -89,7 +89,7 @@ func reboot(magic1 uint, magic2 uint, cmd int, arg string) (errno int) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func
mount
(
source
string
,
target
string
,
fstype
string
,
flags
uint
32
,
data
*
byte
)
(
errno
int
)
{
func
mount
(
source
string
,
target
string
,
fstype
string
,
flags
uint
ptr
,
data
*
byte
)
(
errno
int
)
{
_
,
_
,
e1
:=
Syscall6
(
SYS_MOUNT
,
uintptr
(
unsafe
.
Pointer
(
StringBytePtr
(
source
))),
uintptr
(
unsafe
.
Pointer
(
StringBytePtr
(
target
))),
uintptr
(
unsafe
.
Pointer
(
StringBytePtr
(
fstype
))),
uintptr
(
flags
),
uintptr
(
unsafe
.
Pointer
(
data
)),
0
)
errno
=
int
(
e1
)
return
...
...
src/pkg/syscall/zsyscall_linux_arm.go
View file @
85b9f357
...
...
@@ -89,7 +89,7 @@ func reboot(magic1 uint, magic2 uint, cmd int, arg string) (errno int) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func
mount
(
source
string
,
target
string
,
fstype
string
,
flags
uint
32
,
data
*
byte
)
(
errno
int
)
{
func
mount
(
source
string
,
target
string
,
fstype
string
,
flags
uint
ptr
,
data
*
byte
)
(
errno
int
)
{
_
,
_
,
e1
:=
Syscall6
(
SYS_MOUNT
,
uintptr
(
unsafe
.
Pointer
(
StringBytePtr
(
source
))),
uintptr
(
unsafe
.
Pointer
(
StringBytePtr
(
target
))),
uintptr
(
unsafe
.
Pointer
(
StringBytePtr
(
fstype
))),
uintptr
(
flags
),
uintptr
(
unsafe
.
Pointer
(
data
)),
0
)
errno
=
int
(
e1
)
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