Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
relibc
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
redox-os
relibc
Commits
632f9f18
Commit
632f9f18
authored
6 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
fpending
parent
9b0c74b9
No related branches found
No related tags found
No related merge requests found
Pipeline
#1867
passed with warnings
6 years ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core_io
+1
-1
1 addition, 1 deletion
core_io
src/header/stdio/mod.rs
+7
-0
7 additions, 0 deletions
src/header/stdio/mod.rs
with
8 additions
and
1 deletion
core_io
@
a4ddc380
Compare
eb720483
...
a4ddc380
Subproject commit
eb7204830786d7cbb776c6a878c7a59569840484
Subproject commit
a4ddc38063ddb2f2ff1b17f772b8b50f7f3baecd
This diff is collapsed.
Click to expand it.
src/header/stdio/mod.rs
+
7
−
0
View file @
632f9f18
...
...
@@ -390,6 +390,13 @@ pub extern "C" fn fopen(filename: *const c_char, mode: *const c_char) -> *mut FI
}
}
#[no_mangle]
pub
extern
"C"
fn
__fpending
(
stream
:
*
mut
FILE
)
->
size_t
{
let
mut
stream
=
unsafe
{
&
mut
*
stream
}
.lock
();
stream
.writer.inner.buf
.len
()
as
size_t
}
/// Insert a character into the stream
#[no_mangle]
pub
extern
"C"
fn
fputc
(
c
:
c_int
,
stream
:
*
mut
FILE
)
->
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