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
aebfd63c
Commit
aebfd63c
authored
Jul 13, 2011
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
syscall: add Flock on Linux
Fixes #2069. R=golang-dev, r CC=golang-dev
https://golang.org/cl/4703048
parent
a16baf07
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
1 deletion
+25
-1
syscall_linux.go
src/pkg/syscall/syscall_linux.go
+1
-1
zsyscall_linux_386.go
src/pkg/syscall/zsyscall_linux_386.go
+8
-0
zsyscall_linux_amd64.go
src/pkg/syscall/zsyscall_linux_amd64.go
+8
-0
zsyscall_linux_arm.go
src/pkg/syscall/zsyscall_linux_arm.go
+8
-0
No files found.
src/pkg/syscall/syscall_linux.go
View file @
aebfd63c
...
...
@@ -774,6 +774,7 @@ func ParseDirent(buf []byte, max int, names []string) (consumed int, count int,
//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (errno int)
//sys fcntl(fd int, cmd int, arg int) (val int, errno int)
//sys Fdatasync(fd int) (errno int)
//sys Flock(fd int, how int) (errno int)
//sys Fsync(fd int) (errno int)
//sys Getdents(fd int, buf []byte) (n int, errno int) = SYS_GETDENTS64
//sysnb Getpgid(pid int) (pgid int, errno int)
...
...
@@ -878,7 +879,6 @@ func Munmap(b []byte) (errno int) {
// Fadvise64
// Fgetxattr
// Flistxattr
// Flock
// Fork
// Fremovexattr
// Fsetxattr
...
...
src/pkg/syscall/zsyscall_linux_386.go
View file @
aebfd63c
...
...
@@ -277,6 +277,14 @@ func Fdatasync(fd int) (errno int) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func
Flock
(
fd
int
,
how
int
)
(
errno
int
)
{
_
,
_
,
e1
:=
Syscall
(
SYS_FLOCK
,
uintptr
(
fd
),
uintptr
(
how
),
0
)
errno
=
int
(
e1
)
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func
Fsync
(
fd
int
)
(
errno
int
)
{
_
,
_
,
e1
:=
Syscall
(
SYS_FSYNC
,
uintptr
(
fd
),
0
,
0
)
errno
=
int
(
e1
)
...
...
src/pkg/syscall/zsyscall_linux_amd64.go
View file @
aebfd63c
...
...
@@ -277,6 +277,14 @@ func Fdatasync(fd int) (errno int) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func
Flock
(
fd
int
,
how
int
)
(
errno
int
)
{
_
,
_
,
e1
:=
Syscall
(
SYS_FLOCK
,
uintptr
(
fd
),
uintptr
(
how
),
0
)
errno
=
int
(
e1
)
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func
Fsync
(
fd
int
)
(
errno
int
)
{
_
,
_
,
e1
:=
Syscall
(
SYS_FSYNC
,
uintptr
(
fd
),
0
,
0
)
errno
=
int
(
e1
)
...
...
src/pkg/syscall/zsyscall_linux_arm.go
View file @
aebfd63c
...
...
@@ -277,6 +277,14 @@ func Fdatasync(fd int) (errno int) {
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func
Flock
(
fd
int
,
how
int
)
(
errno
int
)
{
_
,
_
,
e1
:=
Syscall
(
SYS_FLOCK
,
uintptr
(
fd
),
uintptr
(
how
),
0
)
errno
=
int
(
e1
)
return
}
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
func
Fsync
(
fd
int
)
(
errno
int
)
{
_
,
_
,
e1
:=
Syscall
(
SYS_FSYNC
,
uintptr
(
fd
),
0
,
0
)
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