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
5aa3a8de
Commit
5aa3a8de
authored
Feb 16, 2010
by
Giles Lean
Committed by
Russ Cox
Feb 16, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
syscall: make signature of Umask on OS X, FreeBSD match Linux.
R=rsc CC=golang-dev
https://golang.org/cl/207071
parent
0b4d8c19
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
14 deletions
+14
-14
syscall_darwin.go
src/pkg/syscall/syscall_darwin.go
+1
-1
syscall_freebsd.go
src/pkg/syscall/syscall_freebsd.go
+1
-1
zsyscall_darwin_386.go
src/pkg/syscall/zsyscall_darwin_386.go
+3
-3
zsyscall_darwin_amd64.go
src/pkg/syscall/zsyscall_darwin_amd64.go
+3
-3
zsyscall_freebsd_386.go
src/pkg/syscall/zsyscall_freebsd_386.go
+3
-3
zsyscall_freebsd_amd64.go
src/pkg/syscall/zsyscall_freebsd_amd64.go
+3
-3
No files found.
src/pkg/syscall/syscall_darwin.go
View file @
5aa3a8de
...
@@ -552,7 +552,7 @@ func Kill(pid int, signum int) (errno int) { return kill(pid, signum, 1) }
...
@@ -552,7 +552,7 @@ func Kill(pid int, signum int) (errno int) { return kill(pid, signum, 1) }
//sys Symlink(path string, link string) (errno int)
//sys Symlink(path string, link string) (errno int)
//sys Sync() (errno int)
//sys Sync() (errno int)
//sys Truncate(path string, length int64) (errno int)
//sys Truncate(path string, length int64) (errno int)
//sys Umask(newmask int) (
errno
int)
//sys Umask(newmask int) (
oldmask
int)
//sys Undelete(path string) (errno int)
//sys Undelete(path string) (errno int)
//sys Unlink(path string) (errno int)
//sys Unlink(path string) (errno int)
//sys Unmount(path string, flags int) (errno int)
//sys Unmount(path string, flags int) (errno int)
...
...
src/pkg/syscall/syscall_freebsd.go
View file @
5aa3a8de
...
@@ -549,7 +549,7 @@ func SysctlUint32(name string) (value uint32, errno int) {
...
@@ -549,7 +549,7 @@ func SysctlUint32(name string) (value uint32, errno int) {
//sys Symlink(path string, link string) (errno int)
//sys Symlink(path string, link string) (errno int)
//sys Sync() (errno int)
//sys Sync() (errno int)
//sys Truncate(path string, length int64) (errno int)
//sys Truncate(path string, length int64) (errno int)
//sys Umask(newmask int) (
errno
int)
//sys Umask(newmask int) (
oldmask
int)
//sys Undelete(path string) (errno int)
//sys Undelete(path string) (errno int)
//sys Unlink(path string) (errno int)
//sys Unlink(path string) (errno int)
//sys Unmount(path string, flags int) (errno int)
//sys Unmount(path string, flags int) (errno int)
...
...
src/pkg/syscall/zsyscall_darwin_386.go
View file @
5aa3a8de
...
@@ -623,9 +623,9 @@ func Truncate(path string, length int64) (errno int) {
...
@@ -623,9 +623,9 @@ func Truncate(path string, length int64) (errno int) {
return
return
}
}
func
Umask
(
newmask
int
)
(
errno
int
)
{
func
Umask
(
newmask
int
)
(
oldmask
int
)
{
_
,
_
,
e1
:=
Syscall
(
SYS_UMASK
,
uintptr
(
newmask
),
0
,
0
)
r0
,
_
,
_
:=
Syscall
(
SYS_UMASK
,
uintptr
(
newmask
),
0
,
0
)
errno
=
int
(
e1
)
oldmask
=
int
(
r0
)
return
return
}
}
...
...
src/pkg/syscall/zsyscall_darwin_amd64.go
View file @
5aa3a8de
...
@@ -623,9 +623,9 @@ func Truncate(path string, length int64) (errno int) {
...
@@ -623,9 +623,9 @@ func Truncate(path string, length int64) (errno int) {
return
return
}
}
func
Umask
(
newmask
int
)
(
errno
int
)
{
func
Umask
(
newmask
int
)
(
oldmask
int
)
{
_
,
_
,
e1
:=
Syscall
(
SYS_UMASK
,
uintptr
(
newmask
),
0
,
0
)
r0
,
_
,
_
:=
Syscall
(
SYS_UMASK
,
uintptr
(
newmask
),
0
,
0
)
errno
=
int
(
e1
)
oldmask
=
int
(
r0
)
return
return
}
}
...
...
src/pkg/syscall/zsyscall_freebsd_386.go
View file @
5aa3a8de
...
@@ -623,9 +623,9 @@ func Truncate(path string, length int64) (errno int) {
...
@@ -623,9 +623,9 @@ func Truncate(path string, length int64) (errno int) {
return
return
}
}
func
Umask
(
newmask
int
)
(
errno
int
)
{
func
Umask
(
newmask
int
)
(
oldmask
int
)
{
_
,
_
,
e1
:=
Syscall
(
SYS_UMASK
,
uintptr
(
newmask
),
0
,
0
)
r0
,
_
,
_
:=
Syscall
(
SYS_UMASK
,
uintptr
(
newmask
),
0
,
0
)
errno
=
int
(
e1
)
oldmask
=
int
(
r0
)
return
return
}
}
...
...
src/pkg/syscall/zsyscall_freebsd_amd64.go
View file @
5aa3a8de
...
@@ -623,9 +623,9 @@ func Truncate(path string, length int64) (errno int) {
...
@@ -623,9 +623,9 @@ func Truncate(path string, length int64) (errno int) {
return
return
}
}
func
Umask
(
newmask
int
)
(
errno
int
)
{
func
Umask
(
newmask
int
)
(
oldmask
int
)
{
_
,
_
,
e1
:=
Syscall
(
SYS_UMASK
,
uintptr
(
newmask
),
0
,
0
)
r0
,
_
,
_
:=
Syscall
(
SYS_UMASK
,
uintptr
(
newmask
),
0
,
0
)
errno
=
int
(
e1
)
oldmask
=
int
(
r0
)
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