Skip to content

Commit ae70d3d

Browse files
authored
Auto merge of #405 - mmun:patch-1, r=alexcrichton
Add getchar_unlocked and putchar_unlocked Adds [getchar_unlocked](http://pubs.opengroup.org/onlinepubs/9699919799/functions/getchar_unlocked.html) and [putchar_unlocked](http://pubs.opengroup.org/onlinepubs/9699919799/functions/putchar_unlocked.html).
2 parents eb708c0 + 5ec7715 commit ae70d3d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/unix/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@ extern {
251251
pub fn fscanf(stream: *mut ::FILE, format: *const ::c_char, ...) -> ::c_int;
252252
pub fn scanf(format: *const ::c_char, ...) -> ::c_int;
253253
pub fn sscanf(s: *const ::c_char, format: *const ::c_char, ...) -> ::c_int;
254+
pub fn getchar_unlocked() -> ::c_int;
255+
pub fn putchar_unlocked(c: ::c_int) -> ::c_int;
254256

255257
#[cfg_attr(target_os = "netbsd", link_name = "__socket30")]
256258
pub fn socket(domain: ::c_int, ty: ::c_int, protocol: ::c_int) -> ::c_int;

0 commit comments

Comments
 (0)