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
785a60c4
Commit
785a60c4
authored
5 years ago
by
mikehoyle
Browse files
Options
Downloads
Patches
Plain Diff
Add a few functions & POSIX error codes to Windows API
parent
53bdffc0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/windows/mod.rs
+48
-0
48 additions, 0 deletions
src/windows/mod.rs
with
48 additions
and
0 deletions
src/windows/mod.rs
+
48
−
0
View file @
785a60c4
...
...
@@ -183,6 +183,49 @@ pub const ENOTEMPTY: ::c_int = 41;
pub
const
EILSEQ
:
::
c_int
=
42
;
pub
const
STRUNCATE
:
::
c_int
=
80
;
// POSIX Supplement (from errno.h)
pub
const
EADDRINUSE
:
::
c_int
=
100
;
pub
const
EADDRNOTAVAIL
:
::
c_int
=
101
;
pub
const
EAFNOSUPPORT
:
::
c_int
=
102
;
pub
const
EALREADY
:
::
c_int
=
103
;
pub
const
EBADMSG
:
::
c_int
=
104
;
pub
const
ECANCELED
:
::
c_int
=
105
;
pub
const
ECONNABORTED
:
::
c_int
=
106
;
pub
const
ECONNREFUSED
:
::
c_int
=
107
;
pub
const
ECONNRESET
:
::
c_int
=
108
;
pub
const
EDESTADDRREQ
:
::
c_int
=
109
;
pub
const
EHOSTUNREACH
:
::
c_int
=
110
;
pub
const
EIDRM
:
::
c_int
=
111
;
pub
const
EINPROGRESS
:
::
c_int
=
112
;
pub
const
EISCONN
:
::
c_int
=
113
;
pub
const
ELOOP
:
::
c_int
=
114
;
pub
const
EMSGSIZE
:
::
c_int
=
115
;
pub
const
ENETDOWN
:
::
c_int
=
116
;
pub
const
ENETRESET
:
::
c_int
=
117
;
pub
const
ENETUNREACH
:
::
c_int
=
118
;
pub
const
ENOBUFS
:
::
c_int
=
119
;
pub
const
ENODATA
:
::
c_int
=
120
;
pub
const
ENOLINK
:
::
c_int
=
121
;
pub
const
ENOMSG
:
::
c_int
=
122
;
pub
const
ENOPROTOOPT
:
::
c_int
=
123
;
pub
const
ENOSR
:
::
c_int
=
124
;
pub
const
ENOSTR
:
::
c_int
=
125
;
pub
const
ENOTCONN
:
::
c_int
=
126
;
pub
const
ENOTRECOVERABLE
:
::
c_int
=
127
;
pub
const
ENOTSOCK
:
::
c_int
=
128
;
pub
const
ENOTSUP
:
::
c_int
=
129
;
pub
const
EOPNOTSUPP
:
::
c_int
=
130
;
pub
const
EOTHER
:
::
c_int
=
131
;
pub
const
EOVERFLOW
:
::
c_int
=
132
;
pub
const
EOWNERDEAD
:
::
c_int
=
133
;
pub
const
EPROTO
:
::
c_int
=
134
;
pub
const
EPROTONOSUPPORT
:
::
c_int
=
135
;
pub
const
EPROTOTYPE
:
::
c_int
=
136
;
pub
const
ETIME
:
::
c_int
=
137
;
pub
const
ETIMEDOUT
:
::
c_int
=
138
;
pub
const
ETXTBSY
:
::
c_int
=
139
;
pub
const
EWOULDBLOCK
:
::
c_int
=
140
;
// signal codes
pub
const
SIGINT
:
::
c_int
=
2
;
pub
const
SIGILL
:
::
c_int
=
4
;
...
...
@@ -335,6 +378,8 @@ extern "C" {
n
:
size_t
,
)
->
::
size_t
;
pub
fn
time
(
destTime
:
*
mut
time_t
)
->
time_t
;
pub
fn
memchr
(
cx
:
*
const
c_void
,
c
:
c_int
,
n
:
size_t
)
->
*
mut
c_void
;
pub
fn
memcmp
(
cx
:
*
const
c_void
,
ct
:
*
const
c_void
,
n
:
size_t
)
->
c_int
;
pub
fn
memcpy
(
...
...
@@ -425,6 +470,9 @@ extern "C" {
pub
fn
isatty
(
fd
:
::
c_int
)
->
::
c_int
;
#[link_name
=
"_lseek"
]
pub
fn
lseek
(
fd
:
::
c_int
,
offset
:
c_long
,
origin
:
::
c_int
)
->
c_long
;
#[link_name
=
"_lseeki64"
]
pub
fn
lseek64
(
fd
:
::
c_int
,
offset
:
c_longlong
,
origin
:
::
c_int
)
->
c_longlong
;
#[link_name
=
"_pipe"
]
pub
fn
pipe
(
fds
:
*
mut
::
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