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
055b4f7e
Commit
055b4f7e
authored
Dec 16, 2011
by
Mikio Hara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
syscall: sort Makefile, mkall.sh and mkerrors.sh entries
R=golang-dev, jsing CC=golang-dev
https://golang.org/cl/5495062
parent
ecc31764
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
65 deletions
+65
-65
src/pkg/syscall/Makefile
src/pkg/syscall/Makefile
+8
-8
src/pkg/syscall/mkall.sh
src/pkg/syscall/mkall.sh
+28
-28
src/pkg/syscall/mkerrors.sh
src/pkg/syscall/mkerrors.sh
+29
-29
No files found.
src/pkg/syscall/Makefile
View file @
055b4f7e
...
...
@@ -16,22 +16,22 @@ GOFILES=\
zsysnum_
$(GOOS)
_
$(GOARCH)
.go
\
ztypes_
$(GOOS)
_
$(GOARCH)
.go
\
GOFILES_
freebsd
=
\
GOFILES_
darwin
=
\
bpf_bsd.go
\
env_unix.go
\
exec_unix.go
\
route_bsd.go
\
route_
freebsd
.go
\
route_
darwin
.go
\
sockcmsg_unix.go
\
syscall_bsd.go
\
syscall_unix.go
\
GOFILES_
darwin
=
\
GOFILES_
freebsd
=
\
bpf_bsd.go
\
env_unix.go
\
exec_unix.go
\
route_bsd.go
\
route_
darwin
.go
\
route_
freebsd
.go
\
sockcmsg_unix.go
\
syscall_bsd.go
\
syscall_unix.go
\
...
...
@@ -67,6 +67,10 @@ GOFILES_openbsd=\
syscall_unix.go
\
zsysctl_openbsd.go
\
GOFILES_plan9
=
\
env_plan9.go
\
exec_plan9.go
\
GOFILES_windows
=
\
env_windows.go
\
exec_windows.go
\
...
...
@@ -74,10 +78,6 @@ GOFILES_windows=\
zerrors_windows.go
\
ztypes_windows.go
\
GOFILES_plan9
=
\
env_plan9.go
\
exec_plan9.go
\
OFILES
=
\
asm_
$(GOOS)
_
$(GOARCH)
.
$O
\
...
...
src/pkg/syscall/mkall.sh
View file @
055b4f7e
...
...
@@ -109,26 +109,26 @@ _* | *_ | _)
echo
'undefined $GOOS_$GOARCH:'
"
$GOOSARCH
"
1>&2
exit
1
;;
freebsd
_386
)
darwin
_386
)
mkerrors
=
"
$mkerrors
-m32"
mksyscall
=
"./mksyscall.pl -l32"
mksysnum
=
"
curl -s 'http://svn.freebsd.org/base/head/sys/kern/syscalls.master' | ./mksysnum_freebsd.pl
"
mksysnum
=
"
./mksysnum_darwin.pl /usr/include/sys/syscall.h
"
mktypes
=
"GOARCH=
$GOARCH
cgo -godefs"
;;
freebsd
_amd64
)
darwin
_amd64
)
mkerrors
=
"
$mkerrors
-m64"
mksysnum
=
"
curl -s 'http://svn.freebsd.org/base/head/sys/kern/syscalls.master' | ./mksysnum_freebsd.pl
"
mksysnum
=
"
./mksysnum_darwin.pl /usr/include/sys/syscall.h
"
mktypes
=
"GOARCH=
$GOARCH
cgo -godefs"
;;
darwin
_386
)
freebsd
_386
)
mkerrors
=
"
$mkerrors
-m32"
mksyscall
=
"./mksyscall.pl -l32"
mksysnum
=
"
./mksysnum_darwin.pl /usr/include/sys/syscall.h
"
mksysnum
=
"
curl -s 'http://svn.freebsd.org/base/head/sys/kern/syscalls.master' | ./mksysnum_freebsd.pl
"
mktypes
=
"GOARCH=
$GOARCH
cgo -godefs"
;;
darwin
_amd64
)
freebsd
_amd64
)
mkerrors
=
"
$mkerrors
-m64"
mksysnum
=
"
./mksysnum_darwin.pl /usr/include/sys/syscall.h
"
mksysnum
=
"
curl -s 'http://svn.freebsd.org/base/head/sys/kern/syscalls.master' | ./mksysnum_freebsd.pl
"
mktypes
=
"GOARCH=
$GOARCH
cgo -godefs"
;;
linux_386
)
...
...
@@ -148,26 +148,6 @@ linux_arm)
mksysnum
=
"./mksysnum_linux.pl /usr/include/asm/unistd.h"
mktypes
=
"GOARCH=
$GOARCH
cgo -godefs"
;;
windows_386
)
mksyscall
=
"./mksyscall_windows.pl -l32"
mksysnum
=
mktypes
=
mkerrors
=
"./mkerrors_windows.sh -m32"
zerrors
=
"zerrors_windows.go"
;;
windows_amd64
)
mksyscall
=
"./mksyscall_windows.pl"
mksysnum
=
mktypes
=
mkerrors
=
"./mkerrors_windows.sh -m32"
zerrors
=
"zerrors_windows.go"
;;
plan9_386
)
mkerrors
=
mksyscall
=
"./mksyscall.pl -l32 -plan9"
mksysnum
=
"./mksysnum_plan9.sh /n/sources/plan9/sys/src/libc/9syscall/sys.h"
mktypes
=
"XXX"
;;
openbsd_386
)
mkerrors
=
"
$mkerrors
-m32"
mksyscall
=
"./mksyscall.pl -l32 -openbsd"
...
...
@@ -184,6 +164,26 @@ openbsd_amd64)
mksysnum
=
"curl -s 'http://www.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master' | ./mksysnum_openbsd.pl"
mktypes
=
"GOARCH=
$GOARCH
cgo -godefs"
;;
plan9_386
)
mkerrors
=
mksyscall
=
"./mksyscall.pl -l32 -plan9"
mksysnum
=
"./mksysnum_plan9.sh /n/sources/plan9/sys/src/libc/9syscall/sys.h"
mktypes
=
"XXX"
;;
windows_386
)
mksyscall
=
"./mksyscall_windows.pl -l32"
mksysnum
=
mktypes
=
mkerrors
=
"./mkerrors_windows.sh -m32"
zerrors
=
"zerrors_windows.go"
;;
windows_amd64
)
mksyscall
=
"./mksyscall_windows.pl"
mksysnum
=
mktypes
=
mkerrors
=
"./mkerrors_windows.sh -m32"
zerrors
=
"zerrors_windows.go"
;;
*
)
echo
'unrecognized $GOOS_$GOARCH: '
"
$GOOSARCH
"
1>&2
exit
1
...
...
src/pkg/syscall/mkerrors.sh
View file @
055b4f7e
...
...
@@ -15,35 +15,6 @@ GCC=gcc
uname
=
$(
uname
)
includes_Linux
=
'
#define _LARGEFILE_SOURCE
#define _LARGEFILE64_SOURCE
#define _FILE_OFFSET_BITS 64
#define _GNU_SOURCE
#include <bits/sockaddr.h>
#include <sys/epoll.h>
#include <sys/inotify.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/mount.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <linux/if_addr.h>
#include <linux/if_ether.h>
#include <linux/if_tun.h>
#include <linux/filter.h>
#include <linux/netlink.h>
#include <linux/reboot.h>
#include <linux/rtnetlink.h>
#include <linux/ptrace.h>
#include <linux/wait.h>
#include <net/if.h>
#include <net/if_arp.h>
#include <net/route.h>
#include <netpacket/packet.h>
'
includes_Darwin
=
'
#define _DARWIN_C_SOURCE
#define KERNEL
...
...
@@ -84,6 +55,35 @@ includes_FreeBSD='
#include <netinet/ip_mroute.h>
'
includes_Linux
=
'
#define _LARGEFILE_SOURCE
#define _LARGEFILE64_SOURCE
#define _FILE_OFFSET_BITS 64
#define _GNU_SOURCE
#include <bits/sockaddr.h>
#include <sys/epoll.h>
#include <sys/inotify.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/mount.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <linux/if_addr.h>
#include <linux/if_ether.h>
#include <linux/if_tun.h>
#include <linux/filter.h>
#include <linux/netlink.h>
#include <linux/reboot.h>
#include <linux/rtnetlink.h>
#include <linux/ptrace.h>
#include <linux/wait.h>
#include <net/if.h>
#include <net/if_arp.h>
#include <net/route.h>
#include <netpacket/packet.h>
'
includes_OpenBSD
=
'
#include <sys/types.h>
#include <sys/param.h>
...
...
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