Skip to content

Commit 1afe929

Browse files
committed
---
yaml --- r: 49795 b: refs/heads/master c: 37634f3 h: refs/heads/master i: 49793: de305a8 49791: 85b54ed v: v3
1 parent a484260 commit 1afe929

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 0647a0fc2812ec1ea797168def80936b67688391
2+
refs/heads/master: 37634f3363fa871b72d181920caa2ec23eb63135
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: f7a2371c176663d59062ec5158f39faecba45768
55
refs/heads/try: 2a8fb58d79e685d5ca07b039badcf2ae3ef077ea

trunk/src/libcore/libc.rs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,19 @@
99
// except according to those terms.
1010

1111
/*!
12-
* Bindings for libc.
12+
* Bindings for the C standard library and other platform libraries
13+
*
14+
* This module contains bindings to the C standard library,
15+
* organized into modules by their defining standard.
16+
* Additionally, it contains some assorted platform-specific definitions.
17+
* For convenience, most functions and types are reexported from `core::libc`,
18+
* so `pub use core::libc::*` will import the available
19+
* C bindings as appropriate for the target platform. The exact
20+
* set of functions available are platform specific.
21+
*
22+
* *Note* Rustdoc does not indicate reexports currently. Also, because these
23+
* definitions are platform-specific, some may not
24+
* appear in the generated documentation.
1325
*
1426
* We consider the following specs reasonably normative with respect
1527
* to interoperating with the C standard library (libc/msvcrt):

trunk/src/libcore/rt/uv/net.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ pub impl StreamWatcher {
8181
return (*alloc_cb)(suggested_size as uint);
8282
}
8383

84-
extern fn read_cb(stream: *uvll::uv_stream_t, nread: ssize_t, buf: Buf) {
84+
extern fn read_cb(stream: *uvll::uv_stream_t, nread: ssize_t, ++buf: Buf) {
8585
rtdebug!("buf addr: %x", buf.base as uint);
8686
rtdebug!("buf len: %d", buf.len as int);
8787
let mut stream_watcher: StreamWatcher = NativeHandle::from_native_handle(stream);

0 commit comments

Comments
 (0)