~ubuntu-branches/ubuntu/vivid/golang/vivid

« back to all changes in this revision

Viewing changes to src/pkg/runtime/defs_linux.go

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2013-08-20 14:06:23 UTC
  • mfrom: (14.1.23 saucy-proposed)
  • Revision ID: package-import@ubuntu.com-20130820140623-b414jfxi3m0qkmrq
Tags: 2:1.1.2-2ubuntu1
* Merge from Debian unstable (LP: #1211749, #1202027). Remaining changes:
  - 016-armhf-elf-header.patch: Use correct ELF header for armhf binaries.
  - d/control,control.cross: Update Breaks/Replaces for Ubuntu
    versions to ensure smooth upgrades, regenerate control file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
/*
8
8
Input to cgo -cdefs
9
9
 
10
 
GOARCH=amd64 cgo -cdefs defs.go defs1.go >amd64/defs.h
 
10
GOARCH=amd64 go tool cgo -cdefs defs_linux.go defs1_linux.go >defs_linux_amd64.h
11
11
*/
12
12
 
13
13
package runtime
25
25
#include <asm/signal.h>
26
26
#include <asm/siginfo.h>
27
27
#include <asm/mman.h>
 
28
#include <asm-generic/errno.h>
 
29
#include <asm-generic/poll.h>
 
30
#include <linux/eventpoll.h>
28
31
*/
29
32
import "C"
30
33
 
31
34
const (
 
35
        EINTR  = C.EINTR
 
36
        EAGAIN = C.EAGAIN
 
37
        ENOMEM = C.ENOMEM
 
38
 
32
39
        PROT_NONE  = C.PROT_NONE
33
40
        PROT_READ  = C.PROT_READ
34
41
        PROT_WRITE = C.PROT_WRITE
95
102
        ITIMER_REAL    = C.ITIMER_REAL
96
103
        ITIMER_VIRTUAL = C.ITIMER_VIRTUAL
97
104
        ITIMER_PROF    = C.ITIMER_PROF
 
105
 
 
106
        EPOLLIN       = C.POLLIN
 
107
        EPOLLOUT      = C.POLLOUT
 
108
        EPOLLERR      = C.POLLERR
 
109
        EPOLLHUP      = C.POLLHUP
 
110
        EPOLLRDHUP    = C.POLLRDHUP
 
111
        EPOLLET       = C.EPOLLET
 
112
        EPOLL_CLOEXEC = C.EPOLL_CLOEXEC
 
113
        EPOLL_CTL_ADD = C.EPOLL_CTL_ADD
 
114
        EPOLL_CTL_DEL = C.EPOLL_CTL_DEL
 
115
        EPOLL_CTL_MOD = C.EPOLL_CTL_MOD
98
116
)
99
117
 
100
118
type Timespec C.struct_timespec
102
120
type Sigaction C.struct_sigaction
103
121
type Siginfo C.siginfo_t
104
122
type Itimerval C.struct_itimerval
 
123
type EpollEvent C.struct_epoll_event