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
9111f24e
Commit
9111f24e
authored
8 years ago
by
bluss
Browse files
Options
Downloads
Patches
Plain Diff
Move printf, scanf family of functions into the unix category
parent
adb400dd
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/lib.rs
+0
-10
0 additions, 10 deletions
src/lib.rs
src/unix/mod.rs
+9
-0
9 additions, 0 deletions
src/unix/mod.rs
with
9 additions
and
10 deletions
src/lib.rs
+
0
−
10
View file @
9111f24e
...
...
@@ -166,16 +166,6 @@ extern {
mode
:
c_int
,
size
:
size_t
)
->
c_int
;
pub
fn
setbuf
(
stream
:
*
mut
FILE
,
buf
:
*
mut
c_char
);
pub
fn
fprintf
(
stream
:
*
mut
FILE
,
format
:
*
const
c_char
,
...
)
->
c_int
;
pub
fn
printf
(
format
:
*
const
c_char
,
...
)
->
c_int
;
pub
fn
snprintf
(
s
:
*
mut
c_char
,
n
:
size_t
,
format
:
*
const
c_char
,
...
)
->
c_int
;
pub
fn
sprintf
(
s
:
*
mut
c_char
,
format
:
*
const
c_char
,
...
)
->
c_int
;
pub
fn
fscanf
(
stream
:
*
mut
FILE
,
format
:
*
const
c_char
,
...
)
->
c_int
;
pub
fn
scanf
(
format
:
*
const
c_char
,
...
)
->
c_int
;
pub
fn
sscanf
(
s
:
*
const
c_char
,
format
:
*
const
c_char
,
...
)
->
c_int
;
pub
fn
fgetc
(
stream
:
*
mut
FILE
)
->
c_int
;
pub
fn
fgets
(
buf
:
*
mut
c_char
,
n
:
c_int
,
stream
:
*
mut
FILE
)
->
*
mut
c_char
;
pub
fn
fputc
(
c
:
c_int
,
stream
:
*
mut
FILE
)
->
c_int
;
...
...
This diff is collapsed.
Click to expand it.
src/unix/mod.rs
+
9
−
0
View file @
9111f24e
...
...
@@ -179,6 +179,15 @@ cfg_if! {
}
extern
{
pub
fn
fprintf
(
stream
:
*
mut
::
FILE
,
format
:
*
const
::
c_char
,
...
)
->
::
c_int
;
pub
fn
printf
(
format
:
*
const
::
c_char
,
...
)
->
::
c_int
;
pub
fn
snprintf
(
s
:
*
mut
::
c_char
,
n
:
::
size_t
,
format
:
*
const
::
c_char
,
...
)
->
::
c_int
;
pub
fn
sprintf
(
s
:
*
mut
::
c_char
,
format
:
*
const
::
c_char
,
...
)
->
::
c_int
;
pub
fn
fscanf
(
stream
:
*
mut
::
FILE
,
format
:
*
const
::
c_char
,
...
)
->
::
c_int
;
pub
fn
scanf
(
format
:
*
const
::
c_char
,
...
)
->
::
c_int
;
pub
fn
sscanf
(
s
:
*
const
::
c_char
,
format
:
*
const
::
c_char
,
...
)
->
::
c_int
;
#[cfg_attr(target_os
=
"netbsd"
,
link_name
=
"__socket30"
)]
pub
fn
socket
(
domain
:
::
c_int
,
ty
:
::
c_int
,
protocol
:
::
c_int
)
->
::
c_int
;
#[cfg_attr(all(target_os
=
"macos"
,
target_arch
=
"x86"
),
...
...
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