Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
felixmoebius
libc
Commits
3603c79b
Commit
3603c79b
authored
9 years ago
by
Alex Crichton
Browse files
Options
Downloads
Patches
Plain Diff
Add a whole mess more android constants
parent
e4bb63a9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/unix/notbsd/android/mod.rs
+144
-1
144 additions, 1 deletion
src/unix/notbsd/android/mod.rs
with
144 additions
and
1 deletion
src/unix/notbsd/android/mod.rs
+
144
−
1
View file @
3603c79b
...
...
@@ -192,10 +192,153 @@ pub const SIGCHLD: ::c_int = 17;
pub
const
SIGBUS
:
::
c_int
=
7
;
pub
const
SIG_SETMASK
:
::
c_int
=
2
;
pub
const
RUSAGE_CHILDREN
:
::
c_int
=
-
1
;
pub
const
MAP_ANON
:
::
c_int
=
0x0020
;
pub
const
MAP_ANONYMOUS
:
::
c_int
=
0x0020
;
pub
const
MAP_GROWSDOWN
:
::
c_int
=
0x0100
;
pub
const
MAP_DENYWRITE
:
::
c_int
=
0x0800
;
pub
const
MAP_EXECUTABLE
:
::
c_int
=
0x01000
;
pub
const
MAP_LOCKED
:
::
c_int
=
0x02000
;
pub
const
MAP_NORESERVE
:
::
c_int
=
0x04000
;
pub
const
MAP_POPULATE
:
::
c_int
=
0x08000
;
pub
const
MAP_NONBLOCK
:
::
c_int
=
0x010000
;
pub
const
MAP_STACK
:
::
c_int
=
0x020000
;
pub
const
EDEADLK
:
::
c_int
=
35
;
pub
const
ENAMETOOLONG
:
::
c_int
=
36
;
pub
const
ENOLCK
:
::
c_int
=
37
;
pub
const
ENOSYS
:
::
c_int
=
38
;
pub
const
ENOTEMPTY
:
::
c_int
=
39
;
pub
const
ELOOP
:
::
c_int
=
40
;
pub
const
ENOMSG
:
::
c_int
=
42
;
pub
const
EIDRM
:
::
c_int
=
43
;
pub
const
ECHRNG
:
::
c_int
=
44
;
pub
const
EL2NSYNC
:
::
c_int
=
45
;
pub
const
EL3HLT
:
::
c_int
=
46
;
pub
const
EL3RST
:
::
c_int
=
47
;
pub
const
ELNRNG
:
::
c_int
=
48
;
pub
const
EUNATCH
:
::
c_int
=
49
;
pub
const
ENOCSI
:
::
c_int
=
50
;
pub
const
EL2HLT
:
::
c_int
=
51
;
pub
const
EBADE
:
::
c_int
=
52
;
pub
const
EBADR
:
::
c_int
=
53
;
pub
const
EXFULL
:
::
c_int
=
54
;
pub
const
ENOANO
:
::
c_int
=
55
;
pub
const
EBADRQC
:
::
c_int
=
56
;
pub
const
EBADSLT
:
::
c_int
=
57
;
pub
const
EMULTIHOP
:
::
c_int
=
72
;
pub
const
EBADMSG
:
::
c_int
=
74
;
pub
const
EOVERFLOW
:
::
c_int
=
75
;
pub
const
ENOTUNIQ
:
::
c_int
=
76
;
pub
const
EBADFD
:
::
c_int
=
77
;
pub
const
EREMCHG
:
::
c_int
=
78
;
pub
const
ELIBACC
:
::
c_int
=
79
;
pub
const
ELIBBAD
:
::
c_int
=
80
;
pub
const
ELIBSCN
:
::
c_int
=
81
;
pub
const
ELIBMAX
:
::
c_int
=
82
;
pub
const
ELIBEXEC
:
::
c_int
=
83
;
pub
const
EILSEQ
:
::
c_int
=
84
;
pub
const
ERESTART
:
::
c_int
=
85
;
pub
const
ESTRPIPE
:
::
c_int
=
86
;
pub
const
EUSERS
:
::
c_int
=
87
;
pub
const
ENOTSOCK
:
::
c_int
=
88
;
pub
const
EDESTADDRREQ
:
::
c_int
=
89
;
pub
const
EMSGSIZE
:
::
c_int
=
90
;
pub
const
EPROTOTYPE
:
::
c_int
=
91
;
pub
const
ENOPROTOOPT
:
::
c_int
=
92
;
pub
const
EPROTONOSUPPORT
:
::
c_int
=
93
;
pub
const
ESOCKTNOSUPPORT
:
::
c_int
=
94
;
pub
const
EOPNOTSUPP
:
::
c_int
=
95
;
pub
const
EPFNOSUPPORT
:
::
c_int
=
96
;
pub
const
EAFNOSUPPORT
:
::
c_int
=
97
;
pub
const
EADDRINUSE
:
::
c_int
=
98
;
pub
const
EADDRNOTAVAIL
:
::
c_int
=
99
;
pub
const
ENETDOWN
:
::
c_int
=
100
;
pub
const
ENETUNREACH
:
::
c_int
=
101
;
pub
const
ENETRESET
:
::
c_int
=
102
;
pub
const
ECONNABORTED
:
::
c_int
=
103
;
pub
const
ECONNRESET
:
::
c_int
=
104
;
pub
const
ENOBUFS
:
::
c_int
=
105
;
pub
const
EISCONN
:
::
c_int
=
106
;
pub
const
ENOTCONN
:
::
c_int
=
107
;
pub
const
ESHUTDOWN
:
::
c_int
=
108
;
pub
const
ETOOMANYREFS
:
::
c_int
=
109
;
pub
const
ETIMEDOUT
:
::
c_int
=
110
;
pub
const
ECONNREFUSED
:
::
c_int
=
111
;
pub
const
EHOSTDOWN
:
::
c_int
=
112
;
pub
const
EHOSTUNREACH
:
::
c_int
=
113
;
pub
const
EALREADY
:
::
c_int
=
114
;
pub
const
EINPROGRESS
:
::
c_int
=
115
;
pub
const
ESTALE
:
::
c_int
=
116
;
pub
const
EUCLEAN
:
::
c_int
=
117
;
pub
const
ENOTNAM
:
::
c_int
=
118
;
pub
const
ENAVAIL
:
::
c_int
=
119
;
pub
const
EISNAM
:
::
c_int
=
120
;
pub
const
EREMOTEIO
:
::
c_int
=
121
;
pub
const
EDQUOT
:
::
c_int
=
122
;
pub
const
ENOMEDIUM
:
::
c_int
=
123
;
pub
const
EMEDIUMTYPE
:
::
c_int
=
124
;
pub
const
ECANCELED
:
::
c_int
=
125
;
pub
const
ENOKEY
:
::
c_int
=
126
;
pub
const
EKEYEXPIRED
:
::
c_int
=
127
;
pub
const
EKEYREVOKED
:
::
c_int
=
128
;
pub
const
EKEYREJECTED
:
::
c_int
=
129
;
pub
const
EOWNERDEAD
:
::
c_int
=
130
;
pub
const
ENOTRECOVERABLE
:
::
c_int
=
131
;
pub
const
SOCK_STREAM
:
::
c_int
=
1
;
pub
const
SOCK_DGRAM
:
::
c_int
=
2
;
pub
const
SOL_SOCKET
:
::
c_int
=
1
;
pub
const
SO_REUSEADDR
:
::
c_int
=
2
;
pub
const
SO_TYPE
:
::
c_int
=
3
;
pub
const
SO_ERROR
:
::
c_int
=
4
;
pub
const
SO_DONTROUTE
:
::
c_int
=
5
;
pub
const
SO_BROADCAST
:
::
c_int
=
6
;
pub
const
SO_SNDBUF
:
::
c_int
=
7
;
pub
const
SO_RCVBUF
:
::
c_int
=
8
;
pub
const
SO_KEEPALIVE
:
::
c_int
=
9
;
pub
const
SO_OOBINLINE
:
::
c_int
=
10
;
pub
const
SO_LINGER
:
::
c_int
=
13
;
pub
const
SO_RCVLOWAT
:
::
c_int
=
18
;
pub
const
SO_SNDLOWAT
:
::
c_int
=
19
;
pub
const
SO_RCVTIMEO
:
::
c_int
=
20
;
pub
const
SO_SNDTIMEO
:
::
c_int
=
21
;
pub
const
SO_ACCEPTCONN
:
::
c_int
=
30
;
pub
const
O_ACCMODE
:
::
c_int
=
3
;
pub
const
O_APPEND
:
::
c_int
=
1024
;
pub
const
O_CREAT
:
::
c_int
=
64
;
pub
const
O_EXCL
:
::
c_int
=
128
;
pub
const
O_NOCTTY
:
::
c_int
=
256
;
pub
const
O_NONBLOCK
:
::
c_int
=
2048
;
pub
const
O_SYNC
:
::
c_int
=
0x1000
;
pub
const
RUSAGE_CHILDREN
:
::
c_int
=
-
1
;
f!
{
pub
fn
sigemptyset
(
set
:
*
mut
sigset_t
)
->
::
c_int
{
*
set
=
0
;
return
0
}
pub
fn
sigaddset
(
set
:
*
mut
sigset_t
,
signum
:
::
c_int
)
->
::
c_int
{
*
set
|
=
signum
as
sigset_t
;
return
0
}
pub
fn
sigfillset
(
set
:
*
mut
sigset_t
)
->
::
c_int
{
*
set
=
!
0
;
return
0
}
pub
fn
sigdelset
(
set
:
*
mut
sigset_t
,
signum
:
::
c_int
)
->
::
c_int
{
*
set
&=
!
(
signum
as
sigset_t
);
return
0
}
pub
fn
sigismember
(
set
:
*
const
sigset_t
,
signum
:
::
c_int
)
->
::
c_int
{
(
*
set
&
(
signum
as
sigset_t
))
as
::
c_int
}
}
extern
{
pub
fn
madvise
(
addr
:
*
const
::
c_void
,
len
:
::
size_t
,
advice
:
::
c_int
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment